VideoHelp.com Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  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
    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
    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

  1. FFMPEG encode directory
    By darklift in forum Linux
    Replies: 6
    Last Post: 3rd Feb 2012, 23:50
  2. ffmpeg command lines not working.
    By PsyDonias in forum Video Conversion
    Replies: 23
    Last Post: 5th Dec 2011, 09:04
  3. Help with FFMPEG command lines
    By ricardouk in forum Video Conversion
    Replies: 11
    Last Post: 17th May 2008, 12:27
  4. Get corresponding ffmpeg command after using ffmpegX
    By npw in forum ffmpegX general discussion
    Replies: 2
    Last Post: 23rd Apr 2008, 01:29
  5. Replies: 0
    Last Post: 9th May 2007, 17:02
Search   Contact us   About   Advertise   Forum   RSS Feeds   Statistics   Tools