Log in

View Full Version : Mpeg-4 Encoding - Video Packets


Appu
8th May 2007, 15:07
I would like to know is any of the Mpeg-4 encoder supports encoding of video packets. I tried with XVID and ffdshow and both seems not supporting encoding of Video Packets. command line support is also OK, though I prefer GUI.

Appu
9th May 2007, 07:44
Got it via ffmpeg commandline.

Here is what I have used..
ffmpeg.exe -i input.avi -vcodec mpeg4 -qscale 5 -er 4 -ps 4000 output.avi


The output.avi contains video packets.

Initially I thougt keeping er = 4 (er = error resilience abd 4 corresponds to FF_ER_VERY_AGGRESSIVE ) should insert video packets into the encoded stream. But I do not see any difference between er=1 and er=4?

Also if I use -part ( data partitioning ) option , it always ask for a second file!.

Any ffmpeg experts here?

bond
12th May 2007, 13:06
what do you mean by "video packets"

moved

Appu
17th May 2007, 05:06
Video Packets are like slices in Mpeg-2. Used for better error resilience. If video packets are present , if some error occurs in decoding the decoder can start decoding from the next video packets onwards.

I am looking for a encoder by which I can specify how many macroblocks can be present in a video packets. Using ffmpeg you can specify only what should be size of the video packets in bits.

jakor
17th May 2007, 06:38
Mainconcept MPEG-4 encoder is capable of that. But it's not free software.

Manao
17th May 2007, 08:53
Appu : though it's a somewhat hackish, you can ask ffmpeg to use N threads, in which cases it will create N slices/video packets.

Afaict, there aren't any cleaner way to configure the number of macroblock per slice with ffmpeg.

However, modifying ffmpeg to handle such a settings wouldn't be complicated.