Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ffmepg video coding question

13 views
Skip to first unread message

Mark Hinchcliffe

unread,
Oct 25, 2012, 5:50:08 AM10/25/12
to
Hello all,

I am looking at the mpegvideo.h/c and mpeg12.h/c files in ffmpeg-git-8293a21.

I am trying to see where ffmpeg reads in the mpeg pack header (the first header found in an mpeg file). The code should look for a start code such as 0x000001BA in the bitstream.

yet only these codes appear to be defined and checked for:

/* Start codes. */
#define SEQ_END_CODE 0x000001b7
#define SEQ_START_CODE 0x000001b3
#define GOP_START_CODE 0x000001b8
#define PICTURE_START_CODE 0x00000100
#define SLICE_MIN_START_CODE 0x00000101
#define SLICE_MAX_START_CODE 0x000001af
#define EXT_START_CODE 0x000001b5
#define USER_START_CODE 0x000001b2

Am I right in believing the pack header is ignored and bytes are read from the source until one of the above start codes is found?

Thanks in advance for any help you can provide.

Hinchy.

N.B. Hopefully asking in the right place here as there does not seem to be a specific ffmpeg/libavcodec group.

Mark Hinchcliffe

unread,
Oct 25, 2012, 6:41:39 AM10/25/12
to
Thank goodness for windows grep!

Found the pack header in mpeg.c which is in libavformat NOT libavcodec.

Please consider this thread closed.

Thanks.
0 new messages