-
-
Save Nolski/2a9176392842ab688a1a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i big.mp4 -filter_complex '[0:v]trim=start=3:end=5[v];[0:a]atrim=start=3:end=5[a];[v][v]concat[v1];[a][a]concat[a1];[v1][v]concat[vout];[a1][a]concat[aout]' -map '[vout]' -map '[aout]' out.mp4 | |
ffmpeg version 2.6.3 Copyright (c) 2000-2015 the FFmpeg developers | |
built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) | |
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid --enable-libfreetype --enable-libvorbis --enable-libvpx --enable-libass --enable-ffplay --enable-libfdk-aac --enable-libopus --enable-libquvi --enable-libx265 --enable-nonfree --enable-vda | |
libavutil 54. 20.100 / 54. 20.100 | |
libavcodec 56. 26.100 / 56. 26.100 | |
libavformat 56. 25.101 / 56. 25.101 | |
libavdevice 56. 4.100 / 56. 4.100 | |
libavfilter 5. 11.102 / 5. 11.102 | |
libavresample 2. 1. 0 / 2. 1. 0 | |
libswscale 3. 1.101 / 3. 1.101 | |
libswresample 1. 1.100 / 1. 1.100 | |
libpostproc 53. 3.100 / 53. 3.100 | |
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'big.mp4': | |
Metadata: | |
major_brand : isom | |
minor_version : 512 | |
compatible_brands: isomiso2avc1mp41 | |
encoder : Lavf54.29.104 | |
Duration: 00:18:16.24, start: 0.000000, bitrate: 966 kb/s | |
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 833 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc (default) | |
Metadata: | |
handler_name : VideoHandler | |
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default) | |
Metadata: | |
handler_name : SoundHandler | |
[Parsed_atrim_1 @ 0x7f9e1ad005a0] Media type mismatch between the 'Parsed_atrim_1' filter output pad 0 (audio) and the 'Parsed_concat_3' filter input pad 0 (video) | |
[AVFilterGraph @ 0x7f9e1ac25660] Cannot create the link atrim:0 -> concat:0 | |
Error configuring filters. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment