Deutsch English Français Italiano |
<620ae5c1$0$3444$426a74cc@news.free.fr> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed3-a.proxad.net!nnrp1-1.free.fr!not-for-mail Newsgroups: fr.comp.os.linux.configuration From: Nicolas George <nicolas$george@salle-s.org> Subject: Re: inclure sub et idx dans mp4 Sender: george@phare.invalid (Nicolas George) X-Newsreader: Flrn (0.9.20070704) References: <20220214182946.0f7a58b4@coffee.novazur.fr> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=iso-8859-1 Date: 14 Feb 2022 23:29:06 GMT Lines: 110 Message-ID: <620ae5c1$0$3444$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 15 Feb 2022 00:29:06 CET NNTP-Posting-Host: 129.199.129.80 X-Trace: 1644881346 news-3.free.fr 3444 129.199.129.80:43996 X-Complaints-To: abuse@proxad.net Bytes: 6105 Christophe PEREZ , dans le message <20220214182946.0f7a58b4@coffee.novazur.fr>, a écrit : > J'ai essayé en rajoutant "-i video.sub -i video.idx -c:s mov_text" à ma > commande ffmpeg, mais il se plaint de ne pouvoir convertir que du texte > en texte, ou du bitmap en bitmap, ce qui ne m'éclaire pas beaucoup. > Et sans le "-c:s mov_text" la vidéo est bien générée, mais aucun > sous-titre apparent. Le format MP4 est pourri, il ne supporte qu'une petite poignée de fonctionnalités intéressantes. > J'ai essayé en rajoutant "-i video.sub -i video.idx -c:s mov_text" à ma > commande ffmpeg, mais il se plaint de ne pouvoir convertir que du texte > en texte, ou du bitmap en bitmap, ce qui ne m'éclaire pas beaucoup. Le format Vobsub (que tu appelles sub+idx) stocke les sous-titres comme images. Pour le convertir en texte, il faudrait de la reconnaissance de caractères. Pas impossible, mais en aucun cas 100% automatique. > Dans l'absolu, je préfèrerais un "tout en un" avec les sous-titres > inclus dans la vidéo, mais si je dois conserver des fichiers externes > ça restera acceptable. Tu t'épargneras des cheveux blancs en incrustant les sous-titres directement dans la vidéo. Regarde dans la doc de ffmpeg sur -filter_complex, c'est expliqué. > Les fichiers existants actuels : > $ mediainfo video.* La sortie de ffmpeg/ffprobe est plus parlante. > General > Complete name : video.avi > Format : AVI > Format/Info : Audio Video Interleave > File size : 550 MiB > Duration : 55 min 17 s > Overall bit rate mode : Variable > Overall bit rate : 1 390 kb/s > Writing application : MEncoder SVN-r34643 > Writing library : MPlayer > > Video > ID : 0 > Format : MPEG-4 Visual > Format profile : Advanced Simple@L5 > Format settings : BVOP1 > Format settings, BVOP : 1 > Format settings, QPel : No > Format settings, GMC : No warppoints > Format settings, Matrix : Default (H.263) > Muxing mode : Packed bitstream > Codec ID : XVID > Codec ID/Hint : XviD > Duration : 55 min 17 s > Bit rate : 1 239 kb/s > Width : 624 pixels > Height : 352 pixels > Display aspect ratio : 16:9 > Frame rate : 23.976 (24000/1001) FPS > Color space : YUV > Chroma subsampling : 4:2:0 > Bit depth : 8 bits > Scan type : Progressive > Compression mode : Lossy > Bits/(Pixel*Frame) : 0.235 > Stream size : 490 MiB (89%) > Writing library : XviD 1.2.1 (UTC 2008-12-04) > > Audio > ID : 1 > Format : MPEG Audio > Format version : Version 1 > Format profile : Layer 3 > Format settings : Joint stereo / MS Stereo > Codec ID : 55 > Codec ID/Hint : MP3 > Duration : 55 min 17 s > Bit rate mode : Variable > Bit rate : 144 kb/s > Channel(s) : 2 channels > Sampling rate : 48.0 kHz > Frame rate : 41.667 FPS (1152 SPF) > Compression mode : Lossy > Stream size : 55.0 MiB (10%) > Alignment : Aligned on interleaves > Interleave, duration : 24 ms (0.58 video frame) > Interleave, preload duration : 458 ms > Writing library : LAME3.98 > Encoding settings : -m j -V 4 -q 3 -lowpass 17.5 > --abr 144 > > General > Complete name : video.idx > File size : 1.08 KiB > > General > Complete name : video.sub > Format : MPEG-PS > File size : 2.00 KiB > FileExtension_Invalid : mpeg mpg m2p vob vro pss evo > > Text > ID : 189 (0xBD)-32 (0x20) > Format : RLE > Format/Info : Run-length encoding > Muxing mode : DVD-Video >