ffmpeg output same filters to 2 outputs

http://ffmpeg-users.933282.n4.nabble.com/different-filters-to-different-outputs-possible-td4655180.html

has the clue…
ffmpeg -i sintel.mpg -an -filter_complex “[0] scale=1000:1000,split=2
[a] [b]” -y -map “[a]” sintel.avi -map “[b]” sintel2.avi
C:\dev\ruby\dirt-simple-usb-surveillance>C:\installs\ffmpeg-distro-static-2012-10-10-42212c664c24d813ff5d843dd04aac5cf6d7de45.frei0r\ffmpeg-distro-static-2012-10-10-42212c664c24d813ff5d843dd04aac5cf6d7de45\ffmpeg-32 -y -f dshow -pixel_format yuyv422 -framerate 7.5 -video_size 1280×720 -i video=”Integrated Camera” -filter_complex “drawtext=fontcolor=white:shadowcolor=black:shadowx=1:shadowy=1:fontfile=vendor/arial.ttf:text=%m/%d/%y %Hh %Mm %Ss [out]” -r 7.5 -t 3600 -vcodec mpeg4 -b:v 500k -f mp4 -map “[out]” “C:/Users/packrd/Videos/dirt_simple_surveillance/Integrated Camera/2012-12-28/11h-20m.mp4.partial” -t 3600 -updatefirst 1 -r 1/10 -map “[out]” “C:/Users/packrd/Videos/dirt_simple_surveillance/Integrated Camera/latest.jpg”
ffmpeg version N-45279-g6b86dd5 Copyright (c) 2000-2012 the FFmpeg developers
built on Oct 10 2012 17:30:47 with gcc 4.7.1 (GCC)
configuration: –enable-memalign-hack –arch=x86 –enable-gpl –enable-libx264 –enable-avisynth –enable-libxvid –target-os=mingw32 –cross-prefix=/home/rogerdpack/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/bin/i686-w64-mingw32- –pkg-config=pkg-config –enable-libmp3lame –enable-version3 –enable-libvpx –extra-libs=-lws2_32 –extra-libs=-lpthread –enable-zlib –extra-libs=-lwinmm –extra-libs=-lgdi32 –enable-librtmp –enable-libvorbis –enable-libtheora –enable-libspeex –enable-libopenjpeg –enable-gnutls –enable-libgsm –enable-libfreetype –disable-optimizations –enable-mmx –disable-postproc –enable-fontconfig –enable-libass –enable-libutvideo –enable-libopus –disable-w32threads –extra-cflags=-DPTW32_STATIC_LIB –enable-frei0r –enable-filter=frei0r –enable-libvo-aacenc –enable-runtime-cpudetect
libavutil 51. 74.100 / 51. 74.100
libavcodec 54. 65.100 / 54. 65.100
libavformat 54. 31.100 / 54. 31.100
libavdevice 54. 3.100 / 54. 3.100
libavfilter 3. 19.102 / 3. 19.102
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 16.100 / 0. 16.100
[dshow @ 03E08A40] Estimating duration from bitrate, this may be inaccurate
Input #0, dshow, from ‘video=Integrated Camera’:
Duration: N/A, start: 152990.750000, bitrate: N/A
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 1280×720, 7.50 tbr, 10000k tbn, 7.50 tbc
Output with label ‘out’ does not exist in any defined filter graph.

 

meant “you need to use the split filter if you want it to go to 2 places”

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.