Chtel jsem se zeptat, zkousim encoding videa h264 do hevc_nvenc:
ffmpeg -hide_banner \
-y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda \
-i video.mp4 \
-strict experimental \
-map 0:0 -map 0:1 -map 0:2 -map 0:3 -map 0:4 -map 0:5-map 0:6 \
-c:v hevc_nvenc \
-c:a copy \
-c:s copy \
-c:d copy \
-map_chapters 0 \
-map_metadata 0 \
-metadata title="Video H265" \
-metadata "Encoded by"="FFMpeg" \
-metadata:s:v:0 language=und -metadata:s:v:0 handler_name=Und -metadata:s:v:0 title="1080p | h265 - hevc_nvenc" \
-metadata:s:a:0 language=eng -metadata:s:a:0 handler_name=English -metadata:s:a:0 title="eng | English AAC Stereo, fltp, 130 kb/s" \
-metadata:s:a:1 language=eng -metadata:s:a:1 handler_name=English -metadata:s:a:1 title="eng | English AC-3 Stereo, fltp, 640 kb/s" \
-metadata:s:a:2 language=rus -metadata:s:a:2 handler_name=Russian -metadata:s:a:2 title="rus | Russian AAC Stereo, fltp, 127 kb/s" \
-metadata:s:s:0 language=eng -metadata:s:s:0 handler_name=English -metadata:s:s:0 title="eng | English SRT" \
-metadata:s:s:1 language=rus -metadata:s:s:1 handler_name=Russian -metadata:s:s:1 title="rus | Russian SRT" \
-f mp4 -movflags use_metadata_tags \
-ignore_unknown -copy_unknown \
video.H265.mp4 -v verbose
Ale vysledne video ma extra "chapters" Menu.
Original:
---------
Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 10011 kb/s, 23.98 fps, 23.98 tbr, 90k tbn (default)
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
handler_name : VideoHandler
vendor_id : [0][0][0][0]
------------------------------------------------------------------------------------------------------
Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 130 kb/s (default)
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
handler_name : English AAC
vendor_id : [0][0][0][0]
---------------------------------------------------------------------------------------
Stream #0:2[0x3](eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 640 kb/s
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
handler_name : English AC-3
vendor_id : [0][0][0][0]
Side data:
audio service type: main
--------------------------------------------------------------------------------------------
Stream #0:3[0x4](rus): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
handler_name : Russian AAC
vendor_id : [0][0][0][0]
-----------------------------------------------------------------------------------------
Stream #0:4[0x5](eng): Subtitle: mov_text (tx3g / 0x67337874), 1920x162, 0 kb/s (default)
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
handler_name : English SRT
-------------------------------------------------------------------------------
Stream #0:5[0x6](rus): Subtitle: mov_text (tx3g / 0x67337874), 1920x162, 0 kb/s
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
handler_name : Russian SRT
-----------------------------------------------------------------
Stream #0:6[0x7](und): Data: bin_data (text / 0x74786574), 0 kb/s
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
A vysledek:
------------
Stream #0:0[0x1](und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 2090 kb/s, 23.98 fps, 23.98 tbr, 24k tbn (default)
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
handler_name : Und
vendor_id : [0][0][0][0]
encoder : Lavc60.3.100 hevc_nvenc
--------------------------------------------------------------------------------------------------------
Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 130 kb/s (default)
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
handler_name : English
vendor_id : [0][0][0][0]
-----------------------------------------------------------------------------------------
Stream #0:2[0x3](eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 640 kb/s
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
handler_name : English
vendor_id : [0][0][0][0]
Side data:
audio service type: main
----------------------------------------------------------------------------------------------
Stream #0:3[0x4](rus): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
handler_name : Russian
vendor_id : [0][0][0][0]
-------------------------------------------------------------------------------------------
Stream #0:4[0x5](eng): Subtitle: mov_text (tx3g / 0x67337874), 1920x162, 0 kb/s (default)
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
handler_name : English
---------------------------------------------------------------------------------
Stream #0:5[0x6](rus): Subtitle: mov_text (tx3g / 0x67337874), 1920x162, 0 kb/s
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
handler_name : Russian
--------------------------------------------------------------------
Stream #0:6[0x7](eng): Data: bin_data (text / 0x74786574), 0 kb/s
Metadata:
creation_time : 2022-02-22T22:22:22.000000Z
handler_name : SubtitleHandler
Ale kdyz na to video koukam v MediaInfo tak se mi zobrazuji ty "chapters" dva krat, jako Menu a Menu #2
Menu #1
ID : 7
Format : Timed Text
Codec ID : text
Duration : 1 h 28 min
Language : English
Encoded date : 2022-02-22T22:22:22.000000Z
Tagged date : 2022-02-22T22:22:22.000000Z
Menu For : 1,2,3,4,5,6
00:00:00.000 : Bla bla bla
...........
Menu #2
00:00:00.000 : Bla bla bla
.............
Kde jsem udelal chybu?