Stefano, questo è il risultato che mi ha lasciato stupefatto, visto che la dimensione del file è passata da 9,3 Giga a 75 Mega!
Codice: Seleziona tutto
$ START2=$(date +%s.%N); CARTELLA="YTS"; rm -Rf $CARTELLA; mkdir $CARTELLA; for i in ./*.*; do NOME="$i"; NOME="${NOME#./*}"; NOME="./$CARTELLA/${NOME%%.*}.mp4"; flatpak run --command=HandBrakeCLI fr.handbrake.ghb -i "$i" -o "$NOME" -E ffaac -B 96k -6 stereo -R 44.1 -e x264 -q 27 -x cabac=1:ref=5:analyse=0x133:me=umh:subme=9:chroma-me=1:deadzone-inter=21:deadzone-intra=11:b-adapt=2:rc-lookahead=60:vbv-maxrate=10000:vbv-bufsize=10000:qpmax=69:bframes=5:b-adapt=2:direct=auto:crf-max=51:weightp=2:merange=24:chroma-qp-offset=-1:sync-lookahead=2:psy-rd=1.00,0.15:trellis=2:min-keyint=23:partitions=all; done; END2=$(date +%s.%N); DIFF2=$(echo "$END2 - $START2" | bc); TEMPO2=`date -d@$DIFF2 -u +%H:%M:%S`; echo -e "Encoding effettuato in $TEMPO2"
[07:49:14] Compile-time hardening features are enabled
[07:49:14] qsv: not available on this system
Cannot load libnvidia-encode.so.1
[07:49:14] hb_init: starting libhb thread
[07:49:14] thread 7f0e4dea8640 started ("libhb")
HandBrake 1.6.1 (2023012300) - Linux x86_64 - https://handbrake.fr
4 CPUs detected
Opening ./esportazione_4mts.mkv...
[07:49:14] CPU: Intel(R) Core(TM) i3-4160T CPU @ 3.10GHz
[07:49:14] - Intel microarchitecture Haswell
[07:49:14] - logical processor count: 4
[07:49:14] Intel Quick Sync Video support: no
[07:49:14] hb_scan: path=./esportazione_4mts.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image ./esportazione_4mts.mkv
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
[07:49:14] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[07:49:14] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from './esportazione_4mts.mkv':
Metadata:
ENCODER : Lavf58.76.100
Duration: 00:04:55.87, start: 0.000000, bitrate: 269253 kb/s
Stream #0:0: Video: huffyuv (HFYU / 0x55594648), yuv422p(bt709), 1920x1080, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 1k tbn (default)
Metadata:
DURATION : 00:04:55.840000000
Stream #0:1: Audio: flac, 48000 Hz, stereo, s16 (default)
Metadata:
DURATION : 00:04:55.872000000
[07:49:14] scan: decoding previews for title 1
[07:49:14] scan: audio 0x1: flac, rate=48000Hz, bitrate=1 Unknown (FLAC) (2.0 ch)
Scanning title 1 of 1, preview 6, 60.00 %[07:49:15] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: unspecified
[07:49:15] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
+ stream: ./esportazione_4mts.mkv
+ duration: 00:04:55
+ size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 25.000 fps
+ autocrop: 0/0/0/0
+ chapters:
+ 1: duration 00:04:55
+ audio tracks:
+ 1, Unknown (FLAC) (2.0 ch) (iso639-2: und)
+ subtitle tracks:
[07:49:15] Starting work at: Fri Mar 3 07:49:15 2023
[07:49:15] 1 job(s) to process
[07:49:15] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 96,
"CompressionLevel": -1.0,
"DRC": 0.0,
"DitherMethod": "auto",
"Encoder": "av_aac",
"Gain": 0.0,
"Mixdown": "stereo",
"NormalizeMixLevel": false,
"PresetEncoder": "av_aac",
"Quality": -3.0,
"Samplerate": 44100,
"Track": 0
}
],
"CopyMask": [
"copy:aac",
"copy:ac3",
"copy:eac3",
"copy:dtshd",
"copy:dts",
"copy:mp3",
"copy:truehd",
"copy:flac"
],
"FallbackEncoder": "av_aac"
},
"Destination": {
"AlignAVStart": false,
"ChapterList": [
{
"Duration": {
"Hours": 0,
"Minutes": 4,
"Seconds": 55,
"Ticks": 26628480
},
"Name": ""
}
],
"ChapterMarkers": false,
"File": "./YTS/esportazione_4mts.mp4",
"InlineParameterSets": false,
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "m4v"
},
"Filters": {
"FilterList": [
{
"ID": 7,
"Settings": {
"mode": 0
}
},
{
"ID": 14,
"Settings": {
"crop-bottom": 0,
"crop-left": 0,
"crop-right": 0,
"crop-top": 0,
"height": 1080,
"width": 1920
}
}
]
},
"Metadata": {},
"PAR": {
"Den": 1,
"Num": 1
},
"SequenceID": 0,
"Source": {
"Angle": 0,
"Path": "./esportazione_4mts.mkv",
"Range": {
"End": 1,
"Start": 1,
"Type": "chapter"
},
"Title": 1
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"ChromaLocation": 0,
"ColorInputFormat": 0,
"ColorMatrix": 1,
"ColorOutputFormat": 0,
"ColorPrimaries": 1,
"ColorRange": 0,
"ColorTransfer": 1,
"Encoder": "x264",
"HardwareDecode": 0,
"Level": "auto",
"Options": "cabac=1:ref=5:analyse=0x133:me=umh:subme=9:chroma-me=1:deadzone-inter=21:deadzone-intra=11:b-adapt=2:rc-lookahead=60:vbv-maxrate=10000:vbv-bufsize=10000:qpmax=69:bframes=5:b-adapt=2:direct=auto:crf-max=51:weightp=2:merange=24:chroma-qp-offset=-1:sync-lookahead=2:psy-rd=1.00,0.15:trellis=2:min-keyint=23:partitions=all",
"Preset": "medium",
"Profile": "auto",
"QSV": {
"AdapterIndex": 0,
"AsyncDepth": 0,
"Decode": false
},
"Quality": 27.0,
"Tune": "",
"Turbo": false,
"TwoPass": false
}
}
[07:49:15] Starting Task: Encoding Pass
[07:49:15] Skipping vfr filter
[07:49:15] Skipping crop/scale filter
[07:49:15] job configuration:
[07:49:15] * source
[07:49:15] + ./esportazione_4mts.mkv
[07:49:15] + title 1, chapter(s) 1 to 1
[07:49:15] + container: matroska,webm
[07:49:15] + data rate: 269253 kbps
[07:49:15] * destination
[07:49:15] + ./YTS/esportazione_4mts.mp4
[07:49:15] + container: MPEG-4 (libavformat)
[07:49:15] * video track
[07:49:15] + decoder: huffyuv 8-bit (yuv422p)
[07:49:15] + filters
[07:49:15] + Format (format=yuv420p)
[07:49:15] + Output geometry
[07:49:15] + storage dimensions: 1920 x 1080
[07:49:15] + pixel aspect ratio: 1 : 1
[07:49:15] + display dimensions: 1920 x 1080
[07:49:15] + encoder: H.264 (libx264)
[07:49:15] + preset: medium
[07:49:15] + options: cabac=1:ref=5:analyse=0x133:me=umh:subme=9:chroma-me=1:deadzone-inter=21:deadzone-intra=11:b-adapt=2:rc-lookahead=60:vbv-maxrate=10000:vbv-bufsize=10000:qpmax=69:bframes=5:b-adapt=2:direct=auto:crf-max=51:weightp=2:merange=24:chroma-qp-offset=-1:sync-lookahead=2:psy-rd=1.00,0.15:trellis=2:min-keyint=23:partitions=all
[07:49:15] + profile: auto
[07:49:15] + level: auto
[07:49:15] + quality: 27.00 (RF)
[07:49:15] + color profile: 1-1-1
[07:49:15] + chroma location: unspecified
[07:49:15] * audio track 1
[07:49:15] + decoder: Unknown (FLAC) (2.0 ch) (track 1, id 0x1)
[07:49:15] + samplerate: 48000 Hz
[07:49:15] + mixdown: Stereo
[07:49:15] + encoder: AAC (libavcodec)
[07:49:15] + bitrate: 96 kbps, samplerate: 44100 Hz
[07:49:15] sync: expecting 7396 video frames
[07:49:15] encx264: min-keyint: 23, keyint: 250
[07:49:15] encx264: encoding at constant RF 27.000000
[07:49:15] encx264: unparsed options: ref=5:analyse=all:me=umh:subme=9:chroma-me=1:b-adapt=2:rc-lookahead=60:vbv-maxrate=10000:vbv-bufsize=10000:qpmax=69:bframes=5:direct=auto:crf-max=51:merange=24:chroma-qp-offset=-1:sync-lookahead=2:psy-rd=1,0.15:trellis=2:keyint-min=23
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 UnalignedStack
x264 [info]: profile High, level 5.0, 4:2:0, 8-bit
Encoding: task 1 of 1, 0.00 %[07:49:15] sync: first pts video is 0
[07:49:15] sync: Chapter 1 at frame 1 time 0
Encoding: task 1 of 1, 0.31 %[07:49:16] sync: first pts audio 0x1 is 0
Encoding: task 1 of 1, 99.00 % (4.12 fps, avg 5.41 fps, ETA 00h00m14s)[08:11:48] reader: done. 1 scr changes
Encoding: task 1 of 1, 99.99 % (4.39 fps, avg 5.41 fps, ETA 00h00m07s)[08:12:19] work: average encoding speed for job is 5.406590 fps
Encoding: task 1 of 1, 99.99 % (4.39 fps, avg 5.41 fps, ETA 00h00m07s)[08:12:19] flac-decoder done: 3082 frames, 0 decoder errors
[08:12:19] huffyuv-decoder done: 7396 frames, 0 decoder errors
[08:12:19] sync: got 7396 frames, 7396 expected
[08:12:19] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:33 Avg QP:24.46 size: 56624
x264 [info]: frame P:1757 Avg QP:27.39 size: 19219
x264 [info]: frame B:5606 Avg QP:29.11 size: 6980
x264 [info]: consecutive B-frames: 1.2% 2.7% 13.6% 27.3% 34.1% 21.3%
x264 [info]: mb I I16..4: 35.4% 61.4% 3.3%
x264 [info]: mb P I16..4: 9.0% 6.8% 0.2% P16..4: 44.7% 2.5% 4.9% 0.0% 0.0% skip:31.8%
x264 [info]: mb B I16..4: 0.4% 0.4% 0.0% B16..8: 38.9% 1.5% 0.2% direct: 2.3% skip:56.2% L0:48.2% L1:50.8% BI: 1.1%
x264 [info]: 8x8 transform intra:44.8% inter:90.8%
x264 [info]: direct mvs spatial:99.9% temporal:0.1%
x264 [info]: coded y,uvDC,uvAC intra: 26.8% 36.8% 2.9% inter: 6.1% 14.5% 0.0%
x264 [info]: i16 v,h,dc,p: 22% 26% 10% 42%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 9% 6% 13% 10% 14% 11% 13% 10% 14%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 5% 51% 6% 4% 6% 5% 7% 4% 12%
x264 [info]: i8c dc,h,v,p: 62% 22% 12% 4%
x264 [info]: Weighted P-Frames: Y:3.5% UV:1.8%
x264 [info]: ref P L0: 53.9% 10.5% 20.8% 7.5% 7.0% 0.2% 0.0%
x264 [info]: ref B L0: 82.9% 11.8% 4.2% 1.2%
x264 [info]: ref B L1: 96.3% 3.7%
x264 [info]: kb/s:2021.80
[08:12:19] mux: track 0, 7396 frames, 74764675 bytes, 2021.21 kbps, fifo 2048
[08:12:19] mux: track 1, 12743 frames, 3565261 bytes, 96.38 kbps, fifo 4096
[08:12:19] Finished work at: Fri Mar 3 08:12:19 2023
[08:12:19] libhb: work result = 0
Encode done!
HandBrake has exited.
[08:12:19] Compile-time hardening features are enabled
[08:12:19] qsv: not available on this system
Cannot load libnvidia-encode.so.1
[08:12:19] hb_init: starting libhb thread
[08:12:19] thread 7f5efb8fc640 started ("libhb")
HandBrake 1.6.1 (2023012300) - Linux x86_64 - https://handbrake.fr
4 CPUs detected
Opening ./I_Q2HD.pdf...
[08:12:19] CPU: Intel(R) Core(TM) i3-4160T CPU @ 3.10GHz
[08:12:19] - Intel microarchitecture Haswell
[08:12:19] - logical processor count: 4
[08:12:19] Intel Quick Sync Video support: no
[08:12:19] hb_scan: path=./I_Q2HD.pdf, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:333: failed opening UDF image ./I_Q2HD.pdf
disc.c:437: error opening file BDMV/index.bdmv
disc.c:437: error opening file BDMV/BACKUP/index.bdmv
[08:12:19] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[08:12:19] dvd: not a dvd - trying as a stream/file instead
[08:12:19] hb_stream_open: open ./I_Q2HD.pdf failed
[08:12:19] scan: unrecognized file type
[08:12:19] libhb: scan thread found 0 valid title(s)
No title found.
HandBrake has exited.
Encoding effettuato in 00:23:06