[FFmpeg-trac] #10775(ffmpeg:new): FFmpeg omitting the CODECS attribute again with hevc_nvenc and libx265
FFmpeg
trac at avcodec.org
Wed Jan 3 03:30:50 EET 2024
#10775: FFmpeg omitting the CODECS attribute again with hevc_nvenc and libx265
-------------------------------------+-------------------------------------
Reporter: amesrc | Owner: (none)
Type: defect | Status: new
Priority: important | Component: ffmpeg
Version: git-master | Resolution:
Keywords: HLS | Blocked By:
hevc_nvenc libx265 |
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Description changed by amesrc:
Old description:
> 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?
>
> 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.
New description:
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.
--
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10775#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list