VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Hi friends please help, i have many holiday recordings in camera, recorded with date logo printed in error. I want to remove logo from video, like this

    Code:
    ffmpeg -i DSC_001.avi -vf delogo=x=160:y=560:w=319:h=79 -c:v libx264 -crf 24 -c:a copy -preset ultrafast DSC_001.avi
    But i possess +350 DSC video, how to process all videos at once? thanks friends!
    Quote Quote  
  2. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    for /f %v in (*.avi) do ffmpeg -i %v -vf delogo=x=160:y=560:w=319:h=79 -c:v libx264 -crf 24 -c:a copy -preset ultrafast %~nv_delogo.avi

    If you put this in a batch file, the percent signs must be doubled.
    Quote Quote  
  3. JVRaines thanks friend, but that produces

    bash: syntax error near unexpected token `%v'
    Quote Quote  
  4. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    You didn't specify your operating system. I gave you a command for Windows, which is what most folks around here are using. In Linux,

    Code:
    for filename in *.avi; do
         ffmpeg -i "$filename" -vf delogo=x=160:y=560:w=319:h=79 -c:v libx264 -crf 24 -c:a copy -preset ultrafast "$(basename "$filename" .avi)_delogo.avi"
    done
    Quote Quote  
  5. Yes linux, sorry code works perfect now, many thanks JVRaines!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!