ffmpeg – output includes combined video stream from inputs but also exact video streams from inputs
Hi I’m using ffmpeg to transcode some video files from prores or dv to h264/mov. Also I want to add a logo on it and make some other changes. The command line I use is
ffmpeg -i input.mov -i logo.png -c:a aac -c:v libx264 -pix_fmt yuv420p -crf 18 -map 0:a? -map 0:v -filter_complex "yadif,[1]scale=iw*1:-1[wm];[0:v:0][wm]overlay=main_w-overlay_w-5:5" -disposition:v:0 default output_h264.mov
(Please ignore the 100% scale in the command line. It’s a dynamic scale control by the parent python script.)
And the outcome has three video streams. One for the logo,one for the video with logo which is what I want only, and one for original video.
Though I put the default video stream as the one with both video and logo as you can see for -disposition:v:0 default, and it’s also playing that stream on the local. But when I tried to upload it on Vimeo or YouTube, it used the wrong stream.
How can I change the command line to let ffmpeg only outputs that
combined video stream? Thanks!
Read more here: Source link