[FFmpeg-trac] #11439(ffmpeg:new): Please add a byte offset option (like -sb in mplayer) in ffmpeg, ffplay, ffprobe.
FFmpeg
trac at avcodec.org
Thu Jan 30 07:53:52 EET 2025
#11439: Please add a byte offset option (like -sb in mplayer) in ffmpeg, ffplay,
ffprobe.
-------------------------------------+-------------------------------------
Reporter: sha8 | Type:
| enhancement
Status: new | Priority: wish
Component: ffmpeg | Version:
Keywords: ffmpeg | unspecified
ffplay ffprobe | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
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
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11439>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list