Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files produced by WASM-Build bigger than asm.js #4

Open
Rillke opened this issue Jan 25, 2018 · 1 comment
Open

Files produced by WASM-Build bigger than asm.js #4

Rillke opened this issue Jan 25, 2018 · 1 comment

Comments

@Rillke
Copy link
Owner

Rillke commented Jan 25, 2018

WASM:

XXX@XXX:~/Downloads$ opusinfo encoded.opus
Processing file "encoded.opus"...

New logical stream (#1, serial: 633146a3): type opus
Encoded with libopus 1.2.1
User comments section follows...
	ENCODER=opus-tools/opusenc https://blog.rillke.com/opusenc.js/ from opus-tools 0.1.10-2-g6f67426
	title=Follow me up to Carlow
	artist=Christoph Nolte
	album=The Rocky Road
	date=2009
	genre=Folk
	publisher=Jamendo
	copyright=2009-10-26T12:17:51+01:00 Christoph Nolte. Licensed to the public under http://creativecommons.org/licenses/by-sa/2.0/de/ verify at http://www.jamendo.com/album/54242/
	encoded_by=Jamendo : http://www.jamendo.com | LAME
	TRACKNUMBER=05
	TDTG=2014-05-30T11:51:21
	encoder=Lavf56.15.102
	METADATA_BLOCK_PICTURE=3|image/jpeg||200x200x24|<5348 bytes of image data>
Opus stream 1:
	Pre-skip: 312
	Playback gain: 0 dB
	Channels: 2
	Original sample rate: 44100Hz
	Packet duration:   20.0ms (max),   20.0ms (avg),   20.0ms (min)
	Page duration:   1000.0ms (max),  999.1ms (avg),  840.0ms (min)
	Total data length: 2013265 bytes (overhead: 1.17%)
	Playback length: 2m:51.829s
	Average bitrate: 93.73 kb/s, w/o overhead: 92.64 kb/s
Logical stream 1 ended

ASM.JS

XXX@XXX:~/Downloads$ opusinfo "encoded(1).opus"
Processing file "encoded(1).opus"...

New logical stream (#1, serial: 7eba927d): type opus
Encoded with libopus 1.2.1
User comments section follows...
	ENCODER=opus-tools/opusenc https://blog.rillke.com/opusenc.js/ from opus-tools 0.1.10-2-g6f67426
	title=Follow me up to Carlow
	artist=Christoph Nolte
	album=The Rocky Road
	date=2009
	genre=Folk
	publisher=Jamendo
	copyright=2009-10-26T12:17:51+01:00 Christoph Nolte. Licensed to the public under http://creativecommons.org/licenses/by-sa/2.0/de/ verify at http://www.jamendo.com/album/54242/
	encoded_by=Jamendo : http://www.jamendo.com | LAME
	TRACKNUMBER=05
	TDTG=2014-05-30T11:51:21
	encoder=Lavf56.15.102
	METADATA_BLOCK_PICTURE=3|image/jpeg||200x200x24|<5348 bytes of image data>
Opus stream 1:
	Pre-skip: 312
	Playback gain: 0 dB
	Channels: 2
	Original sample rate: 44100Hz
	Packet duration:   20.0ms (max),   20.0ms (avg),   20.0ms (min)
	Page duration:   1000.0ms (max),  999.1ms (avg),  840.0ms (min)
	Total data length: 1693170 bytes (overhead: 1.34%)
	Playback length: 2m:51.829s
	Average bitrate: 78.83 kb/s, w/o overhead: 77.77 kb/s
Logical stream 1 ended
@Rillke
Copy link
Owner Author

Rillke commented Jan 25, 2018

Might be worth test building opusenc with 32bit vs 64bit integer support or re-read https://github.com/kripken/emscripten/wiki/WebAssembly more closely.

The output file size produced by both the win32 and the win64 binaries is almost the same as the WASM-build one so it is not too troubling, although still I would like to know what I get in return to bigger opus encoded files and slower encoding speed in Firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant