[FFmpeg-user] Usages about multi outputs

xiaoyaobms at 163.com xiaoyaobms at 163.com
Thu Jan 15 10:49:04 CET 2015


Thanks Moritz,

Below are the all outputs. Maybe one filter_complex can feed all filters, but I do not have much experience about how to make it.

[root at cdn ffmpeg_dev]# ./ffmpeg -input.mp4 -i logo.png -filter_complex "yadif=deint=1,subtitles=subtitle.ass,delogo=x=60:y=60:w=100:h=77:band=10,overlay=10:10,split=2[a][b]" -map "[a]" -map 0:a -filter_complex scale=640:-1:sws_flags=lanczos -pass 1 -vcodec libx264 -r 25 -b:v 230k -profile:v high -c:a libfdk_aac -b:a 64k -ar 44100 -profile:a aac_he output1.mp4 -map "[b]" -map 0:a -filter_complex scale=960:-1:sws_flags=lanczos -pass 1 -vcodec libx264 -r 25 -b:v 550k -profile:v high -c:a libfdk_aac -b:a 64k -ar 44100 -profile:a aac_he output2.mp4 ffmpeg version 2.5 Copyright (c) 2000-2014 the FFmpeg developers 
built on Jan 14 2015 18:30:31 with gcc 4.4.6 (GCC) 20110731 (Red Hat 4.4.6-3) 
configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-memalign-hack --enable-version3 --enable-libass --enable-libx264 --enable-static 
libavutil 54. 15.100 / 54. 15.100 
libavcodec 56. 13.100 / 56. 13.100 
libavformat 56. 15.102 / 56. 15.102 
libavdevice 56. 3.100 / 56. 3.100 
libavfilter 5. 2.103 / 5. 2.103 
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 'input.mp4': 
Metadata: 
major_brand : isom 
minor_version : 512 
compatible_brands: isomiso2avc1mp41 
creation_time : 1970-01-01 00:00:00 
encoder : Lavf52.78.5 
Duration: 00:02:29.93, start: 0.000000, bitrate: 10338 kb/s 
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x800, 10338 kb/s, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) 
Metadata: 
creation_time : 1970-01-01 00:00:00 
handler_name : VideoHandler 
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 64 kb/s (default) 
Metadata: 
creation_time : 1970-01-01 00:00:00 
handler_name : SoundHandler 
Input #1, png_pipe, from 'logo.png': 
Duration: N/A, bitrate: N/A 
Stream #1:0: Video: png, rgba, 90x120, 25 tbr, 25 tbn, 25 tbc 
Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_scale_0



xiaoyaobms at 163.com
 
From: Moritz Barsnick
Date: 2015-01-15 17:27
To: FFmpeg user discussions
Subject: Re: [FFmpeg-user] Usages about multi outputs
On Thu, Jan 15, 2015 at 16:35:20 +0800, xiaoyaobms at 163.com wrote:
> There is error outputs like below:
 
Please post the complete, uncut output from your command. For debugging
filter chains, it helps to add "-loglevel debug", so please also add
that.
 
The issue is probably that you cannot specify more than one
"-filter_complex" (I think). You should be able to specify your
complete filters for multiple outputs in one "-filter_complex".
 
Moritz
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list