Results 1 to 2 of 2

Thread: ffmpeg script help

  1. #1
    Join Date
    Jul 2007
    Location
    Base 211
    Beans
    340
    Distro
    Ubuntu 14.04 Trusty Tahr

    ffmpeg script help

    Ok here's what i want to achieve...

    have some folders with avi files inside them, some of them have screwed up metadata, and couple that with vlc's current release there's a bug causing the files to be renamed to the metadata info.....

    now... i have this found this to work

    Code:
    ffmpeg -i input.avi -metadata title="" -metadata author="" -metadata copyright="" -metadata comment="" -acodec copy -vcodec copy output.avi
    I was wondering how to write a small script that would, scan through the folder, remove all files metadata and retain the original file-name using the above code, and if possible delete the old file that contains the screwed up metadata
    Last edited by Plasma_NZ; July 21st, 2011 at 03:58 AM.

  2. #2
    Join Date
    Dec 2006
    Beans
    7,349

    Re: ffmpeg script help

    Perhaps something like the following would work:

    Code:
    for i in *.avi
    do 
    ffmpeg -y -i $i acodec copy -vcodec copy \
           -metadata title="" -metadata author="" \
           -metadata copyright="" -metadata comment="" \
           $i
    done
    Just be aware that the -y option allows FFmpeg to overwrite the original file so I would test this first on a backup copy of your original .avi files to make sure it is exactly what you want.
    You think that's air you're breathing now?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •