Hi
I use :
ffmpeg -i "$arg" -target pal-dvd -acodec mp2 -ab 128k "$arg.mpg"
to convert an avi file to mpeg2. When i watch it there is a little lag about every second. Does anyone know how to fix this ?
+ Reply to Thread
Results 1 to 9 of 9
-
-
Hello,
What distro are you using?, Which version of ffmpeg? What is the frame rate of the AVI files you are converting?
When you say lag, does that mean that the Audio and Video are out of sync, or that the frame is freezing?
I know it's a lot of questions but it is easier to help with more info. -
Im using version 3:0.cvs20070307-5ubuntu7. All files are xvid and has 24 fps. Nothing is out of sync its just a little pause in the picture.
-
OK,
I'm not sure what the cause is, you could try a better ffmpeg for Ubuntu from www.medibuntu.org they have instructions on adding their repository to your sources.list, it is a great repo for multimedia add-ons and is safe and secure.
Your files will be going from 24fps progressive to 25fps interlaced. I don't use PAL so I'm not sure if that is an issue or not. Are you burning these files to DVD or viewing them on the PC? Do you have the same issue if you use the -target ntsc-dvd switch in your command line?
WinFF is a GUI for ffmpeg that has better quality commands for DVD than you are using, you may want to give it a try as well. -
I tried the ffmpeg from medibuntu but it didnt help. When i convert 25fps -> PAL there is no lag, the same is for 24fps -> NTSC but 24fps -> PAL gives lag. Im using the files for my Dreambox. As for the winff i got this error:
winff: error while loading shared libraries: libgdk_pixbuf.so.2: cannot open shared object file: No such file or directory -
Originally Posted by jonaskarlsson
libgdk-pixbuf2
libgdk-pixbuf2-ruby1.8
libgdk-pixbuf2-dev
Not sure which one of those you need but I'm sure it is probably one of those.
In addition to winff there is also autoff for linux.Donadagohvi (Cherokee for "Until we meet again") -
also.. you are converting fps from 24pfs (ntsc) to 25 fsp (pal)
better to pay attention.. add to command line -r 25000/1000
BHHHDConvertToX, AutoMen, AutoMKV Developer -
Originally Posted by jonaskarlsson
That is a pretty "old" error associated with WinFF, are you using Ubuntu Feisty?
Freebird is correct libgdk-pixbuf2 is what you will need.
Also a note about ffmpeg GUI's: AutoFF is also a great choice, WinFF has the presets pre-made for newer users or people who don't know the commandline switches, And AutoFF allows the user to select their own, it all depends on what suits the user best.
With the Medibuntu ffmpeg you can use the "-r 25000/1000" command like Buzz suggested or "-r 25" If you get WinFF to work you can enter it in the "Options" Window in the frame rate field.
Similar Threads
-
mpeg2 MP@ML with ffmpeg
By rullbandspelare in forum Video ConversionReplies: 5Last Post: 8th Dec 2013, 22:09 -
FFMpeg - Mpeg2 to MP4 conversion
By gomer_3333 in forum Video ConversionReplies: 2Last Post: 1st Mar 2010, 13:10 -
avi videos drag lag freeze. after splitting with solveigmm video splitter
By ezeht in forum EditingReplies: 7Last Post: 29th Nov 2008, 13:06 -
Mux mpeg2 using ffmpeg
By juhani in forum EditingReplies: 9Last Post: 30th Sep 2008, 07:24 -
ffmpeg avi to mpeg2 quality compared to other progs
By bagrol1 in forum Video ConversionReplies: 3Last Post: 19th Jul 2008, 08:09