Zkousim recoding z formatu AV01 na HVEC a vsechny ostatni streamy bych chtel jen "kopirovat",
ale "cover photo" video stream "#0:4" se mi nedari z te video konverze vyradit
(chtel bych ho zachovat ve vyslednem souboru)
Video jsem si stahl z YT ve formatech (401 a audio 140):
yt-dlp -f 401+140 https://www.youtube.com/watch?v=otNh9bTjXWg -o '%(title)s.f%(format_id)s.[%(id)s].%(ext)s' --embed-thumbnail --embed-subs --embed-chapters --embed-metadata --audio-multistreams --sub-langs all --write-subs
140 m4a audio only 2 │ 2.27MiB 130k https │ audio only mp4a.40.2 130k 44k medium, m4a_dash
401 mp4 3840x2160 24 │ 97.66MiB 5567k https │ av01.0.12M.08 5567k video only 2160p, mp4_dash
ffprobe -hide_banner \
WONKA-Official.Trailer.f401+140.[otNh9bTjXWg].mp4
Duration: 00:02:27.22, start: 0.000000, bitrate: 5768 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 145.167000
Metadata:
title : WONKA | Official Trailer
Chapter #0:1: start 145.167000, end 147.000000
Metadata:
title : [SponsorBlock]: Endcards/Credits
Stream #0:0[0x1](und): Video: av1 (Main) (av01 / 0x31307661), yuv420p(tv, bt709), 3840x2160, 5565 kb/s, 23.98 fps, 23.98 tbr, 24k tbn (default)
Metadata:
handler_name : ISO Media file produced by Google Inc.
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
handler_name : ISO Media file produced by Google Inc.
vendor_id : [0][0][0][0]
Stream #0:2[0x3](eng): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s (default)
Metadata:
handler_name : English (United States) - English
Stream #0:3[0x4](eng): Data: bin_data (text / 0x74786574), 0 kb/s
Metadata:
handler_name : SubtitleHandler
Stream #0:4[0x0]: Video: png, rgb24(pc), 1280x720, 90k tbr, 90k tbn (attached pic)
[libdav1d @ 0x55805d721980] libdav1d 1.0.0
Unsupported codec with id 98314 for input stream 3
(Samozrejmne, ze kdyz vynecham "-map 0:4" tak to funguje, ale cover foto ve vyslednem souboru neni).
ffmpeg -hide_banner \
-y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda \
-i WONKA-Official.Trailer.f401+140.[otNh9bTjXWg].mp4 \
-strict experimental \
-map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 \
-c:v:0 hevc_nvenc \
-c:v:4 copy \
-c:a copy \
-c:s copy \
-c:d copy \
-map_metadata 0 \
-f mp4 -movflags +faststart \
-ignore_unknown -copy_unknown \
Wonka.2023.Trailer.2023-12-15.2160p.YT.Web-DL.AAC.LC2.0.H.265.artwork.mp4 -v verbose
Ale proste se mi nedari ten stream "#0:4" pouze kopirovat .....a skonci to chybou .....
Stream mapping:
Stream #0:0 -> #0:0 (av1 (libdav1d) -> hevc (hevc_nvenc))
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (copy)
Stream #0:4 -> #0:4 (png (native) -> hevc (hevc_nvenc))
[mp4 @ 0x5603345d8dc0] Could not find tag for codec hevc in stream #4, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 --
Stream mapping:
Stream #0:0 -> #0:0 (av1 (libdav1d) -> hevc (hevc_nvenc))
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (copy)
Stream #0:4 -> #0:4 (png (native) -> h264 (libx264))
[mp4 @ 0x5573a6634840] Could not find tag for codec h264 in stream #4, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 --