loones | Encore merci de m'aider, c'est vraiment super sympa !
Je n'ai pas encore extrait tous les sous-titres.
Par contre, j'ai fait un batch avec tes commandes:
Code :
- for %%a in ("*.mkv" ) do ffmpeg -i "%%~na.mkv" -i "%%~na.sub" -c copy "H:\le virginien\episode27\fait\%%~na.mkv"
- pause
|
Il se lance:
Code :
- H:\le virginien\episode27>ffmpeg -i "Strangers at Sundown.mkv" -i "Strangers at Sundown.sub" -c copy "H:\le virginien\episode27\fait\Strangers at Sundown.mkv"
- ffmpeg version N-89948-ge3d946b3f4 Copyright (c) 2000-2018 the FFmpeg developers
- built with gcc 7.2.0 (GCC)
- configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libmfx --enable-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth
- libavutil 56. 7.100 / 56. 7.100
- libavcodec 58. 9.100 / 58. 9.100
- libavformat 58. 7.100 / 58. 7.100
- libavdevice 58. 0.101 / 58. 0.101
- libavfilter 7. 11.101 / 7. 11.101
- libswscale 5. 0.101 / 5. 0.101
- libswresample 3. 0.101 / 3. 0.101
- libpostproc 55. 0.100 / 55. 0.100
- [dvdsub @ 0000024d2646fd00] [IMGUTILS @ 0000006a599fed70] Picture size 0x0 is invalid
- [matroska,webm @ 0000024d2646a940] Failed to open codec in avformat_find_stream_info
- [dvdsub @ 0000024d2646fd00] [IMGUTILS @ 0000006a599fec70] Picture size 0x0 is invalid
- Input #0, matroska,webm, from 'Strangers at Sundown.mkv':
- Metadata:
- encoder : libebml v1.3.6 + libmatroska v1.4.9
- creation_time : 2018-12-28T09:20:24.000000Z
- Duration: 01:11:10.64, start: 0.000000, bitrate: 838 kb/s
- Chapter #0:0: start 0.000000, end 44.880000
- Metadata:
- title : Chapter 1
- Chapter #0:1: start 44.880000, end 1047.040000
- Metadata:
- title : Chapter 2
- Chapter #0:2: start 1047.040000, end 2052.960000
- Metadata:
- title : Chapter 3
- Chapter #0:3: start 2052.960000, end 3292.600000
- Metadata:
- title : Chapter 4
- Chapter #0:4: start 3292.600000, end 4215.520000
- Metadata:
- title : Chapter 5
- Chapter #0:5: start 4215.520000, end 4270.640000
- Metadata:
- title : Chapter 6
- Stream #0:0: Video: h264 (Main), yuv420p(tv, smpte170m/smpte170m/bt709, progressive), 720x540, SAR 1:1 DAR 4:3, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
- Metadata:
- BPS-eng : 705881
- DURATION-eng : 01:11:10.640000000
- NUMBER_OF_FRAMES-eng: 106765
- NUMBER_OF_BYTES-eng: 376820916
- _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
- _STATISTICS_WRITING_DATE_UTC-eng: 2018-12-28 09:20:24
- _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
- Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
- Metadata:
- BPS-eng : 128000
- DURATION-eng : 01:11:10.613000000
- NUMBER_OF_FRAMES-eng: 200185
- NUMBER_OF_BYTES-eng: 68329814
- _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
- _STATISTICS_WRITING_DATE_UTC-eng: 2018-12-28 09:20:24
- _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
- Stream #0:2(fre): Subtitle: dvd_subtitle (default)
- Metadata:
- BPS-eng : 4406
- DURATION-eng : 01:09:28.770000000
- NUMBER_OF_FRAMES-eng: 1674
- NUMBER_OF_BYTES-eng: 2296386
- _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
- _STATISTICS_WRITING_DATE_UTC-eng: 2018-12-28 09:20:24
- _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
- Input #1, mpeg, from 'Strangers at Sundown.sub':
- Duration: 01:07:03.96, start: 142.320000, bitrate: 6 kb/s
- Stream #1:0[0x20]: Subtitle: dvd_subtitle
- Output #0, matroska, to 'H:\le virginien\episode27\fait\Strangers at Sundown.mkv':
- Metadata:
- encoder : Lavf58.7.100
- Chapter #0:0: start 0.000000, end 44.880000
- Metadata:
- title : Chapter 1
- Chapter #0:1: start 44.880000, end 1047.040000
- Metadata:
- title : Chapter 2
- Chapter #0:2: start 1047.040000, end 2052.960000
- Metadata:
- title : Chapter 3
- Chapter #0:3: start 2052.960000, end 3292.600000
- Metadata:
- title : Chapter 4
- Chapter #0:4: start 3292.600000, end 4215.520000
- Metadata:
- title : Chapter 5
- Chapter #0:5: start 4215.520000, end 4270.640000
- Metadata:
- title : Chapter 6
- Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), yuv420p(tv, smpte170m/smpte170m/bt709, progressive), 720x540 [SAR 1:1 DAR 4:3], q=2-31, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
- Metadata:
- BPS-eng : 705881
- DURATION-eng : 01:11:10.640000000
- NUMBER_OF_FRAMES-eng: 106765
- NUMBER_OF_BYTES-eng: 376820916
- _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
- _STATISTICS_WRITING_DATE_UTC-eng: 2018-12-28 09:20:24
- _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
- Stream #0:1(eng): Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, fltp (default)
- Metadata:
- BPS-eng : 128000
- DURATION-eng : 01:11:10.613000000
- NUMBER_OF_FRAMES-eng: 200185
- NUMBER_OF_BYTES-eng: 68329814
- _STATISTICS_WRITING_APP-eng: mkvmerge v26.0.0 ('In The Game') 64-bit
- _STATISTICS_WRITING_DATE_UTC-eng: 2018-12-28 09:20:24
- _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
- Stream mapping:
- Stream #0:0 -> #0:0 (copy)
- Stream #0:1 -> #0:1 (copy)
- Press [q] to stop, [?] for help
- frame=106765 fps=57665 q=-1.0 Lsize= 437044kB time=01:11:10.60 bitrate= 838.4kbits/s speed=2.31e+003x
- video:367989kB audio:66728kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.535227%
- H:\le virginien\episode27>pause
- Appuyez sur une touche pour continuer...
|
Je me retrouve bien avec un fichier MKV dans le dossier "fait", mais j'en fais quoi ? En fait, les étapes que je fais manuellement sont ceux-ci:
1 - Du fichier vidéo.mp4 contenant la vidéo, le son et le vobsub, je le balance dans MKmerge pour en faire un fichier MKV.
2 - Ce MKV, je l'ouvre avec MKVextract pour en extraire le fichier vobsub.
3 - Je modifie le fichier idx pour la couleur des sous titres.
4 - Je lance mon script.
J'avoue être perdu avec ton batch...
Si je l'utilise pour convertir le mp4 en mkv:
Code :
- for %%a in ("*.mp4" ) do ffmpeg -i "%%~na.mkv" -c copy "H:\le virginien\episode27\fait\%%~na.mkv"
- pause
|
Le fichier mkv crée ne possède pas les sous titres
Message édité par loones le 28-12-2018 à 14:57:07
|