Kolega rikal ze to dava smysl, kdyz uz delam ten encoding do x265 ....
Smysl by to mělo, kdyby zdroj byl desetibitový, ale pokud není, tak tím nic (z hlediska kvality) nezískáte, jen bude výsledný soubor o něco větší. Naopak, tím CRF 28 si kvalitu ještě zhoršíte.
a ten "Title" stale chybi v kopii .....
To je divné, defaultně se metadata kopírují, kromě těch, které explicitně změníte. Já naopak potřeboval potlačit kopírování title (pomocí "-metadata title=") u Šťastného pondělí, kde tam dávali nějaké neužitečné interní identifikátory, které se pak zobrazovaly na televizi (přes DLNA) místo názvu souboru.
CRF 28 jsem zvolil na testovacim vzorku kvuli velikosti souboru .......podle
https://trac.ffmpeg.org/wiki/Encode/H.265CRF affects the quality. The default is 28, and it should visually correspond to libx264 video at CRF 23,
but result in about half the file size. CRF works just like in x264, so choose the highest value that provides an acceptable quality.
Realne pouzitelne je tak 20 - 28 pro mobilni zarizeni (kde je pro mne dulezita velikost), ale testoval jsem rozmezi 11 - 50 pro ruzne videa ....
-c:v libx265 -vtag hvc1 -crf 11
-c:v libx265 -preset medium -crf 26
Zkousel jsem MKV -> MP4 s mkvextract/GPAC(MP4Box)
Jak je videt, MKV soubor ma spravny "Title" u audio/titulku
Audio #5
ID : 6
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : A_EAC3
Bit rate mode : Constant
Bit rate : 256 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Title : Espa?ol
Language : Spanish
Service kind : Complete Main
Default : No
Forced : No
Audio #6
ID : 7
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : A_EAC3
Bit rate mode : Constant
Bit rate : 256 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Title : Espa?ol (Latinoamericano)
Language : Spanish
Service kind : Complete Main
Default : No
Forced : No
Audio #31
ID : 32
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : A_AAC-2
Bit rate : 125 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Title : Espa?ol
Language : Spanish
Default : No
Forced : No
Audio #32
ID : 33
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : A_AAC-2
Bit rate : 125 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Title : Espa?ol (Latinoamericano)
Language : Spanish
Default : No
Forced : No
Text #15
ID : 93
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Bit rate : 65 b/s
Frame rate : 0.255 FPS
Count of elements : 1115
Title : Espa?ol
Language : Spanish
Default : No
Forced : No
Text #16
ID : 94
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Bit rate : 62 b/s
Frame rate : 0.260 FPS
Count of elements : 1136
Title : Espa?ol (Latinoamericano)
Language : Spanish
Default : No
Forced : No
Rozhodl jsem se vyzkouset utilitu z arsenalu MKVToolNix
https://www.matroska.org/downloads/mkvtoolnix.htmlhttps://mkvtoolnix.download/doc/mkvextract.html$ mkvextract tracks file.mkv 0:file0.h264 5:file5.ac3 6:file6.ac3 31:file31.aac 32:file32.aac 92:file92.srt 93:file93.srt
Extracting track 0 with the CodecID 'V_MPEG4/ISO/AVC' to the file 'file0.h264'. Container format: AVC/H.264 elementary stream
Extracting track 5 with the CodecID 'A_EAC3' to the file 'file5.ac3'. Container format: Dolby Digital Plus (E-AC-3)
Extracting track 6 with the CodecID 'A_EAC3' to the file 'file6.ac3'. Container format: Dolby Digital Plus (E-AC-3)
Extracting track 31 with the CodecID 'A_AAC' to the file 'file31.aac'. Container format: raw AAC file with ADTS headers
Extracting track 32 with the CodecID 'A_AAC' to the file 'file32.aac'. Container format: raw AAC file with ADTS headers
Extracting track 92 with the CodecID 'S_TEXT/UTF8' to the file 'file92.srt'. Container format: SRT text subtitles
Extracting track 93 with the CodecID 'S_TEXT/UTF8' to the file 'file93.srt'. Container format: SRT text subtitles
Progress: 100%
A uz po vytahnuti specifickych stop, tam ten "Title" zase chybi
General
Complete name : file5.ac3
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Overall bit rate mode : Constant
Overall bit rate : 256 kb/s
FileExtension_Invalid : dd+ ec3 eac3
Audio
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Bit rate mode : Constant
Bit rate : 256 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Service kind : Complete Main
General
Complete name : file31.aac
Format : ADTS
Format/Info : Audio Data Transport Stream
Overall bit rate mode : Variable
Audio
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Format version : Version 4
Codec ID : 2
Bit rate mode : Variable
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
General
Complete name : file92.srt
Format : SubRip
Overall bit rate : 139 b/s
Text
Format : SubRip
Start time : 51 s 166 ms
Compression mode : Lossless
Count of events : 1115
Minimum duration per event : 833 ms
Count of lines : 1429
Maximum count of lines per event : 2
A po muxu s MP4Boxem, tam zase je
MP4Box -add file0.h264 -add file5.ac3 -add file6.ac3 -add file31.aac -add file32.aac -add file92.srt -add file93.srt file0-5-6-31-92-93.mp4
Track Importing MPEG-4 AVC - Width 1280 Height 720 FPS 96/4 SAR 1/1
AVC|H264 Import results: 111889 samples (226455 NALUs) - Slices: 2718 I 37518 P 71654 B - 114563 SEI - 2674 IDR - 0 CRA
AVC|H264 Stream uses forward prediction - stream CTS offset: 3 frames
Track Importing EAC-3 - SampleRate 48000 Num Channels 6
Track Importing EAC-3 - SampleRate 48000 Num Channels 6
Track Importing AAC - SampleRate 48000 Num Channels 2
Track Importing AAC - SampleRate 48000 Num Channels 2
Track Importing Timed Text - Text track 1280 x 720 font Serif (size 18) layer 0
Track Importing Timed Text - Text track 1280 x 720 font Serif (size 18) layer 0
0.500 secs Interleaving
Ale ne ten orginalni ...
Complete name : file0-5-6-31-92-93.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/avc1)
Overall bit rate mode : Variable
Overall bit rate : 3 866 kb/s
Encoded date : UTC 2023-02-08 17:03:37
Tagged date : UTC 2023-02-08 17:03:37
Writing application : GPAC-2.2-rev0-gab012bbf-master
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.140
Title :
h264@GPAC2.2-rev0-gab012bbf-masterEncoded date : UTC 2023-02-08 17:03:37
Tagged date : UTC 2023-02-08 17:03:49
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC
Audio #1
ID : 2
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : ec-3
Bit rate mode : Constant
Bit rate : 256 kb/s
Maximum bit rate : 270 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Title :
ac3@GPAC2.2-rev0-gab012bbf-masterService kind : Complete Main
Default : Yes
Alternate group : 1
Encoded date : UTC 2023-02-08 17:03:46
Tagged date : UTC 2023-02-08 17:03:49