Forum Archive Home -> Linux -> ffmpeg avi to mpeg2 lag
| ffmpeg avi to mpeg2 lag | ||
| jonaskarlsson posted 2008 Jul 07 10:38 | ||
| 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 ? | ||
| GMaq posted 2008 Jul 07 14:08 | ||
| 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. | ||
| jonaskarlsson posted 2008 Jul 07 15:07 | ||
| 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. | ||
| GMaq posted 2008 Jul 07 15:54 | ||
| 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. | ||
| jonaskarlsson posted 2008 Jul 08 07:57 | ||
| 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 | ||
| freebird73717 posted 2008 Jul 08 09:42 | ||
You are missing some external libraries required for winff to run. I would go into synaptic and download anything related to libgdk. I have winff installed and the libgdk libs i have are 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. | ||
| buzzqw posted 2008 Jul 08 09:59 | ||
| also.. you are converting fps from 24pfs (ntsc) to 25 fsp (pal)
better to pay attention.. add to command line -r 25000/1000 BHH | ||
| GMaq posted 2008 Jul 08 10:18 | ||
Wow, 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. :wink: 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. | ||
| jonaskarlsson posted 2008 Jul 08 13:21 | ||
| I got winff to work altough it didnt help, neither did -r 25. I use hardy. Has anyone else managed to convert xvid 24fps to PAL mpeg ? |
Login/Register to our forum to be able to post here.
