diff options
author | Timo Teräs <timo.teras@iki.fi> | 2018-04-14 21:32:11 +0300 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2018-04-17 20:11:34 +0100 |
commit | 9af71b326fda1c6f32a26d465f7740110113e759 (patch) | |
tree | de5e0070bb38cd301e3f56791655e4ea463d2e7f /libavformat/http.c | |
parent | c663dce031b3973e37c83ae1818f1484e1cf482c (diff) | |
download | ffmpeg-9af71b326fda1c6f32a26d465f7740110113e759.tar.gz |
avformat/movenc: support writing iTunes cover image
Fixes https://trac.ffmpeg.org/ticket/2798
This makes movenc handle AV_DISPOSITION_ATTACHED_PIC and write
the associated pictures in iTunes cover atom. This corresponds
to how 'mov' demuxer parses and exposes the cover images when
reading.
Most of the existing track handling loops properly ignore
these 'virtual streams' as MOVTrack->entry is never incremented
for them. However, additional tests are added as needed to ignore
them.
Tested to produce valid output with:
ffmpeg -i movie.mp4 -i thumb.jpg -disposition:v:1 attached_pic \
-map 0 -map 1 -c copy movie-with-cover.mp4
The cover image is also copied correctly with:
ffmpeg -i movie-with-cover.mp4 -map 0 -c copy out.mp4
AtomicParseley says that the attached_pic stream is properly
not visible in the main tracks of the file.
Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Diffstat (limited to 'libavformat/http.c')
0 files changed, 0 insertions, 0 deletions