VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. I am using ffmpeg from command line in Linux. I want to encode a bunch of audio files. I was wondering if anyone knows a ffmpeg command that will just encode everything in a given folder?

    Thanks
    Cheers
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Convert all files to mp3(you probably want to add some settings also):
    Code:
    for file in /folder/*; do `ffmpeg -i $file $file.mp3`;done
    edit: updated the code, this should work better.
    Quote Quote  
  3. Member
    Join Date
    Apr 2005
    Location
    Sweden
    Search Comp PM
    Hi
    I trying to change the code a little because I want the output file create in a diffrent directory.
    but the file is whole address to the file so I have to somehow remove the old directory but not the filename

    /update
    to make it easy for me I just change the code a little

    Code:
    for file in *.avi; do `ffmpeg -i $file /newfolder/$file.avi`;done
    so now I just have to put the file in that folder of movie I want to convert and run
    Quote Quote  



Similar Threads

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