i5mast
1st December 2011, 21:47
Are these two options mutually exclusive?
I have Office LiveMeeting presentation encoded in WMV3 and WMA. The video is about 1h long and it contains only static slides. There are a total of 151 key frames in WMV video. Some frames stay up for over one minute.
I'm using ffmpeg (v0.8.6)/libx264 to transcode the video to MP4.
ffmpeg -i "presentation.wmv" -acodec libfaac -ab 16k -vcodec libx264 -fpre "\ffmpeg-0.8.6\ffpresets\libx264-baseline.ffpreset" -profile main -s 480x360 -aspect 4:3 "presentation.mp4"
This gives me two issues when trying to play MP4 video.
1. Video does not sync up very well with audio. The slide may change a second or two earlier/sooner than expected.
2. The playback of MP4 video in a JWPlayer widget: I cannot advance the slider to fast forward or back, eg., the slider is jumping from 00:00 to 9:00 (nine minutes). I cannot advance to anything in between.
The issue #1 can be resolved with -vsync 0 option. The video and audio then sync up perfectly.
The issue #2 can be resolved -r 6 (setting fps to 6). If I don't set the frame rate then it ends up being 0.4.
Here comes my third issue: I cannot seem to use both of these options at the same time :( If I set vsync 0 then frame rate option is ignored and it ends up being 0.4 (which gives me issues with JWPlayer).
Are there any workarounds to both achieve higher fps than default 0.4 and to have audio and video in perfect sync?
I tried uploading the video to YouTube and they got it right. I downloaded the encoded video and then was able play/advance in JWPlayer, audio and video were synced up too.
Help :)
P.S. I do use qt-faststart to move "moov" atom to the beginning.
I have Office LiveMeeting presentation encoded in WMV3 and WMA. The video is about 1h long and it contains only static slides. There are a total of 151 key frames in WMV video. Some frames stay up for over one minute.
I'm using ffmpeg (v0.8.6)/libx264 to transcode the video to MP4.
ffmpeg -i "presentation.wmv" -acodec libfaac -ab 16k -vcodec libx264 -fpre "\ffmpeg-0.8.6\ffpresets\libx264-baseline.ffpreset" -profile main -s 480x360 -aspect 4:3 "presentation.mp4"
This gives me two issues when trying to play MP4 video.
1. Video does not sync up very well with audio. The slide may change a second or two earlier/sooner than expected.
2. The playback of MP4 video in a JWPlayer widget: I cannot advance the slider to fast forward or back, eg., the slider is jumping from 00:00 to 9:00 (nine minutes). I cannot advance to anything in between.
The issue #1 can be resolved with -vsync 0 option. The video and audio then sync up perfectly.
The issue #2 can be resolved -r 6 (setting fps to 6). If I don't set the frame rate then it ends up being 0.4.
Here comes my third issue: I cannot seem to use both of these options at the same time :( If I set vsync 0 then frame rate option is ignored and it ends up being 0.4 (which gives me issues with JWPlayer).
Are there any workarounds to both achieve higher fps than default 0.4 and to have audio and video in perfect sync?
I tried uploading the video to YouTube and they got it right. I downloaded the encoded video and then was able play/advance in JWPlayer, audio and video were synced up too.
Help :)
P.S. I do use qt-faststart to move "moov" atom to the beginning.