Opened 4 minutes ago

Last modified 2 minutes ago

#11439 new enhancement

Please add a byte offset option (like -sb in mplayer) in ffmpeg, ffplay, ffprobe.

Reported by: sha8 Owned by:
Priority: wish Component: ffmpeg
Version: unspecified Keywords: ffmpeg ffplay ffprobe
Cc: sha8 Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
mplayer has a -sb option. From the manual:

Seek to byte position. Useful for playback from CD-ROM images or VOB files with junk at the beginning.

While specifying an offset in dd and piping it from ffmpeg (or ffplay or ffprobe) is possible, it is inconvenient. Besides, pipe inputs are not seekable in ffplay because they are like live streams.

With an -sb option, ffmpeg (and ffplay and ffprobe) would treat the file as if it started at this byte.

Of course, -sb should also accept size suffixes. For example, 1KB = 1000 bytes. 1K = 1024 bytes. 1M = 1048576 bytes

How to reproduce:

ffplay example.img -sb 196608

ffplay -i example.img -sb 196608

ffmpeg -i example.img -sb 196608 -c copy recording.mpg 

Change History (1)

comment:1 by sha8, 2 minutes ago

Sorry for the accidental spam report. It was a misclick.

Note: See TracTickets for help on using tickets.