I have a need to encode MPEG1 video with these settings:
720x576 pixelratio 0.7031 (16:9) 25fps
constat bitrate under 2mbps
Hard part seems to be GOP settings since I cannot find free software which allows me to set those. I really need to have settings like that since the hardware player won't accept anything else. I know Adobe Premiere can do this, but it is too expensive and cabable for my purposes since I only need to convert videos.
+ Reply to Thread
Results 1 to 9 of 9
TMPGEnc? bbMPEG? QuEnc? Mainconcept? Procoder?
The "M" number is the distance between anchor frames, the "N" number is the distance between I frames. So what this is telling you is that you need a GOP structure that looks like this:
How about that.
Two newbies, you and me, both making their debut with a quite similar question.
From what I've learnt through that, I propose the following ffMPEG CLI arguments to suit your situation:
-f mpeg1video -g 15 -bf 2 -flags2 sgop -r 25 -s 720x576 -aspect 0.7031 -bufsize 83886080 -b 1992294.4 -minrate 1992294.4 -maxrate 1992294.4 -bt 79692
I should also point out that I have simply given a bitrate of 1.9Mb/s here (thus under 2Mb/s), if you want a different bitrate, simply replace the areas with the number 1992294.4 with your preferred bitrate in bits (or in kilobits with "k" at the end). If you do this, you will also need to divide your new bitrate (in bits) by your framerate, and replace the numbers after "-bt" with the resulting number.
Of course, you can probably use some of the programs listed by Cornucopia, which have GUIs, but this is just another option.
Thanks for your replies but I need to get those GOP settings match perfectly or else the video won't work.
So if this is very common sequence, what program will do that and what is the configuration? Since mony programs I have looked don't let me define M= and N=, or that actual I, P, B frame structure.
TMPGenc Plus is the only application (AFAIK) that was optimized for MPEG-1 compression beyond the VCD requirements.
Those command line arguements should give you the correct GOP structure from ffMPEG. However if you would rather use TMPEGEnc for this, simply click on the "setting" button and enter your required settings under the video tab. After this, go to the GOP structure tab and matching your settings to this screenshot should give you the GOP structure you require.
[Attachment 7775 - Click to enlarge]
Under the GOP structure tab:
Number of I picture in GOP: 1
Number of P picture in GOP: 4
Number of B picture in GOP: 2
Output Interval of sequence header: 1 GOP
MAX number of frames in a GOP: 15
The tick boxes at the bottom specify other modifications to the GOP. Not knowing what you intend to use the outputted video for, I can not recommend settings for these. However if you are having trouble, I would recommend leaving them all off.