Commands matching ffmpeg (189)

  • Fix for PHP Shell Exec: ffmpeg -i input.mp4 -f null /dev/null 2>&1 shell_exec("ffmpeg -i input.mp4 -f null /dev/null 2>&1"); Show Sample Output


    0
    ffmpeg -i input.mp4 -f null /dev/null
    Dipo · 2018-11-06 13:44:46 438
  • Replace video and audio extension according to your needs


    0
    ffmpeg -i file.video file.audio
    miskopo · 2016-07-19 08:39:24 13
  • disharmonics between 44100 and others cleaned


    0
    ffmpeg -loglevel 0 -y -i audio.mp3 -f sox - | sox -p -V -S -b24 -t audio.flac gain -3 rate -va 7056000 rate -v 48k
    george23 · 2016-08-05 20:37:38 12
  • ffmpeg and avconv didnt have this feature. I use this command to hardsubs mkv files to mp4


    0
    mpv file.mkv -o out.mp4
    zodman · 2016-09-09 18:40:01 13
  • I use this command to stream live video to facebook from a vps. you need first convert the file to flv i use mpv to encode with hardsubs a file. and then run ffmpeg to stream the file.


    0
    mpv file.mkv -o out.flv --oac=libmp3lame --oacopts=b=128000; ffmpeg -re -i output-003.flv -f flv 'rtmp://rtmp-api.facebook.com:80/rtmp/facebookkeyandparams'
    zodman · 2016-09-09 18:43:00 17

  • 0
    ffmpeg -i out.mp4 -i logo.png3 -filter_complex "overlay=0:0" -codec:a copy out2.mp4 -y
    zodman · 2016-09-09 21:07:25 16
  • ffprobe doesn't throw an error and was actually made to do exactly that. Usually ffprobe is located in the same folder as ffmpeg. https://ffmpeg.org/ffprobe.html#Description


    0
    ffprobe -i filename.flv
    Yamy · 2016-10-15 20:26:34 17

  • 0
    ffmpeg -i input_demo.ogv -vcodec mpeg4 -qscale 0 -acodec libmp3lame my-demo-video.avi
    ceddi · 2016-10-17 18:54:50 21

  • 0
    ffmpeg -i my-demo-video.avi -filter:v "crop=820:750:200:0" -qscale 0 my-demo-video_cropped.avi
    ceddi · 2016-10-17 19:03:20 20

  • 0
    ffmpeg -i my-demo-video_cropped.mp4 -r 15/1 pic%03d.png
    ceddi · 2016-10-17 19:25:55 17

  • 0
    ffmpeg -f image2 -r 15 -i pic.%04d.png -r 15 -b:v 8M vid15.avi
    ceddi · 2016-10-17 19:50:16 17

  • 0
    ffmpeg -i pic.%04d.png -c:v libx264 -vf fps=15 -pix_fmt yuv420p out.mp4
    ceddi · 2016-10-19 11:52:32 16
  • needed: ffmpeg apt-get install libxvidcore-dev libx264-dev


    0
    ffmpeg -f x11grab -r 25 -s 1280x720 -i :0.0+0,24 -vcodec libx264 -threads 0 /tmp/video.mkv
    aysadk · 2017-01-15 14:37:44 16
  • convertig mkv to mp4


    0
    ffmpeg -i video.mkv -vcodec libx264 -crf 22 -threads 0 video.mp4
    aysadk · 2017-01-15 14:39:49 15
  • I had to upload some songs to YouTube a while back and used this method


    0
    for name in *.mp3; do ffmpeg -loop 1 -i imagename.jpg -i "$name" -shortest -c:v libx264 -preset ultrafast -c:a copy "${name%.*}.mp4"; done
    rinse · 2018-06-01 08:26:02 212

  • 0
    ffmpeg -start_number 10 -i image-%04d.png -vframes 100 output.webm
    atemvm · 2017-04-05 18:27:29 21
  • This command KIND OF play a Digital Cinema Package files through VLC using FFMPEG realtime encoding. For a smooth playback you'll need a REALLY powerful computer, possibly a rig with two or more processors (really!) Otherwise, it may be better to just convert the DCP to ProRes and playing it afterwards.


    0
    ffmpeg -re -i VIDEODCP.mxf -i AUDIODCP.mxf -vcodec h264 -acodec aac -f mpegts udp://127.0.0.1:1234
    ghms · 2017-06-16 17:57:50 18
  • Revert a Digital Cinema Package back to a ProRes file, to (kind of) verify if the DCP creation wen't well Show Sample Output


    0
    ffmpeg -i VIDEODCP.mxf -i AUDIODCP.mxf -vcodec h264 -acodec aac reverse-prores.mov
    ghms · 2017-06-16 18:00:48 18

  • 0
    ffmpeg -i movie.mov -c:v prores -profile:v 1 -c:a pcm_s16le -vf subtitles=subtitle.ass subtitledmovie.mov
    ghms · 2017-08-28 20:12:53 17

  • 0
    ffmpeg -i AUDIOFILE.wav -i VIDEOFILE.mp4 OUTPUTFILE.mp4
    ghms · 2017-08-30 14:54:09 18
  • ffmpeg mp4 to facebook live steam


    0
    ffmpeg -re -y -i mm.mp4 -b:a 128k -vcodec libx264 -pix_fmt yuv420p -vf scale=640:480 -r 30 -g 60 -f flv "rtmp://rtmp-api.facebook.com:80/rtmp/xxxxxxxxxx"
    siamware · 2017-10-29 02:10:31 163
  • ffmpeg covert m3u8 to facebook live stream


    0
    ffmpeg -re -i "index.m3u8" -acodec libmp3lame -ar 44100 -b:a 128k -pix_fmt yuv420p -profile:v baseline -s 426x240 -bufsize 6000k -vb 400k -maxrate 1500k -deinterlace -vcodec libx264 -preset veryfast -g 30 -r 30 -f flv "rtmp://rtmp-api.facebook.com"
    siamware · 2017-10-29 03:12:27 19
  • Captures video from webcam and encodes it using the accelerated hardware provided by videotoolbox framework. It takes about 20% cpu in a i5 2015 macbook air. Show Sample Output


    0
    ffmpeg -f avfoundation -framerate 30 -video_size 1280x720 -pix_fmt uyvy422 -i "0" -c:v h264_videotoolbox -profile:v high -b:v 3M -color_range 1 /tmp/out.mp4
    sucotronic · 2018-01-08 10:28:42 22
  • This useful command will help to detect bitrate of each audio file in folder where it will run for. Show Sample Output


    0
    find . -print0 | xargs -0 -I{} ffmpeg -i "{}" 2>&1 | grep "kb\/s\|Input"
    Zeben · 2018-01-19 03:45:04 22
  • The 30 means start extracting frames from 30 seconds into the video. The 3 means extract the next 3 seconds from that point. The fps can be adjusted based on your preferences. The 320 is the width of the gif, the height will be calculated automatically. input.mp4 is the video file, which can be any video file ffmpeg supports. The output.gif is the gif created.


    0
    ffmpeg -ss 30 -t 3 -i input.mp4 -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif
    keyboardsage · 2024-03-19 00:34:23 47
  • ‹ First  < 5 6 7 8 > 

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands


Check These Out

Download all files from podcast RSS feed
Neither of the others worked for me. This does.

Generate MD5 of string and output only the hash checksum in a readable format
Generates the md5 hash, without the trailing " -" and with the output "broken" into pairs of hexs.

Extract IPv4 addressess from file

Randomly run command
Randomly decide whether to run a command, or fail. It's useful for testing purposes. . Usage: ran PERCENTAGE COMMAND [ARGS] Note: In this version the percentage is required. . This is like @sesom42 and @snipertyler's commands but in a USABLE form. . e.g. In your complicated shell script, put "ran 99" before a crucial component. Now, it will fail 1% of the time allowing you to test the failure code-path. $ ran 99 my_complex_program arg1 arg2

lotto generator

Ease your directory exploration
Usage : tt [OCCURRENCE] tt will display a tree from your actual path tt .svn will display only line containing .svn

Both view and pipe the file without saving to disk
This is a cool trick to view the contents of the file on /dev/pts/0 (or whatever terminal you're using), and also send the contents of that file to another program by way of an unnamed pipe. All the while, you've not bothered saving any extra data to disk, like you might be tempted to do with sed or grep to filter output.

Print a horizontal line
Replace the underscore with any other character. e.g. + or - or =

vim read stdin

netstat with group by ip adress


Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: