Hi I want to convert wmv files to mpg format in order to be able to watch them with my very old Pentium 166 / Win98. Here is the command line I use (on a "recent" Celeron 800Mhz ;) ) : ffmpeg -i in.wmv -b 700 -s 320x240 -r 30 out.mpg My problem is that contrary to native mpg files (resolution 320x240, 1150kb/s, 29.97fps) that my old computer can play fullscreen with no problem, the mpg files ffmpeg give me are much too slow : the "Statistics" panel of windows player shows me the framerate is only 14 fps (whereas it is 27-28 fps for native mpg files). I don't understand what makes these files so slow... Is there a parameter I should add to my command line ? Nicoco
Hi On Mon, Dec 12, 2005 at 08:18:57PM +0100, Nicolas Berger wrote:
Hi
I want to convert wmv files to mpg format in order to be able to watch them with my very old Pentium 166 / Win98. Here is the command line I use (on a "recent" Celeron 800Mhz ;) ) :
ffmpeg -i in.wmv -b 700 -s 320x240 -r 30 out.mpg
My problem is that contrary to native mpg files (resolution 320x240, 1150kb/s, 29.97fps) that my old computer can play fullscreen with no problem, the mpg files ffmpeg give me are much too slow : the "Statistics" panel of windows player shows me the framerate is only 14 fps (whereas it is 27-28 fps for native mpg files). I don't understand what makes these files so slow... Is there a parameter I should add to my command line ?
hmmmm, could it be that the difference are b frames? try -bf 2 and if it doesnt help try -target vcd ahh, if b frames solve the issue and you are curious why theres a difference then id guess the windows player simply drops all b frames, so you might be better out to encode at a lower framerate ... [...] -- Michael
Selon Michael Niedermayer <michaelni at gmx.at>:
hmmmm, could it be that the difference are b frames? try -bf 2 and if it doesnt help try -target vcd
Nothing changes with "-bf 2" : the video is too slow (+- 17 fps according to windows player). With "-target vcd", it is as fast as my native mpg videos ! 27-28 fps, fullscreen ok... The problem seems to come from the header of the video files that are written by ffmpeg : without the "-target vcd" option, loading the video in the player is quite long (approx.10sec), whereas with this option it is almost immediate. There must be something in the header of the file that ffmpeg doesn't write when you don't use the "-target vcd" option, something that mess the player when it can't find it ? But my problem is not solved : the "-target vcd" option makes the video I get twice as big as the one I get without this option (250Mo instead of 120Mo) and the quality is so bad ! I don't understand how the video can be uglier with twice higher bitrate (1115kb instead of 650kb) ! Can I reduce the bitrate while still using "-target vcd" ? How can I improve the quality ? Nicolas.
Nicolas Berger wrote:
[...]
But my problem is not solved : the "-target vcd" option makes the video I get
-target vcd is a preset of some options. Locate what they mean in the source and start tweeking the options.
twice as big as the one I get without this option (250Mo instead of 120Mo) and the quality is so bad ! I don't understand how the video can be uglier with twice higher bitrate (1115kb instead of 650kb) ! Can I reduce the bitrate while
-target vcd tries to make vcd compatible files and they are most likely using 1115kb for the bitrate.
still using "-target vcd" ? How can I improve the quality ?
Nicolas.
MvH Benjamin Larsson -- "incorrect information" is an oxymoron. Information is, by definition, factual, correct.
Hi people, i'm really nOOb and i want to install this on my server using SSH, can aonyone give me a hand? I download the "formal" relase and when i try to compile there's a lot of messages but no idea what are they about... I try to download the last CSV but it says "server timeout".. Thanks Gerardo -----Mensaje original----- De: ffmpeg-user-bounces at mplayerhq.hu [mailto:ffmpeg-user-bounces at mplayerhq.hu] En nombre de Benjamin Larsson Enviado el: Martes, 13 de Diciembre de 2005 05:08 p.m. Para: FFMpeg user questions and RTFMs Asunto: Re: [Ffmpeg-user] too slow videos... (not fixed) Nicolas Berger wrote:
[...]
But my problem is not solved : the "-target vcd" option makes the video I get
-target vcd is a preset of some options. Locate what they mean in the source and start tweeking the options.
twice as big as the one I get without this option (250Mo instead of 120Mo) and the quality is so bad ! I don't understand how the video can be uglier with twice higher bitrate (1115kb instead of 650kb) ! Can I reduce the bitrate while
-target vcd tries to make vcd compatible files and they are most likely using 1115kb for the bitrate.
still using "-target vcd" ? How can I improve the quality ?
Nicolas.
MvH Benjamin Larsson -- "incorrect information" is an oxymoron. Information is, by definition, factual, correct. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu http://mplayerhq.hu/mailman/listinfo/ffmpeg-user
Thanks for your help. The problem with Windows Player came from variable bitrate : looking in the code of ffmpeg, I have seen that the VCD preset sets the bitrate min and max to the same value... So it's what I have done too, and the result is good quality and not being too large. I have another question though. Setting min and max bitrates implies setting the buffer size, I have tried different sizes. When it is too big the video is unreable, but what size the buffer should be ? Thanks you very much. Nicolas. Selon Benjamin Larsson <banan at student.ltu.se>:
But my problem is not solved : the "-target vcd" option makes the video I
get
-target vcd is a preset of some options. Locate what they mean in the source and start tweeking the options.
twice as big as the one I get without this option (250Mo instead of 120Mo) and the quality is so bad ! I don't understand how the video can be uglier with twice higher bitrate (1115kb instead of 650kb) ! Can I reduce the bitrate while
-target vcd tries to make vcd compatible files and they are most likely using 1115kb for the bitrate.
still using "-target vcd" ? How can I improve the quality ?
participants (4)
-
banan@student.ltu.se -
gerardo@rosciano.com.ar -
hu.hai.ham@free.fr -
michaelni@gmx.at