Opened 5 months ago

#10813 new defect

VP9 HLS encoding missing CODECS tag from playlist

Reported by: alexpls Owned by:
Priority: normal Component: ffmpeg
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

When encoding a VP9 stream using the HLS segmenter, the CODECS tag does not appear within the HLS master playlist's #EXT-X-STREAM-INF.

Here's an example command, and the playlist it produces:

ffmpeg \
  -i "Sintel_1080_10s_30MB.mp4" \
  -c:v libvpx-vp9 -b:v 2000k \
  -f hls \
  -movflags frag_keyframe \
  -hls_flags single_file \
  -hls_segment_type mpegts \
  -hls_list_size 0 \
  -hls_time 6 \
  -master_pl_name master.m3u8 \
  -y \
  encode/rendition_%v.m3u8
#EXTM3U
#EXT-X-VERSION:7
#EXT-X-STREAM-INF:BANDWIDTH=2200000,RESOLUTION=1920x818
rendition_0.m3u8

Compare this to the behaviour for H.264 codec, where the CODECS tag is included:

ffmpeg \
  -i "Sintel_1080_10s_30MB.mp4" \
  -c:v libx264 -b:v 2000k \
  -f hls \
  -movflags frag_keyframe \
  -hls_flags single_file \
  -hls_segment_type mpegts \
  -hls_list_size 0 \
  -hls_time 6 \
  -master_pl_name master.m3u8 \
  -y \
  encode/rendition_%v.m3u8
#EXTM3U
#EXT-X-VERSION:4
#EXT-X-STREAM-INF:BANDWIDTH=2200000,RESOLUTION=1920x818,CODECS="avc1.640028"
rendition_0.m3u8

This seems similar to https://trac.ffmpeg.org/ticket/8904

I'm running ffmpeg version 6.1 on macOS Sonoma:

ffmpeg version 6.1 Copyright (c) 2000-2023 the FFmpeg developers
  built with Apple clang version 15.0.0 (clang-1500.1.0.2.5)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.1-with-options_3 --enable-shared --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-gpl --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-demuxer=dash --enable-opencl --enable-audiotoolbox --enable-videotoolbox --enable-neon --disable-htmlpages --enable-libfdk-aac --enable-nonfree

Thanks!

Change History (0)

Note: See TracTickets for help on using tickets.