MPG2 stuttering playback

3 views
Skip to first unread message

meissnem

unread,
Mar 30, 2009, 12:28:46 PM3/30/09
to perian discussion
Hi,

Inspired by this thread <http://groups.google.com/group/perian-discuss/
browse_thread/thread/278730a49f0d2ac1/cb349ebc3b06c1f4>, I am
attempting to take my EyeTV MPEG-2 recordings and turn them into
QuickTime movies with an MPEG-2 video track and AC-3 audio track.
Using ffmpeg to create the .mov file, I specify the “MPG2” fourcc for
the video track and QuickTime+Perian can be used for playback. Here’s
the cmdline I’m using:
ffmpeg -i src.mpg -vcodec copy -vtag MPG2 -acodec copy dest.mov

If I use the MPEG Transport Stream as the source to create the .mov,
the video and audio both playback perfectly using QuickTime+Perian,
but the audio is out-of-sync with the video. Example: <http://
dl.getdropbox.com/u/535204/out-of-sync.mov>

To remedy the sync issue, I created an MPEG Program Stream using
EyeTV. The resulting .mpg file plays flawlessly in VLC. I then use
the Program Stream file as the source to create the .mov. The audio
is in sync during QuickTime+Perian playback, but the video stutters.
Example: <http://dl.getdropbox.com/u/535204/stutter.mov>

I'm having trouble determining if the stuttering video is happening
during the creation of the .mov file, or if it is happening during
playback. Any suggestions on how to determine the culprit?

Mac OS X 10.5.6 Intel
QuickTime 7.6.0
Perian 1.1.3
ffmpeg 0.5 (via MacPorts)

Thanks,
Matt

Alexander Strange

unread,
Apr 1, 2009, 1:24:30 AM4/1/09
to perian discussion
QT doesn't allow video codecs to affect timing, so it can't
(reasonably) be a Perian bug if it happens in mov. I guess this has
something to do with TS bugs in ffmpeg (for the first) and something
about field duplication flags (in the second); mplayer doesn't play
the first file back correctly, so that's easily demonstratable as a
bug in ffmpeg. Try creating .mkv instead of .mov.
Reply all
Reply to author
Forward
0 new messages