[FFmpeg-devel] [PATCH] avformat/segment.c: add experimental -segment_list_flags iframe

Michael Niedermayer michaelni at gmx.at
Tue Jun 3 09:52:31 CEST 2014


On Mon, Jun 02, 2014 at 02:13:14PM -0700, Aman Gupta wrote:
> >> Here's how to generate iframe.m3u8 and iframe0.ts for an h264 input.
> >> Notice that I only map the video stream into the segmenter.
> >>
> >>   ./ffmpeg -i input.mkv -map 0:0 -c:v copy -bsf:v h264_mp4toannexb \
> >>            -f stream_segment -segment_format mpegts \
> >>            -segment_list iframe.m3u8 -segment_list_flags iframe iframe%d.ts
> >
> > why not use "-skip_frame nokey" if you want to create a file made
> > from the keyframes ?
> 
> AFAIK, skip_frame requires decoding video frames and does not work
> when remuxing.

if you want to avoid reencoding the frames, this could be done with
a bitstream filter.
though iam not sure how much sense this makes to crate a preview,
depending on how "standarized" the source material is the keyframe
intervals could vary widely

a bitstream filter would be more generic than implementing this in a
single muxer

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140603/982d5a22/attachment.asc>


More information about the ffmpeg-devel mailing list