Opened 12 years ago

Closed 12 years ago

#1909 closed enhancement (fixed)

Add support for skipping a header for rawvideo inputs

Reported by: erezst Owned by:
Priority: wish Component: ffmpeg
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Some programs dump uncompressed video files with a custom header at the beginning. To use these files as inputs for FFMPEG, the rawvideo codec needs to be able to skip this header.

The input format is:

[ Header - e.g. 100 bytes]
[ Frame #1 ]
[ Frame #2 ]
[ ... ]
[ Frame #N ]

Header -- a fixed-length header (for example, 100 bytes).
Frame - A raw video frame in some pix_fmt (e.g. YUV422p).

A command-line for encoding this file to H.264 might be:

ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt yuv422p -skipheader 100 -i <SOURCE_VIDEO> -s 640x480 -r 30 -vcodec libx264 <OUTPUT_FILE>

The '-skipheader 100' parameter is what this feature request is about.

Change History (2)

comment:1 by Carl Eugen Hoyos, 12 years ago

Priority: normalwish
Reproduced by developer: set
Status: newopen
Version: unspecifiedgit-master

comment:2 by Carl Eugen Hoyos, 12 years ago

Resolution: fixed
Status: openclosed

New option -skip_initial_bytes was committed to git head.

Note: See TracTickets for help on using tickets.