Assembler 2 vidéos .mp4 , "IDENTIQUES" , en ligne de commandes .
- Code: Tout sélectionner
==== Exemple de fichier batch
@echo on
ffmpeg -y -i "N12_ABCD_1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts "N12_ABCD_1.ts"
pause
ffmpeg -y -i "N12_ABCD_2.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts "N12_ABCD_2.ts"
pause
ffmpeg -y -i concat:"N12_ABCD_1.ts|N12_ABCD_2.ts" -absf aac_adtstoasc -c copy -f mov "N12_ABCD_complet.mp4"
pause
:fin
====
==== Processus résultant
ffmpeg -y -i "N12_ABCD_1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts "N12_ABCD_1.ts"
ffmpeg version N-53284-gd0a34ae Copyright (c) 2000-2013 the FFmpeg developers
built on May 20 2013 01:02:45 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi
g --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-li
bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheo
ra --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 33.100 / 52. 33.100
libavcodec 55. 10.101 / 55. 10.101
libavformat 55. 7.100 / 55. 7.100
libavdevice 55. 1.100 / 55. 1.100
libavfilter 3. 68.101 / 3. 68.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'N12_ABCD_1.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2014-01-07 17:36:10
Duration: 00:12:52.92, start: 0.000000, bitrate: 458 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 512x304 [SAR 95:92 DAR 40:23], 35
9 kb/s, SAR 33:32 DAR 33:19, 25 fps, 25 tbr, 25k tbn, 50 tbc
Metadata:
creation_time : 2014-01-07 17:36:10
handler_name : ABCD_1sur2_track1.h264:fps=25.000#video - Imported with GPAC 0.5.1-DEV-rev4266
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 95 kb/s
Metadata:
creation_time : 2014-01-07 17:36:11
handler_name : ABCD_1sur2_track2.aac#audio - Imported with GPAC 0.5.1-DEV-rev4266
Output #0, mpegts, to 'N12_ABCD_1.ts':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
encoder : Lavf55.7.100
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 512x304 [SAR 33:32 DAR 33:19], q=2-31, 359 kb/s, 25 fps,
90k tbn, 25 tbc
Metadata:
creation_time : 2014-01-07 17:36:10
handler_name : ABCD_1sur2_track1.h264:fps=25.000#video - Imported with GPAC 0.5.1-DEV-rev4266
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 95 kb/s
Metadata:
creation_time : 2014-01-07 17:36:11
handler_name : ABCD_1sur2_track2.aac#audio - Imported with GPAC 0.5.1-DEV-rev4266
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[adts @ 02fe7020] Encoder did not produce proper pts, making some up.
frame=19323 fps=13442 q=-1.0 Lsize= 49299kB time=00:12:52.92 bitrate= 522.5kbits/s
video:33934kB audio:9056kB subtitle:0 global headers:0kB muxing overhead 14.673274%
===
pause
Appuyez sur une touche pour continuer...
===
ffmpeg -y -i "N12_ABCD_2.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts "N12_ABCD_2.ts"
ffmpeg version N-53284-gd0a34ae Copyright (c) 2000-2013 the FFmpeg developers
built on May 20 2013 01:02:45 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi
g --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-li
bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheo
ra --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 33.100 / 52. 33.100
libavcodec 55. 10.101 / 55. 10.101
libavformat 55. 7.100 / 55. 7.100
libavdevice 55. 1.100 / 55. 1.100
libavfilter 3. 68.101 / 3. 68.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'N12_ABCD_2.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2014-01-07 17:30:47
Duration: 00:13:20.64, start: 0.000000, bitrate: 458 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 512x304 [SAR 95:92 DAR 40:23], 36
0 kb/s, SAR 33:32 DAR 33:19, 25 fps, 25 tbr, 25k tbn, 50 tbc
Metadata:
creation_time : 2014-01-07 17:30:47
handler_name : ABCD_2sur2_track1.h264:fps=25.000#video - Imported with GPAC 0.5.1-DEV-rev4266
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 95 kb/s
Metadata:
creation_time : 2014-01-07 17:30:48
handler_name : ABCD_2sur2_track2.aac#audio - Imported with GPAC 0.5.1-DEV-rev4266
Output #0, mpegts, to 'N12_ABCD_2.ts':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
encoder : Lavf55.7.100
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 512x304 [SAR 33:32 DAR 33:19], q=2-31, 360 kb/s, 25 fps,
90k tbn, 25 tbc
Metadata:
creation_time : 2014-01-07 17:30:47
handler_name : ABCD_2sur2_track1.h264:fps=25.000#video - Imported with GPAC 0.5.1-DEV-rev4266
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 95 kb/s
Metadata:
creation_time : 2014-01-07 17:30:48
handler_name : ABCD_2sur2_track2.aac#audio - Imported with GPAC 0.5.1-DEV-rev4266
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[adts @ 02dfcac0] Encoder did not produce proper pts, making some up.
frame=20016 fps=12085 q=-1.0 Lsize= 51101kB time=00:13:20.64 bitrate= 522.9kbits/s
video:35187kB audio:9379kB subtitle:0 global headers:0kB muxing overhead 14.663413%
==========
Cordialement .