I have two ffmpeg commands which work as expected- 1: a simple recode, removes sound

ffmpeg -report -i $MP4FILE -an -vf hflip -movflags faststart $OUTPUTFILE.mp4 -nostdin

2: an overlay with an image for branding:

ffmpeg -i $MP4FILE -i OverlayTest.png -filter_complex "overlay=0:0" TestBrandVid2.mp4

I need to combine these commands into a single line (in a bash script), but I am having trouble with the syntax (and with understanding the syntax from the ffmpeg documentation...) - the following doesn't work:

ffmpeg -i $MP4FILE -an -movflags faststart -i OverlayTest.png -filter_complex "[0:v]hflip[a];[a][1:v]overlay=0:0[out]” -map “[out]” TestBrandVid2.mp4 -nostdin

Can you help? Thanks!

Added: console output is a prompt only - I have no idea what it wants, though...:

smarter$ ffmpeg -i 447G.mp4 -an -movflags faststart -i VideoBrandingOverlay.png -filter_complex "[0:v]hflip[a];[a][1:v]overlay=0:0[out]” -map “[out]” testoutcome.mp4 -nostdin
> >

SORTED! stripped everything out and added back one at a time - it was the position of the "-an -movflags" options. This works:

ffmpeg -i 447G.mp4 -i VideoBrandingOverlay.png -filter_complex "[0:v]hflip[a];[a][1:v]overlay=0:0" -an -movflags faststart testout.mp4 -nostdin

  • Combined cmd looks ok. Paste the console output. – Gyan Aug 4 '16 at 18:23
  • Add -report to your cmd. A logfile will be generated. Paste that here. – Gyan Aug 5 '16 at 10:46

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.