Home > audio > command line software for audio/video and image manipulation

command line software for audio/video and image manipulation

December 21Hits:2
Advertisement

Im running a website on Linux/Apache and I need to install software that does the following:

  • Converts audio files into MP3 and find the length of the file.
  • Converts video files into FLV.
  • Create several different sized images from one image.

Obviously I need to be able to run all this from a command line. So far the best solutions Ive found are SoX (for the audio), FFMPEG (for the video) and ImageMagick (for the images). Is there anything else that is better than these pieces of software?

Is there one piece of software that does all of these things? Or am I hoping for too much? :)

Answers

You have made good choices, although FFmpeg can also:

Convert audio files into MP3:

ffmpeg -i input -c:a libmp3lame -q:a 4 output.mp3

or pipe to LAME:

ffmpeg -i input -f wav - | lame -V4 - output.mp3

Find the length of the MP3 file:

ffmpeg -i input 2>&1 | awk '/Duration/{print $2}' | sed 's/,//g'

Convert video files into FLV:

ffmpeg -i input -c:v libx264 -preset medium -crf 24 -c:a libmp3lame \
-ar 44100 -q:a 4 output.flv

Create several different sized images from a video from 5 seconds in:

ffmpeg -i input -ss 5 -vframes 1 -vf scale=iw/2:-1 half.png -ss 5 -vframes 1 \
-vf scale=600:-1 600pxwide.png -ss 5 -vframes 1 -vf scale=300:300 \
300x300-ignoring-aspect.png

Video command line and scripting/macros: Consider avidemux: http://www.avidemux.org/admWiki/doku.php and avisynth (also discussed there).

Audio command line: http://www.netwaysglobal.com/mpegrec/ and http://sourceforge.net/projects/mp3record/

Also:

Head on over to related sites in the stackexchange family: http://avp.stackexchange.com/ (Audio Video Production Q&A) and photo.stackexchange.com for more ideas.

Related Articles

  • command line software for audio/video and image manipulationDecember 21

    Im running a website on Linux/Apache and I need to install software that does the following: Converts audio files into MP3 and find the length of the file. Converts video files into FLV. Create several different sized images from one image. Obviously

  • FFmpeg command line for showing two videos side by sideJanuary 22

    Here is command line for playing two videos side by side in sync in FFmpeg (ffplay). It can be useful for comaring videos, for example. ffplay -v warning -f rawvideo -s 800x400 -i /dev/zero -vf 'movie=video1.mkv,scale=400x400 [mv2] ; movie=video2.mkv

  • Command line software which returns image descriptions

    Command line software which returns image descriptionsJanuary 1

    I have a lot of images and I search a very specific one. The file name is probably not meaningful, I only know it's a jpg image (I have 25000 on my PC). I have no idea about when the picture was taken / edited. I only know what is on it (snow, trees,

  • best command line tool to join videosApril 16

    I have used ffmpeg, but with it you have to first make mpg videos then do cat video1.mpg video2.mpg > joined.mpg and then convert to joined.mpg to joined.mp4 with ffmpeg to be able to upload on youtube. I heard there's mencoder which can join avi fil

  • Can I get the ffmpeg command-line from an existing video?April 7

    I want to generate a video with the exact same settings as an existing video. I can run: ffmpeg -i original.mp4 To get human-readable info about the contents: Duration: 00:05:32.32, start: 0.000000, bitrate: 474 kb/s Stream #0.0(und): Video: h264, yu

  • Is There a Command Line to Setup a Video Aspect Ratio?September 15

    I want to change the video aspect ratio from 16:9 to 4:3. Have you got a command line to write down? --------------Solutions------------- For mplayer: mplayer -aspect 16:9 For VLC: vlc --aspect-ratio 16:9 For Xine (seem to be limited to predefined va

  • How to delete/detect what command-line software I have installed?June 27

    On Mac OS X Terminal, I installed many terminal programs while trying to install a programming library. Now I'm wondering how I delete them. I think some of them include pip, macports, vmenven (or something). I'm not sure what these programs are call

  • How do I install this command-line software?July 23

    Here's a link to the software - it's command line and I have no idea how to install so I can use it in Terminal on my Mac. http://git.zx2c4.com/password-store/about/ Thank you. --------------Solutions------------- It's a simple shell script. http://g

  • How to extract vocals from music using a command line software?August 3

    I know how to remove the vocals by using SoX. The command is sox source.wav mono.wav oops which means to mix stereo to twin-mono where each mono channel contains the difference between the left and right stereo channels. It's equivalent to sox source

  • Pass information in external command line software from a python plugin fileOctober 30

    it would be quite difficult to explain, I'll do my best.. I'm writing a plugin for QGIS (with the plugin builder, so the folder structure is straightforward). This plugin calls other software (that of course have to be installed on the computer) that

  • FFmpeg or GStreamer for command line conversion of audio files?March 11

    I think I'm mixing up and I need some one to clarify things for me! What is the differences between GStreamer and FFmpeg. What I need is a command line to convert file(s) from one format to another. I know I can do that with installing ffmpeg but I r

  • Command-line tool to split video at timepoints?

    Command-line tool to split video at timepoints? May 1

    I have a bunch of game footage from my soccer team's season and I've assigned each of my teammates one game to watch and write down the time intervals where highlights occur. Now instead of having to cut all of this manually, I want to write a script

  • Using ncftp or other ftp command-line software to get directories

    Using ncftp or other ftp command-line software to get directoriesFebruary 11

    I'm transferring files from a FTP client to my ubuntu server using the terminal. I was able to upload a backup of some files that were already zipped but there are some files I need that are in a folder that can not be zipped or archived. With NcFTP

  • Starting VLC via command line to play a video as desktop wallpaperNovember 21

    I'm trying to create a batch script to start a video as a live wallpaper on startup. Right-clicking a playing video and selecting the "Set as wallpaper" option works fine, but attempting to run VLC with the following flags fails and only renders

  • Command-line software for playlist syncing to Android Phone?April 14

    I'm looking for a way to sync music to my Android Phone without having to load something like banshee. I know there are plenty of ways to sync files, but I'm interested in syncing playlists and having the playlists dictate which files are synced. ---

  • How to change language in a command-line software on debianMarch 24

    i'm using 'exif' on a server (Debian GNU/Linux 6.0.6 (squeeze)) and unlike on my dev computer (Mac OS X through MacPort) it runs in french : exif -h Utilisation: exif [OPTION...] fichier -v, --version Display software version -i, --ids Montre les ID

  • Play all audio files in a directory from the command line ignoring non-audio filesNovember 19

    If I do: vlc dir it also plays files like images for 10 seconds. Is there a way to prevent that and play only the music? I also have music files on arbitrary subfolders: dir/jazz, dir/classic, dir/jazz/miles-davies, etc. I can do it with find and som

  • How to upload to YouTube from the command-lineJanuary 30

    I want to upload to YouTube without having to use the web interface in order to automate some things. Is there a way to upload from the command line in OSX? --------------Solutions------------- You could give this open source project a try http://cod

  • avi to mpeg4 command line convertorMay 29

    Hi all I am writting program for recording IP cameras videos. I use Aforge framework and can save video in avi format, but it's size is too big. I need some command line program to convert videos from avi to mpeg4 format. Is there any free program an

  • Linux command line to turn off proxyOctober 5

    Can you show me the command line to turn off proxy when I am using the command line terminal in Ubuntu? --------------Solutions------------- As the other answer says there are some programs that don't look at the system at all you may have to set the

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.931 s.