Opened 4 months ago

Last modified 4 months ago

#10775 new defect

FFmpeg omitting the CODECS attribute again with hevc_nvenc and libx265

Reported by: amesrc Owned by:
Priority: important Component: ffmpeg
Version: git-master Keywords: HLS hevc_nvenc libx265
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by amesrc)

Summary of the bug:
I'm trying to create a multi-codec m3u8 playlist with a 1080p hevc track and a 720p h264 track, but the result is this:
#EXTM3U
#EXT-X-VERSION:6
#EXT-X-STREAM-INF:BANDWIDTH=8263200,RESOLUTION=1920x960
stream_0/playlist.m3u8

#EXT-X-STREAM-INF:BANDWIDTH=2411200,RESOLUTION=1280x640,CODECS="avc1.4d401f,mp4a.40.2"
stream_1/playlist.m3u8

I already found other topics about this issue, but I've read it has been fixed around 2 or 3 years ago... so how come I can't get this command to work properly and output the CODECS attribute for the hevc track? I've also tried with libx265 but I get the same result.

How to reproduce:

% ffmpeg -i input.mkv -filter_complex "[0:v]split=2[v1][v2]; [v1]crop=1920:960:0:60[v1out]; [v2]scale=w=1280:h=720, crop=1280:640:0:40[v2out]" -map "[v1out]" -c:v:0 hevc_nvenc -b:v:0 7M -maxrate:v:0 7M -minrate:v:0 7M -bufsize:v:0 7M -preset slow -g 48 -keyint_min 48 -map "[v2out]" -c:v:1 h264_nvenc -b:v:1 2M -maxrate:v:1 2M -minrate:v:1 2M -bufsize:v:1 2M -preset slow -g 48 -keyint_min 48 -map a:0 -c:a:0 aac -b:a:0 512k -ac 2 -map a:0 -c:a:1 aac -b:a:1 192k -ac 2 -f hls -hls_time 2 -hls_playlist_type vod -hls_flags independent_segments -hls_segment_type mpegts -hls_segment_filename stream_%v/data%02d.ts -master_pl_name master.m3u8 -var_stream_map "v:0,a:0 v:1,a:1" stream_%v/playlist.m3u8

ffmpeg version: 2024-01-01-git-e1c1dc8347-full_build-www.gyan.dev

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (1)

comment:1 by amesrc, 4 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.