View Full Version : Mpeg-4 Encoding - Video Packets
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.
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?
what do you mean by "video packets"
moved
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.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.