matanbs / webm

Automatically exported from code.google.com/p/webm
0 stars 0 forks source link

stereo flac progressively out of sync #569

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I tested the WebM DASH JS recently, and what I did was following the  
webmproject's wiki 
(https://sites.google.com/a/webmproject.org/wiki/adaptive-streaming/instructions
-to-playback-a-webm-dash-presentation)

I noticed that there's a progressively out of sync for the sound.
Here's what I did:

mkdir -p source/bigbuckbunny
cd source/bigbuckbunny
wget -c http://media.xiph.org/BBB/BigBuckBunny-stereo.flac
wget -m -np http://media.xiph.org/BBB/BBB-1080-png/
ffmpeg -i "media.xiph.org/BBB/BBB-1080-png/big_buck_bunny_%05d.png" -vcodec 
libx264 -vpre lossless_max -pix_fmt yuv444p -r 24 
"bigbuckbunny-lossless-1080p.mkv"
cd -

git clone https://gerrit.chromium.org/gerrit/p/webm/libwebm.git libwebm
cd libwebm
make
cd ..

git clone https://gerrit.chromium.org/gerrit/p/webm/webm-tools.git 
webm-tools-git
cd webm-tools-git/webm_dash_manifest
make
cd ../..

git clone https://gerrit.chromium.org/gerrit/p/webm/webm-dash-javascript.git 
webm-dash-javascript-git

sudo cp -r webm-dash-javascript-git/ /var/www/webm-dash

ffmpeg -i source/bigbuckbunny/bigbuckbunny-lossless-1080p.mkv -vcodec libvpx 
-vb 128k -s 320x180 -keyint_min 150 -g 150 -an tmp-bbtest-v000-128k-320x180.webm
libwebm/samplemuxer -i tmp-bbtest-v000-128k-320x180.webm -o 
bbtest-v000-128k-320x180.webm
rm -f tmp-bbtest-v000-128k-320x180.webm
ffmpeg -i source/bigbuckbunny/bigbuckbunny-lossless-1080p.mkv -vcodec libvpx 
-vb 315k -s 320x180 -keyint_min 150 -g 150 -an tmp-bbtest-v001-315k-320x180.webm
libwebm/samplemuxer -i tmp-bbtest-v001-315k-320x180.webm -o 
bbtest-v001-315k-320x180.webm
rm -f tmp-bbtest-v001-315k-320x180.webm
ffmpeg -i source/bigbuckbunny/bigbuckbunny-lossless-1080p.mkv -vcodec libvpx 
-vb 705k -s 640x360 -keyint_min 150 -g 150 -an tmp-bbtest-v002-705k-640x360.webm
libwebm/samplemuxer -i tmp-bbtest-v002-705k-640x360.webm -o 
bbtest-v002-705k-640x360.webm
rm -f tmp-bbtest-v002-705k-640x360.webm

ffmpeg -i source/bigbuckbunny/BigBuckBunny-stereo.flac -vn -acodec libvorbis 
-ab ${PARAM_ABITRATE} ${FFMPEG_AUDIO}
libwebm/samplemuxer -i ${FFMPEG_AUDIO} -o ${SAMPLE_MUXER_AUDIO} -output_cues 1 
-cues_on_audio_track 1 -max_cluster_duration 5 -audio_track_number 2
rm -f ${FFMPEG_AUDIO}
ffmpeg -i source/bigbuckbunny/BigBuckBunny-stereo.flac -vn -acodec libvorbis 
-ab 64k tmp-bbtest-a000-64k.webm
libwebm/samplemuxer -i tmp-bbtest-a000-64k.webm -o bbtest-a000-64k.webm 
-output_cues 1 -cues_on_audio_track 1 -max_cluster_duration 5 
-audio_track_number 2
rm -f tmp-bbtest-a000-64k.webm
ffmpeg -i source/bigbuckbunny/BigBuckBunny-stereo.flac -vn -acodec libvorbis 
-ab 128k tmp-bbtest-a001-128k.webm
libwebm/samplemuxer -i tmp-bbtest-a001-128k.webm -o bbtest-a001-128k.webm 
-output_cues 1 -cues_on_audio_track 1 -max_cluster_duration 5 
-audio_track_number 2
rm -f tmp-bbtest-a001-128k.webm
ffmpeg -i source/bigbuckbunny/BigBuckBunny-stereo.flac -vn -acodec libvorbis 
-ab 256k tmp-bbtest-a002-256k.webm
libwebm/samplemuxer -i tmp-bbtest-a002-256k.webm -o bbtest-a002-256k.webm 
-output_cues 1 -cues_on_audio_track 1 -max_cluster_duration 5 
-audio_track_number 2
rm -f tmp-bbtest-a002-256k.webm
webm-tools-git/webm_dash_manifest/webm_dash_manifest -o 'bbtest-all.mpd'  -as 
id=0,lang=eng -r id=0,file=bbtest-v000-128k-320x180.webm -r 
id=1,file=bbtest-v001-315k-320x180.webm -r 
id=2,file=bbtest-v002-705k-640x360.webm -as id=1,lang=eng -r 
id=3,file=bbtest-a000-64k.webm -r id=4,file=bbtest-a001-128k.webm -r 
id=5,file=bbtest-a002-256k.webm
sed -i.bak 's|subsegmentStartsWithSAP="1">|subsegmentAlignment="true" 
subsegmentStartsWithSAP="1" bitstreamSwitching="true">|g' 'bbtest-all.mpd'

# place all of the files bbtest-* to /var/www/webm-dash/adaptive/

# open a chrome browser
# http://localhost/webm-dash/adaptive/dash-player.html?url=bbtest-all.mpd

Original issue reported on code.google.com by fuyun...@gmail.com on 4 Apr 2013 at 5:37

GoogleCodeExporter commented 9 years ago
Frank do we support flac in Chromium? 

Original comment by albe...@google.com on 11 Apr 2013 at 10:07

GoogleCodeExporter commented 9 years ago
Sorry this got lost. Is this still an issue or can I close this?

Original comment by fgalli...@google.com on 16 Jan 2015 at 7:30

GoogleCodeExporter commented 9 years ago
Yes, You can close this issue. The tool I used is not online now (merged
into ffmpeg now), and I didn't test further.

Original comment by fuyun...@gmail.com on 20 Jan 2015 at 5:18