Hi there, I have encoded successfully a small xdiv avi into vcd/svcd-ready mpg files: ffmpeg -hq -i xdivmovie.avi -target svcd ./mpegmovie.mpg ffmpeg -hq -i xdivmovie.avi -target vcd ./mpegmovie.mpg PROBLEM: That said problems arose when I attempted to encode a large xdiv avi into multiple vcd/svcd-ready mpg files. Using ffmpeg to split xdiv avi into three parts, the second and third parts when played gave video and audio are out of sync. Here is what I tried: 1)hand-carved the input avi into three different parts. ffmpeg -hq -ss 00:00:00 -t 00:45:00 -i xdivmovie.avi -target svcd ./mpegmovie1.mpg ffmpeg -hq -ss 00:45:00 -t 00:45:00 -i xdivmovie.avi -target svcd ./mpegmovie2.mpg ffmpeg -hq -ss 01:30:00 -t 00:23:22 -i xdivmovie.avi -target svcd ./mpegmovie3.mpg Why is ffmpeg giving me video/audio sync problems when I encode only parts of the xdiv avi? ANYWAYS SOLUTION: The following strategy works with no video/audio sync problems. What mpgtx does differently? I don't know but it works for me :) ffmpeg -hq -i xdivmovie.avi -target svcd ./mpegmovie.mpg mpgtx -s mpegmovie.mpg [-00:45:00] -b mpegmoviepart1 mpgtx -s mpegmovie.mpg [00:45:00-01:30:00] -b mpegmoviepart2 mpgtx -s mpegmovie.mpg [00:01:30-] -b mpegmoviepart3 From there using a tool like k3b works to burn using these mepgmoviepart files. The aspect ratio is not ok but if the svcd is in the computer I know if I change the aspect ration to anamorphic, it fixes itself. I hope this helps. Cheers, David Marceau
David Marceau wrote:
Hi there,
I have encoded successfully a small xdiv avi into vcd/svcd-ready mpg files: ffmpeg -hq -i xdivmovie.avi -target svcd ./mpegmovie.mpg ffmpeg -hq -i xdivmovie.avi -target vcd ./mpegmovie.mpg
PROBLEM: That said problems arose when I attempted to encode a large xdiv avi into multiple vcd/svcd-ready mpg files. Using ffmpeg to split xdiv avi into three parts, the second and third parts when played gave video and audio are out of sync. Here is what I tried:
1)hand-carved the input avi into three different parts. ffmpeg -hq -ss 00:00:00 -t 00:45:00 -i xdivmovie.avi -target svcd ./mpegmovie1.mpg ffmpeg -hq -ss 00:45:00 -t 00:45:00 -i xdivmovie.avi -target svcd ./mpegmovie2.mpg ffmpeg -hq -ss 01:30:00 -t 00:23:22 -i xdivmovie.avi -target svcd ./mpegmovie3.mpg
Why is ffmpeg giving me video/audio sync problems when I encode only parts of the xdiv avi?
ANYWAYS SOLUTION: The following strategy works with no video/audio sync problems. What mpgtx does differently? I don't know but it works for me :) ffmpeg -hq -i xdivmovie.avi -target svcd ./mpegmovie.mpg mpgtx -s mpegmovie.mpg [-00:45:00] -b mpegmoviepart1 mpgtx -s mpegmovie.mpg [00:45:00-01:30:00] -b mpegmoviepart2 mpgtx -s mpegmovie.mpg [00:01:30-] -b mpegmoviepart3
From there using a tool like k3b works to burn using these mepgmoviepart files. I spoke too soon. K3b and vcdimage failed on me with the mpegmovie parts after using mpgtx. Conclusion: Any splitting(ffmpeg/mpgtx) of mpg files results in inability to use vcdimager/k3b because of bad packets.
The aspect ratio is not ok but if the svcd is in the computer I know if I change the aspect ration to anamorphic, it fixes itself.
My third strategy was to split the xdiv video before it became an mpeg file. The good news: 1)the video and audio are in sync 2)k3b/vcdimager don't crap out on me and the svcd gets burned successfully with k3b(vcdimager/drdao). RECIPE 1)find out how long the movie is first ffmpeg -i xdivmovie.avi 2)then start splitting...ok how about every 45 minutes with the left over in the last chunk. So I have 2 big chunks and some left over. avisplit -i xdivmovie.avi -c -o out1.avi -t 00:00:00-00:45:00 ffmpeg -hq -i out1.avi -target svcd ./mpegmoviepart1.mpg avisplit -i xdivmovie.avi -c -o out2.avi -t 00:45:00-01:30:00 ffmpeg -hq -i out2.avi -target svcd ./mpegmoviepart2.mpg avisplit -i xdivmovie.avi -c -o out3.avi -t 01:30:00-01:53:22 ffmpeg -hq -i out3.avi -target svcd ./mpegmoviepart3.mpg I could have used ffmpeg's -sameq switch(same quality as the input xdiv movie) instead of -hq (highest quality) , but I haven't tried it yet. That's it. I hope this saves someone else a bit of time. Cheers
participants (1)
-
davidmarceau@sympatico.ca