Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ffmpeg -y \
- -ss 0 -i testdata/video.webm \
- -ss 0 -i backingtrack.mp3 \
- -ss 0 -i testdata/audio.wav \
- -i overlay.png \
- -i suffix.mp4 \
- -filter_complex \
- \
- "[1:a][2:a] amix=inputs=2:duration=shortest [mergedAudio]; \
- [mergedAudio] asplit=3 [fullAudio][a1][a2]; \
- [a1] atrim=0:2 [vineAudio]; \
- [a2] atrim=0:4 [instagramAudio]; \
- [0]setpts=PTS-STARTPTS[video]; \
- [video][3]overlay[overlayed]; \
- [4]setpts=PTS-STARTPTS[suffix]; \
- [suffix] split=3 [suffix1][suffix2][suffix3]; \
- [overlayed] split=3 [fullIn][instagramIn][vineIn]; \
- [vineIn] trim=0:2 [vineOut]; \
- [instagramIn] trim=0:4 [instagramOut]; \
- [fullIn][suffix1] concat=n=2:v=1:a=0 [full]; \
- [vineOut][suffix2] concat=n=2:v=1:a=0 [vine]; \
- [instagramOut][suffix3] concat=n=2:v=1:a=0 [instagram]" \
- \
- -acodec libvorbis -b:a 128k -ac 2 -r 25 -vcodec libvpx -b:v 1024k \
- -map [full] -map [fullAudio] testdata/output/full.webm \
- -map [instagram] -map [instagramAudio] testdata/output/instagram.webm \
- -map [vine] -map [vineAudio] testdata/output/vine.webm
- ---- ERROR ----
- [audio format for output stream 0:1 @ 0xbc74960] Cannot select sample rate for the link between filters audio format for output stream 0:1 and output stream 0:1.
- ---- COMPLETE OUTPUT -----
- ffmpeg version 2.8.3-static http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers
- built with gcc 5.2.1 (Debian 5.2.1-26) 20151125
- configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --enable-frei0r --enable-libfribidi --disable-indev=sndio --disable-outdev=sndio --cc=gcc
- libavutil 54. 31.100 / 54. 31.100
- libavcodec 56. 60.100 / 56. 60.100
- libavformat 56. 40.101 / 56. 40.101
- libavdevice 56. 4.100 / 56. 4.100
- libavfilter 5. 40.101 / 5. 40.101
- libswscale 3. 1.101 / 3. 1.101
- libswresample 1. 2.101 / 1. 2.101
- libpostproc 53. 3.100 / 53. 3.100
- Input #0, matroska,webm, from 'testdata/video.webm':
- Metadata:
- encoder : whammy
- Duration: 00:00:08.08, start: 0.000000, bitrate: 2097 kb/s
- Stream #0:0: Video: vp8, yuv420p, 480x320, SAR 1:1 DAR 3:2, 1k tbr, 1k tbn, 1k tbc (default)
- [mp3 @ 0xbc38740] Skipping 0 bytes of junk at 4096.
- [mp3 @ 0xbc38740] Estimating duration from bitrate, this may be inaccurate
- Input #1, mp3, from 'backingtrack.mp3':
- Metadata:
- TSS : Logic 10.2.0
- Duration: 00:00:08.07, start: 0.000000, bitrate: 164 kb/s
- Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 160 kb/s
- Guessed Channel Layout for Input Stream #2.0 : stereo
- Input #2, wav, from 'testdata/audio.wav':
- Duration: 00:00:08.92, bitrate: 1411 kb/s
- Stream #2:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
- Input #3, png_pipe, from 'overlay.png':
- Duration: N/A, bitrate: N/A
- Stream #3:0: Video: png, rgba(pc), 480x320 [SAR 2835:2835 DAR 3:2], 25 tbr, 25 tbn, 25 tbc
- Input #4, mov,mp4,m4a,3gp,3g2,mj2, from 'suffix.mp4':
- Metadata:
- major_brand : isom
- minor_version : 512
- compatible_brands: isomiso2avc1mp41
- encoder : Lavf55.33.100
- Duration: 00:00:01.57, start: 0.000000, bitrate: 117 kb/s
- Stream #4:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x320 [SAR 1:1 DAR 3:2], 111 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
- Metadata:
- handler_name : VideoHandler
- [audio format for output stream 0:1 @ 0xbc74960] Cannot select sample rate for the link between filters audio format for output stream 0:1 and output stream 0:1.
- Error configuring complex filters.
- Invalid argument
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement