Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to overlay a video on top of another using ffmpeg filters but I have problem with escaping of the file path when it is on a network share.

ffmpeg -i "\\my_nas\path\to\" -vf "movie='\\my_nas\how\to\properly\escape\this\'[clip2]; [in] scale=640:360,pad=640:368:0:0:white [resized]; [resized][clip2] overlay=W-128:H-8 [out]" ...other params... -y "\\my_nas\path\to\dest.mp4"

Thanks for your help.

share|improve this question

migrated from Jun 19 '13 at 1:45

This question came from our site for professional and enthusiast programmers.

Try this:

  1. net use k: \\my_nas\share_name

  2. ffmpeg -i k:\path\to\ -vf "movie='k:\no\escaping\this\'[clip2]; [in] scale=640:360,pad=640:368:0:0:white [resized]; [resized][clip2] overlay=W-128:H-8 [out]" ...other params... -y "k:\path\to\dest.mp4"

share|improve this answer
The movie multimedia source filter can be omitted if -filter_complex is used instead of -vf: ffmpeg -i -i -filter_complex "[0:v]scale,pad[resized];[resized][1:v]overlay" ... output – LordNeckbeard Jun 19 '13 at 3:04
E.G. : It's not the question. My script is actually running like you said but I whant to avoid connecting a network drive. You also forget to escape the ":" it should be like this "movie=k\:\\no\\escaping... thanks anyway. @LordNeckbeard : Thanks for the tip, but why did you post it as a comment ? Please repost it as an answer so I can accept it. – bokan Jun 19 '13 at 9:02
@bokan I do not consider it an answer but more of an addition to E.G.'s answer. – LordNeckbeard Jun 19 '13 at 16:49
@LordNeckbeard : no, E.G. answer does not open files with network share url (\\NAS) wich is what I want. Your solution allows to do that. – bokan Jun 20 '13 at 9:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.