Bonjour Slyfox
C'est un peu hors sujet mais est-ce qu'une bonne ligne de commande pour un encodage de ouf pour un mini HQ de 720P mieux que l'original (film 4 go/1 heure vers 1,2 go) t'intéresse ?
fps = 11 et bitrate de 1900 environ. Et oui, c'est le prix à payer
patrick@PC1:~/Bureau$ ffmpeg -i stream.dump -map 0:0 -map 0:2 -metadata:s:a:0 language=fra -metadata:s:a:0 title="Français AC3" -loglevel repeat+verbose -movflags faststart -c:v libx264 -x264opts 'keyint=300:min-keyint=25:8x8dct:sliced-threads=0' -qblur 0.5 -deblock 1:1 -flags +loop -b:v 2048k -maxrate 2048k -bufsize 5000k -vf "hqdn3d=1.5:1.5:6:6,unsharp=5:5:1.0:5:5:0.0,hue=b=0.1:s=0.7,noise=c0s=10:c1s=0:c2s=0:c0f=a+t,scale=-1280:720:flags=spline+full_chroma_inp+full_chroma_int+accurate_rnd+bitexact" -qcomp 0.60 -qblur 0.5 -acodec ac3 -b:a 160k -coder 1 -me_range 6 -sc_threshold 42 -bf 10 -qmin 0 -qmax 40 -qblur 0.5 -trellis 2 -mbtree 1 -preset veryslow -ss 00:00:00 -t 00:02:00 SORTIE_H264_720P.mp4
ffmpeg version 3.2.4-1 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-6) 20170205
configuration: --prefix=/usr --extra-version=1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
[mpeg @ 0x5635a33fcfa0] max_analyze_duration 5000000 reached at 5000000 microseconds st:0
Input #0, mpeg, from 'stream.dump':
Duration: 01:06:12.99, start: 0.287267, bitrate: 7912 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), 1 reference frame, yuv420p(tv, top first, left), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:2[0x81]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:3[0x82]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s
Stream #0:4[0x83]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:5[0x20]: Subtitle: dvd_subtitle
Stream #0:6[0x21]: Subtitle: dvd_subtitle
Stream #0:7[0x22]: Subtitle: dvd_subtitle
Stream #0:8[0x23]: Subtitle: dvd_subtitle
Stream #0:9[0x24]: Subtitle: dvd_subtitle
Stream #0:10[0x25]: Subtitle: dvd_subtitle
[Parsed_hqdn3d_0 @ 0x5635a3483a80] ls:1.500000 cs:1.500000 lt:6.000000 ct:6.000000
[Parsed_hue_2 @ 0x5635a3484540] H_expr:(null) h_deg_expr:(null) s_expr:0.7 b_expr:0.1
[Parsed_scale_4 @ 0x5635a34843a0] w:-1280 h:720 flags:'spline+full_chroma_inp+full_chroma_int+accurate_rnd+bitexact' interl:0
[graph 0 input from stream 0:0 @ 0x5635a3484be0] w:720 h:576 pixfmt:yuv420p tb:1/90000 fr:25/1 sar:64/45 sws_param:flags=2
[Parsed_unsharp_1 @ 0x5635a347f960] effect:sharpen type:luma msize_x:5 msize_y:5 amount:1.00
[Parsed_unsharp_1 @ 0x5635a347f960] effect:none type:chroma msize_x:5 msize_y:5 amount:0.00
[Parsed_scale_4 @ 0x5635a34843a0] w:720 h:576 fmt:yuv420p sar:64/45 -> w:1280 h:720 fmt:yuv420p sar:1/1 flags:0xc6400
[graph 1 input from stream 0:2 @ 0x5635a38ab400] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f
[libx264 @ 0x5635a34d27a0] using SAR=1/1
[libx264 @ 0x5635a34d27a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x5635a34d27a0] profile High, level 5.0
[libx264 @ 0x5635a34d27a0] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=1 ref=16 deblock=1:1:1 analyse=0x3:0x133 me=umh subme=10 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=6 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=10 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=300 keyint_min=25 scenecut=42 intra_refresh=0 rc_lookahead=60 rc=cbr mbtree=1 bitrate=2048 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=40 qpstep=4 vbv_maxrate=2048 vbv_bufsize=5000 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'SORTIE_H264_720P.mp4':
Metadata:
encoder : Lavf57.56.101
Stream #0:0: Video: h264 (libx264), 1 reference frame ([33][0][0][0] / 0x0021), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], q=0-40, 2048 kb/s, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc57.64.101 libx264
Side data:
cpb: bitrate max/min/avg: 2048000/0/2048000 buffer size: 5000000 vbv_delay: -1
Stream #0:1(fra): Audio: ac3 ([165][0][0][0] / 0x00A5), 48000 Hz, 5.1(side), fltp, delay 256, 160 kb/s
Metadata:
title : Français AC3
encoder : Lavc57.64.101 ac3
Stream mapping:
Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
Stream #0:2 -> #0:1 (ac3 (native) -> ac3 (native))
Press [q] to stop, [?] for help
No more output streams to write to, finishing.e=00:01:59.57 bitrate=2009.6kbits/s speed=0.435x
[mp4 @ 0x5635a34d1220] Starting second pass: moving the moov atom to the beginning of the file
frame= 3000 fps= 11 q=-1.0 Lsize= 30233kB time=00:01:59.99 bitrate=2064.0kbits/s speed=0.43x
video:27816kB audio:2344kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.241886%
Input file #0 (stream.dump):
Input stream #0:0 (video): 3007 packets read (96595805 bytes); 3007 frames decoded;
Input stream #0:1 (audio): 0 packets read (0 bytes);
Input stream #0:2 (audio): 3751 packets read (5761536 bytes); 3751 frames decoded (5761536 samples);
Input stream #0:3 (audio): 0 packets read (0 bytes);
Input stream #0:4 (audio): 0 packets read (0 bytes);
Input stream #0:5 (subtitle): 0 packets read (0 bytes);
Input stream #0:6 (subtitle): 0 packets read (0 bytes);
Input stream #0:7 (subtitle): 0 packets read (0 bytes);
Input stream #0:8 (subtitle): 0 packets read (0 bytes);
Input stream #0:9 (subtitle): 0 packets read (0 bytes);
Input stream #0:10 (subtitle): 0 packets read (0 bytes);
Total: 6758 packets (102357341 bytes) demuxed
Output file #0 (SORTIE_H264_720P.mp4):
Output stream #0:0 (video): 3000 frames encoded; 3000 packets muxed (28483607 bytes);
Output stream #0:1 (audio): 3750 frames encoded (5760000 samples); 3750 packets muxed (2400000 bytes);
Total: 6750 packets (30883607 bytes) muxed
[libx264 @ 0x5635a34d27a0] frame I:17 Avg QP:20.86 size: 73296
[libx264 @ 0x5635a34d27a0] frame P:702 Avg QP:25.53 size: 21912
[libx264 @ 0x5635a34d27a0] frame B:2281 Avg QP:26.75 size: 5197
[libx264 @ 0x5635a34d27a0] consecutive B-frames: 1.4% 3.2% 11.4% 32.3% 16.7% 33.4% 0.5% 0.3% 0.6% 0.3% 0.0%
[libx264 @ 0x5635a34d27a0] mb I I16..4: 12.5% 77.9% 9.6%
[libx264 @ 0x5635a34d27a0] mb P I16..4: 2.1% 9.3% 1.6% P16..4: 44.3% 10.7% 8.7% 0.1% 0.0% skip:23.2%
[libx264 @ 0x5635a34d27a0] mb B I16..4: 0.1% 0.5% 0.2% B16..8: 40.2% 3.9% 0.9% direct: 2.2% skip:52.1% L0:45.5% L1:51.9% BI: 2.6%
[libx264 @ 0x5635a34d27a0] 8x8 transform intra:71.6% inter:71.3%
[libx264 @ 0x5635a34d27a0] direct mvs spatial:99.7% temporal:0.3%
[libx264 @ 0x5635a34d27a0] coded y,uvDC,uvAC intra: 74.7% 40.1% 15.4% inter: 11.0% 4.7% 0.2%
[libx264 @ 0x5635a34d27a0] i16 v,h,dc,p: 52% 24% 10% 14%
[libx264 @ 0x5635a34d27a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 8% 3% 11% 16% 14% 15% 11% 12%
[libx264 @ 0x5635a34d27a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 8% 4% 11% 15% 14% 14% 10% 12%
[libx264 @ 0x5635a34d27a0] i8c dc,h,v,p: 45% 27% 19% 9%
[libx264 @ 0x5635a34d27a0] Weighted P-Frames: Y:8.1% UV:4.8%
[libx264 @ 0x5635a34d27a0] ref P L0: 47.8% 11.3% 16.6% 5.3% 4.3% 3.0% 2.8% 1.5% 1.3% 1.1% 1.0% 0.9% 0.9% 0.8% 0.8% 0.6%
[libx264 @ 0x5635a34d27a0] ref B L0: 83.6% 7.9% 3.1% 1.3% 0.9% 0.7% 0.6% 0.4% 0.3% 0.3% 0.2% 0.2% 0.2% 0.2% 0.1%
[libx264 @ 0x5635a34d27a0] ref B L1: 96.8% 3.2%
[libx264 @ 0x5635a34d27a0] kb/s:1898.86
patrick@PC1:~/Bureau$
Mediainfo : (pour 2 minutes de film encodé)
patrick@PC1:~/Bureau$ mediainfo SORTIE_H264_720P.mp4
General
Complete name : SORTIE_H264_720P.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 29.5 MiB
Duration : 2 min 0 s
Overall bit rate : 2 064 kb/s
Encoded date : UTC 1904-01-01 00:00:00
Tagged date : UTC 1904-01-01 00:00:00
Writing application : Lavf57.56.101
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2 min 0 s
Bit rate : 1 899 kb/s
Nominal bit rate : 2 048 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.082
Stream size : 27.2 MiB (92%)
Writing library : x264 core 148 r2748 97eaef2
Encoding settings : cabac=1 / ref=16 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=6 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=10 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=25 / scenecut=42 / intra_refresh=0 / rc_lookahead=60 / rc=cbr / mbtree=1 / bitrate=2048 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=40 / qpstep=4 / vbv_maxrate=2048 / vbv_bufsize=5000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 1904-01-01 00:00:00
Tagged date : UTC 1904-01-01 00:00:00
Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : ac-3
Duration : 2 min 0 s
Bit rate mode : Constant
Bit rate : 160 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 spf)
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 2.29 MiB (8%)
Title : Français AC3
Language : French
Default : Yes
Alternate group : 1
Encoded date : UTC 1904-01-01 00:00:00
Tagged date : UTC 1904-01-01 00:00:00
patrick@PC1:~/Bureau$
Dernière modification par Anonyme (22-04-2017 07:10:27)