Log in

View Full Version : mpeg1/2 minimum framerate


vincente13
5th September 2006, 12:30
hi all

im trying to use ffmpeg to encode a video that is 15fps
however the system prompts

[mpeg2video @ 68959000]MPEG1/2 does not support 15/1 fps

anyone knows if it is possible to encode it using mpeg1/2 ??

drcl
5th September 2006, 14:14
15fps is a valid framerate for mpeg1/2

im not hugely familiar with mencoder commands.

but isnt:

-ofps 15

all u need?

Why use mpeg1/2? Why not mpeg4?

15fps will not play on most DVD players.

Try doubling the frames up?

SelectEvery(clip,2,0,1)
assumefps(30)

vincente13
5th September 2006, 15:04
this was my command line options and the error msg is

ffmpeg -i input.avi -vcodec mpeg1video output.mpg

[mpeg2video @ 68959000]MPEG1/2 does not support 15/1 fps

i would like to use mpeg4 too however it seems like windows media player does not support mpeg4 by default and the video file would be access by other users on the internet..so mpeg1 or 2 would be a better choice as it is available on windows media player..

drcl
6th September 2006, 01:33
ooops sorry! no idea why i thought you were using mencoder!

I guess you arent using a windows pc or you would just take the easy option and use quenc?

im not familiar with ffmpeg either....:o

vincente13
6th September 2006, 02:46
ooops sorry! no idea why i thought you were using mencoder!

I guess you arent using a windows pc or you would just take the easy option and use quenc?

im not familiar with ffmpeg either....:o


no worries..
its my fault that i didnt had my problem stated clearly.

i checked with the ffmpeg mailing list and i realize that mpeg1/2 standard frame rate does not allow 15fps..

so is there any other alternative codec other than wmv that allows 15fps?

My aim is to make the video file smaller and all users are able to play the video easily on their windows media player without having the need to download extra codec.

i'm not sure if i am in the correct sub forum to post this question.

ilovejedd
6th September 2006, 03:29
From the FFmpeg FAQ (http://ffmpeg.mplayerhq.hu/faq.html#SEC9):
The following list of video codecs should work on most Windows systems:

'msmpeg4v2' - .avi/.asf
'msmpeg4' - .asf only
'wmv1' - .asf only
'wmv2' - .asf only
'mpeg4' - only if you have some MPEG-4 codec installed like ffdshow or XviD
'mpeg1' - .mpg only

Note, ASF files often have .wmv or .wma extensions in Windows. It should also be mentioned that Microsoft claims a patent on the ASF format, and may sue or threaten users who create ASF files with non-Microsoft software. It is strongly advised to avoid ASF where possible.

So you can try using msmpeg4v2 (avi container w/mp3 audio) send it out to a bunch of people to test and if it doesn't work, maybe just increase the framerate of your video to comply with mpeg1/2 standards...?

drcl
6th September 2006, 12:41
15fps is within mpeg1/2 standards. Some of the lower profiles of mpeg2 only go up to 15fps.

http://en.wikipedia.org/wiki/MPEG-2#Profiles_and_Levels

must be libavcodec not allowing it, because i just tried quenc and it refused a 15fps input.

I know its possible to encode mpeg1 at 15fps because there is plenty of content(ahem) on the internet that has 15fps

drcl
7th September 2006, 00:58
actually i just checked out the content.... none is 15fps! its all 29.97fps

looks like you will just have to double the frames up. it shouldnt increase bitrate

setarip_old
7th September 2006, 01:15
@vincente13

Hi!input.avi -vcodec mpeg1video output.mpgTry using "TMPGEnc" to convert your .AVI to MPEG-1. You should have no problem with the framerate...

drcl
7th September 2006, 14:12
yes tmpg will work but it will double up the frame rate for you auto

ilovejedd
7th September 2006, 16:35
Hmm, so I guess he has no choice but to increase the framerate if he wants to use mpeg1?

drcl
7th September 2006, 17:45
just he seemed insistent on using 15fps for whatever reason

vincente13
8th September 2006, 04:27
i really have no choice but to use 15fps..

so i guess i would have to drop the idea of using mpeg1/2

drcl
8th September 2006, 12:29
would you mind sharing why it must be 15fps? Hardware constraints?

Trixter
8th September 2006, 19:40
Specification constraints, actually. MPEG-1 only supports framerates of 23.976, 24, 25, 29.97, 30, 50, 59.94, and 60. Anything else is out of spec.

You can simulate different framerates by encoding some empty P- or B- frames per GOP, but that's not typical...

setarip_old
8th September 2006, 20:15
@vincente13

Despite other postings, I'm curious to know if you tried my suggestion to use "TMPGEnc"?

vincente13
13th September 2006, 05:10
@vincente13

Despite other postings, I'm curious to know if you tried my suggestion to use "TMPGEnc"?


sorry i didnt try to use TMPGEnc as i have gave up the idea of using mpeg1/2 since it doesnt support 15fps..

setarip_old
13th September 2006, 05:33
sorry i didnt try to use TMPGEnc as i have gave up the idea of using mpeg1/2 since it doesnt support 15fps..You won't know for sure unless you try...

Trixter
15th September 2006, 00:39
sorry i didnt try to use TMPGEnc as i have gave up the idea of using mpeg1/2 since it doesnt support 15fps..

I did say you can simulate it. For example, if you feed an 15fps source to an MPEG encoder, most of them just encode each frame (nearly) twice to reach (nearly) 30fps.

However, if your bitrate requirements are fairly stringent (ie. low bitrate), it's not as desirable as something like MPEG-4 AAC (which *does* support lower framerates).

Paulcat
15th September 2006, 18:39
TMPGEnc will allow you to do a 15fps mpeg-1 file, you just have to load a different template.

When you load a template, instead of loading a VideoCD template, look in the "EXTRA" folder for the template called UNLOCK.MCF and load that one. You can go to the settings menu and change the framerate to "15 (30 fps internal)" and encode. In fact you can change almost everything...

drcl
15th September 2006, 18:42
TMPGEnc will allow you to do a 15fps mpeg-1 file, you just have to load a different template.



it still encodes at 30fps