Path: ...!news.mixmin.net!weretis.net!feeder8.news.weretis.net!pasdenom.info!news.usenet.ovh!news!.POSTED!not-for-mail From: Christophe PEREZ Newsgroups: fr.comp.os.linux.configuration Subject: ffmpeg UHD vers HD Date: Mon, 15 May 2023 19:02:44 -0000 (UTC) Organization: Alfa Network En Travaux Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 15 May 2023 19:02:44 -0000 (UTC) Injection-Info: news; posting-account="christophe"; logging-data="103077"; mail-complaints-to="abuse@usenet.ovh" User-Agent: Pan/0.153 (Mariupol; c5405f5) Cancel-Lock: sha256:aCXbfRbkjWvPi5myPbmu4LcXk+8Njx81Tpi2CxcsicI= Bytes: 8908 Lines: 165 Bonjour, J'ai un film (mkv dont caractéristiques plus bas) que je voudrais transmettre par wifi (serveur multimedia) à ma TV TCL 65c728. Si je l'ouvre tel quel sur ma TV, j'ai 2 défauts : - pas de son - quelques freezes de temps en temps, sans aucun doute lié à la capacité du Wifi chez moi. Si je converti le son en AC3 par : ffmpeg -i film.2160p.x265.AAC5.1.mkv -acodec ac3 -vcodec copy film.mp4 j'ai bien le son sur la TV. Par contre, il me faudrait diminuer le "poids" du film pour ne plus avoir les freezes, en tentant évidemment de conserver la meilleure qualité possible, audio et vidéo. Vu qu'il est en 3840x1600, je me disais qu'en le redimensionnant en 1920x800, ça aurait pu faire l'affaire. Après quelques recherches, je suis arrivé à tenter : ffmpeg -i film.2160p.x265.AAC5.1.mkv -vf scale=1920x800:flags=lanczos -c:v libx264 -preset veryslow -crf 10 -c:a ac3 film.mp4 Mais, ma TV me rejette le format (incompatible). Et comme le temps de conversion est très très long, c'est assez compliqué de faire de très nombreux tests en tâtonnant, et les options ffmpeg me sont toujours aussi inabordables. Certains tests m'ont donné des fichiers encore plus gros que les 5.5Go d'origine... Quelle erreur je fais ? Merci d'avance. Format : Matroska Format version : Version 4 File size : 5.47 GiB Duration : 2 h 0 min Overall bit rate : 6 518 kb/s Writing application : Lavf58.67.100 Writing library : Lavf58.67.100 ErrorDetectionType : Per level 1 Video ID : 1 Format : HEVC Format/Info : High Efficiency Video Coding Format profile : Main 10@L5@Main Codec ID : V_MPEGH/ISO/HEVC Duration : 2 h 0 min Width : 3 840 pixels Height : 1 600 pixels Display aspect ratio : 2.40:1 Frame rate mode : Constant Frame rate : 24.000 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 10 bits Writing library : x265 3.4+32-b24459657:[Linux] [GCC 7.5.0][64 bit] 10bit Encoding settings : cpuid=1111039 / frame- threads=4 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=3840x1600 / interlace=0 / total-frames=0 / level- idc=0 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / no- repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal- layers / open-gop / min-keyint=24 / keyint=250 / gop-lookahead=0 / bframes=4 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=25 / lookahead-slices=4 / scenecut=40 / hist-scenecut=0 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / no-amp / max-tu- size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr- inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=3 / merange=57 / temporal-mvp / no-frame-dup / no-hme / weightp / no-weightb / no-analyze-src-pics / deblock=0:0 / sao / no-sao-non-deblock / rd=4 / selective-sao=4 / no-early- skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b- intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=1.00 / no- rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=abr / bitrate=6000 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=2 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30 / aq-mode=2 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=1 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display- window=0 / cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui- timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list- length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / hist- threshold=0.03 / no-opt-cu-delta-qp / no-aq-motion / no-hdr10 / no-hdr10- opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=0 / analysis-save-reuse-level=0 / analysis-load-reuse-level=0 / scale- factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=1 / refine-ctu- distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine- analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / no-field / qp-adaptation-range=1.00 / no-scenecut-aware-qpconformance-window-offsets / right=0 / bottom=0 / decoder-max-rate=0 / no-vbv-live-multi-pass Default : Yes Forced : No Color range : Limited Audio ID : 2 Format : AAC LC Format/Info : Advanced Audio Codec Low Complexity Codec ID : A_AAC-2 Duration : 2 h 0 min Channel(s) : 6 channels Channel layout : C L R Ls Rs LFE Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Writing library : Lavc58.122.100 libfdk_aac Default : Yes Forced : No Text #1 ID : 3 Format : UTF-8 Codec ID : S_TEXT/UTF8 Codec ID/Info : UTF-8 Plain Text Duration : 2 h 0 min Title : SRT Language : English Default : Yes Forced : No Text #2 ID : 4 Format : PGS Codec ID : S_HDMV/PGS Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs Duration : 1 min 15 s Default : No Forced : No Text #3 ID : 5 Format : PGS Codec ID : S_HDMV/PGS Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs Duration : 1 h 59 min Default : No Forced : No Text #4 ID : 6 Format : PGS Codec ID : S_HDMV/PGS Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs Duration : 2 h 0 min Default : No Forced : No Text #5 ID : 7 Format : PGS Codec ID : S_HDMV/PGS Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs Duration : 2 h 0 min Default : No Forced : No