Specify MPEG-4 as encoding parameter in FFmpeg

0

I want to ask about mpeg4 codec parameters. I use it to encode video in Evalvid environment as follows:

./ffmpeg -s cif -r 30 -b 64000 -bt 3200 -g 30 -i raw.yuv -vcodec mpeg4 vid.m4v

The video will be encoded using the MPEG-4 codec. What are the specific parts from MPEG-4 that will be taken if mpeg4 is added as encoding parameter?

Computer_Engineer

Posted 2013-06-08T19:46:14.047

Reputation: 73

Answers

2

It encodes MPEG-4 Part 2, as used by the XviD/DivX encoders. If you want MPEG-4 Part 10, also known as MPEG-4 AVC or H.264, use the encoder libx264 instead.

It uses the Simple Profile by default (Simple@L1 to be precise).

evilsoup

Posted 2013-06-08T19:46:14.047

Reputation: 10 085

Without specifying anything else it uses the Simple profile. No idea how to get ASP or others, as I've never had to work with MPEG-4 Part 2 a lot. – slhck – 2013-06-08T20:52:26.333

@slhck as always, I bow to your superior knowledge :) – evilsoup – 2013-06-08T20:55:19.700

Okay, it uses Simple profile if (and only if) neither B-frames nor Qpel motion compensation are enabled, or if you specify it through profile (no idea what the options are). See mpeg4_encode_visual_object_header in mpeg4videoenc.c. – slhck – 2013-06-08T21:07:52.950