VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 4 of 4
Thread

Threaded View

  1. I am trying to copy metadata for encoded mp4 files from the source file and I have found this command that does exactly this.

    Code:
    ffmpeg -i source.mov -i encoded.mp4 -map 1 -map_metadata 0 -c copy encoded_fixed.mp4
    I would like to write this command to batch process an entire directory on linux but not sure how?

    I guess it should start with something like this?

    Code:
    for i in *.mov do ???
    Quote Quote  
  2. Thank you. It's something like that I need but I could not get it to work.
    The example used is assuming both in and out file have the same name and ending. In my case the source is .mov and the out is .mp4 and I don't know how to edit that script to make that work?
    Quote Quote  
  3. Given my limitied programming skills, I renamed the mp4 files to mov, ran the script and renamed them back.
    Quote Quote  



Similar Threads