Support and General Use > Plugins/Viewers

MPEG playback problems

(1/3) > >>

Delta009:
Hi !

I tried a lot of different encoders with a lot of different parameters (bitrate, frame rate, etc.), but it seems that the videos I watch with PluginMpegplayer either :

* lags
* or there is no sound playback
however, the sample video (elephant dreams) has a very hi video bitrate, and it doesn't lag nor has no sound : it plays just fine  :-\

also, some helpful people on the irc channel told me that the video lags because the plugin can't playback video at 30 fps
they recommended a frame rate of 15 fps.
however, the mpeg-1 and mpeg-2 formats DON'T support frame rates below 25 fps (or does it?)

what seem the best converter (but also the slowest) is Mencoder, because the videos don't lag, but there is no sound (even if it works perfectly on my computer and that the output is mp3)  ???

need help : how should i encode my video in order to have both the sound and the picture ?!

Llorean:
MPEG-2 isn't supposed to support below that, but most encoders will let you create them. You often have to do something like "-strict -1" or some other command line parameter to tell it to stop being strict about the standard.

jacotyco:
I was using WinFF and i told it 15 fps and it just ignored me.

Delta009:
mpeg-1 and mpeg-2 support only a few specific frame rates (23.98, 25, 29.97, etc.)
however, using ffmpeg, we can still encode videos in these format with another frame rate by using the following command :

--- Code: ---ffmpeg -strict -2
--- End code ---
(thanks to Llorean for the advice)

after several tests, i have found that, on my ipod video 80GB, some of the best results i could get were those encoded using this command :

--- Code: ---ffmpeg -i "INPUTFILENAME" -s 320x240 -vcodec mpeg2video -b 512k -r 12 -strict -2 -ab 128k -ac 2 -ar 44100 -acodec mp3 "OUTPUTFILENAME"
--- End code ---
What do the parameters mean :

--- Code: ----i : input filename
-s : output size (ipod video and youtube are 320x240)
-vcodec : choose between mpeg1video and mpeg2video
-b : output video bitrate (must not be too high nor too low)
-r : output frame rate (on ipod video, a fullscreen video should not have a frame rate higher than 15 fps)
-strict -2 : force ffmpeg to be less strict about the mpeg standards (use this if your frame rate is below 23.98)
-bf : set number of b-frames (maximum is 16), which are supposed to ease the decoding of the video (???)
-ab : audio bitrate (128k is average quality ; youtube videos have a 64k bitrate)
-ac : (1 = mono; 2 = stereo : youtube is in mono)
-ar 44100 : MUST BE 44.1 kHz !
-acodec : can be mp1, mp2 or mp3 (N.B. under Microsoft Windows, it must be: libmp3lame)

--- End code ---
(if the input file is in widescreen format, i.e. 16:9 without black bars at the top and bottom of the picture, you can replace the size by 320x180 and select a slightly higher frame rate)

i tested almost every encoder that was mentinned in the wiki, but the one which was the faster and the better was definitely FFmpeg.
video encoded using Mencoder had a better quality and a smoother frame rate, but the sound was bogus, and it took hours to encode a short videoclip.
WinFF 0.29.1 is just a front-end to FFmpeg, so, if you are confident enough, you should use the command-line, not the front-end : it's more complex, but there are more possibilities.

p.s. : this should be added to the wiki

Chronon:
Does that mean you're going to add it to the wiki?

Navigation

[0] Message Index

[#] Next page

Go to full version