Vous êtes sur la page 1sur 25

9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   


Commands
Linux
A-Z
LINUX COMMANDS  13 I  TecMint :     

 BEGINNER'S GUIDE FOR LINUX 


15 Useful ‘FFmpeg’ Start learning Linux in minutes 

Commands for
Video, Audio and
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 1/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

Image Conversion
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   

in Linux – Part 2
by Aaron Kili | Published: October 29, 2015 |
Last Updated: October 29, 2015

Ads by Google Convert File Convert to JPG

 Download Your Free eBooks NOW - 10


Free Linux eBooks for Administrators | 4 Free
Shell Scripting eBooks
 Vi/Vim Editor BEGINNER'S GUIDE 
In this article we are Learn vi/vim as a Full Text Editor 
going to look at some
options and examples of
how you can use FFmpeg
multimedia framework to
perform various
conversion procedures
on audio and video les.

15 FFMPEG Command Examples in  Linux Foundation Certi cation 


Linux Exam Study Guide to LFCS and LFCE

For more details about


FFmpeg and steps to
install it in different Linux
distros, read the article
from the link below:

 FFmpeg
Multimedia
Framework
Installation Guide on
Linux – PartPreparation
1 for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 2/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   
Useful FFmpeg
Commands
FFmpeg utility supports
almost all major audio
and video formats, if you
want to check the ffmpeg
supported available
formats you can use
./ffmpeg -formats
command to list all
supported formats. If you
are new to this tool, here
are some handy
commands that will give
you a better idea about
the capabilities of this
powerful tool.

1. Get Video File


Information
To get information about
a le (say video.mp4),  
run the following
How to Add Linux Host to Nagios Monitoring
command. Remember
Server Using NRPE Plugin
you have to specify an
ouput le, but in this Nagios 4.2.0 Released – Install on RHEL/CentOS
case we only want to get 7.x/6.x/5.x and Fedora 24-19

some information about


Install Cacti (Network Monitoring) on
the input le. RHEL/CentOS 7.x/6.x/5.x and Fedora 24-12

Google Chrome 60 Released – Install on


$ ffmpeg -i video.flv -hide_banner
RHEL/CentOS 7/6 and Fedora 26-20

How to Install Ubuntu 16.10/16.04 Alongside With


Windows 10 or 8 in Dual-Boot
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 3/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

Tecmint’s Guide to Red Hat RHCSA / RHCE


RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   
SHARE Certi cation Preparation Study Guide

+
Get Video Information

Download Chrome at Work 0- Chrome for Enterprise
Enterprise Browser Solution for Your Organization. Deploy Chrome Now!
enterprise.google.com

Note: The 0
-hide_banner option is
used to hide a copyright 
notice shown my ffmpeg, 16
such as build options and
library versions. This 
option can be used to
suppress printing this
information.

For example, if you run


the above command
Linux System Administrator Bundle
without adding with 7-Courses (96% off)
-hide_banner option it
will print the all FFmpeg Add to Cart - $69
tools copyright
 Ending In: 3 days
information as shown.
Computer Hacker Professional
$ ffmpeg -i video.flv Certi cation Course (96% Off)

Add to Cart - $59


 Ending In: 4 days

LINUX EBOOKS

Introducing Learn Linux In One Week and Go


Hide FFmpeg Version Information from Zero to Hero
RedHat RHCE/RHCSA Certi cation Preparation
Guide
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 4/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

2. Split a video Linux Foundations LFCS/LFCE Certi cation


RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   
Guide
into images Post x Mail Server Setup Guide for Linux

To turn a video to Ansible Setup Guide for Linux

number of images, run Django Setup Guide for Linux


the command below. The Awk Getting Started Guide for Beginners
command generates the Citrix XenServer Setup Guide for Linux
les named image1.jpg,
image2.jpg and so on…
    

$ ffmpeg -i video.flv image%d.jpg Never Miss Any Linux Tutorials,


Guides, Tips and Free eBooks
Join Our Community Of 150,000+ Linux Lovers
and get a weekly newsletter in your inbox

YES! SIGN ME UP

Split Video into Images

After successful
execution of above
command you can verify
that the video turn into
multiple images using
following ls command.

$ ls -l
total 11648
-rw-r--r-- 1 tecmint tecmint 14592 Oct 19 13:19 image100.jpg
-rw-r--r-- 1 tecmint tecmint 14603 Oct 19 13:19 image101.jpg
-rw-r--r-- 1 tecmint tecmint 14584 Oct 19 13:19 image102.jpg
-rw-r--r-- 1 tecmint tecmint 14598 Oct 19 13:19 image103.jpg
-rw-r--r-- 1 tecmint tecmint 14634 Oct 19 13:19 image104.jpg
-rw-r--r-- 1 tecmint tecmint 14693 Oct 19 13:19 image105.jpg
-rw-r--r-- 1 tecmint tecmint 14641 Oct 19 13:19 image106.jpg
-rw-r--r-- 1 tecmint tecmint 14581 Oct 19 13:19 image107.jpg
-rw-r--r-- 1 tecmint tecmint 14508 Oct 19 13:19 image108.jpg
-rw-r--r-- 1 tecmint tecmint 14540 Oct 19 13:19 image109.jpg
-rw-r--r-- 1 tecmint tecmint 12219 Oct 19 13:18 image10.jpg
-rw-r--r-- 1 tecmint tecmint 14469 Oct 19 13:19 image110.jpg
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 5/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   

3. Convert
images into a
video
Turn number of images
to a video sequence, use
the following command.
This command will
transform all the images
from the current
directory (named
image1.jpg, image2.jpg,
etc…) to a video le
named
imagestovideo.mpg.

There are many other


image formats (such as
jpeg, png, jpg, etc) you
can use.

$ ffmpeg -f image2 -i image%d.jpg imagestovideo.mpg

Convert Images to Video

4. Convert a
video into mp3
format Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 6/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

To convert
RedHat an . and
RHCSA v format
RHCE Certi cation Exam Study Ebook ($35) Get This Book   
video le to Mp3 format,
run the following
command.

$ ffmpeg -i video.flv -vn -ar 44100 -ac 2 -ab 192 -f mp3 audio.mp3

Convert Video to Audio

Description about the


options used in above
command:

vn: helps to disable


video recording
during the
conversion.
ar: helps you set
audio sampling rate
in Hz.
ab: set the audio
bitrate.
ac: to set the number
of audio channels.
-f: format.

5. Covert v
video le to mpg
format
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 7/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

To convert
RedHat a . vand
RHCSA video le Certi cation Exam Study Ebook ($35)
RHCE Get This Book   
to .mpg, use the
following command.

$ ffmpeg -i video.flv video.mpg

Convert Avi to MPG Video Format

6. Convert video
into animated gif
To convert a . v video le
to animated,
uncompressed gif le,
use the command below.

$ ffmpeg -i video.flv animated.gif.mp4

Covert Video to Animated Gif

Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam


https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 8/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

7. Convert mpg
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   

video le to v
To convert a .mpg le to
. v format, use the
following command.

$ ffmpeg -i video.mpg -ab 26k -f flv video1.flv

Convert Mpg to Flv Video Format

8. Convert avi
video le to mpeg
To convert a .avi le to
mpeg for dvd players, run
the command below:

$ ffmpeg -i video.avi -target pal-dvd -ps 2000000000 -aspect 16:9 video.mpeg

Explanation about the


options used in above
command.

target pal-dvd :
Output format
ps 2000000000
maximum size for
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 9/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

theRHCSA
RedHat output and
le, in bits Certi cation Exam Study Ebook ($35)
RHCE Get This Book   
(here, 2 Gb).
aspect 16:9 :
Widescreen.

Convert Avi to Mpeg Video Format

9. Convert a
video to CD or
DVD format
To create a video CD or
DVD, FFmpeg makes it
simple by letting you
specify a target type and
the format options
required automatically.

You can set a target type


as follows: add -target
type; type can of the
following be vcd, svcd,
dvd, dv, pal-vcd or ntsc-
svcd on the command
line.

To create a VCD, you can


run the following
command:

$ ffmpeg -i video.mpg -target vcd vcd_video.mpg


Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 10/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   

Convert Video to DVD Format

10. Extract audio


from video le
To extract sound from a
video le, and save it as
Mp3 le, use the
following command:

$ ffmpeg -i video1.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 audio3.mp3

Explanation about the


options used in above
command.

Source video :
video.avi
Audio bitrate :
192kb/s
output format : mp3
Generated sound :
audio3.mp3

Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam


https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 11/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   

Extract Audio from Video

11. Mix a video


and audio
together
You can also mix a video
with a sound le as
follows:

$ ffmpeg -i audio.mp3 -i video.avi video_audio_mix.mpg

Mix Video and Audio

12.
Increase/Reduce
Video Playback
Speed
To increase video play
back speed, run this
command. The -vf option
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 12/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

sets theRHCSA
RedHat video and
ltersRHCE
that Certi cation Exam Study Ebook ($35) Get This Book   
helps to adjust the
speed.

$ ffmpeg -i video.mpg -vf "setpts=0.5*PTS" highspeed.mpg

Increase Video Playback Speed

You can also reduce


video speed as follows:

$ ffmpeg -i video.mpg -vf "setpts=4.0*PTS" lowerspeed.mpg -hide_banner

Reduce Video Playback Speed

13.
Compare/Test
Video and Audio
Quality

Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam


https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 13/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

To compare
RedHat videos
RHCSA and and
RHCE Certi cation Exam Study Ebook ($35) Get This Book   
audios after converting
you can use the
commands below. This
helps you to test videos
and audio quality.

$ ffplay video1.mp4

Test Video Quality

To test audio quality


simply use the name of
the audio le as follows:

$ ffplay audio_filename1.mp3

Test Audio Quality

You can listen to them


while they play and
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 14/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

compare
RedHat the qualities
RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   
from the sound.

14. Add Photo or


Banner to Audio
You can add a cover
poster or image to an
audio le using the
following command, this
comes very useful for
uploading MP3s to
YouTube.

$ ffmpeg -loop 1 -i image.jpg -i Bryan\ Adams\ -\ Heaven.mp3 -c:v libx264 -c:a aac -stri

Add Image to Audio

15. Add subtitles


to a Movie
If you have a separate
subtitle le called
subtitle.srt, you can use
following command to
add subtitle to a movie
le:

$ ffmpeg -i video.mp4 -i subtitles.srt -map 0 -map 1 -c copy -c:v libx264 -crf 23 -prese
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 15/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

Summary
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   

That is all for now but


these are just few
examples of using
FFmpeg, you can nd
more options for what
you wish to accomplish.
Remember to post a
comment to provide
information about how to
use FFmpeg or if you
have encountered errors
while using it.

Reference:
https://ffmpeg.org/

If You Appreciate
What We Do Here
On TecMint, You
Should Consider:
1. Stay Connected to:

Twitter | Facebook |
Google Plus

2. Subscribe to our email


updates: Sign Up Now

3. Get your own self-hosted

blog with a Free Domain


at ($3.95/month).

Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam


https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 16/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

4. Become
RedHat a Supporter
RHCSA and RHCE Certi- cation Exam Study Ebook ($35) Get This Book   

Make a contribution via


PayPal

5. Support us by

purchasing our premium


books in PDF format.

6. Support us by taking our

online Linux courses

We are thankful for your


never ending support.

Tags: commandline tools

Aaron Kili View all Posts


Aaron Kili is

a Linux and F.O.S.S
enthusiast, an upcoming
Linux SysAdmin, web
developer, and currently a
content creator for TecMint
who loves working with
computers and strongly
believes in sharing
knowledge.

Your name can also


be listed here. Got a
tip? Submit it here to
become an TecMint
author.

Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam


https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 17/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   

PREVIOUS NEXT STORY


STORY How to
Con gure Install Latest
Static IP MySQL 5.7.9
Address and on 
 Set DNS in RHEL/CentOS
Ubuntu 7/6/5 and
15.10 Fedora
Desktop and 23/22/21
Server

 YOU MAY ALSO LIKE...

 19  29  75

Using DSH 18 Tar


(Distribute Command
15 d Shell) to Examples
Examples Run Linux in Linux
of How to Command
15 SEP, 2012
Use New s Across
Advanced Multiple
Package Machines
Tool (APT)
22 OCT,
in
2013
Ubuntu/De
bian

15 APR,
2016

13 RESPONSES
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 18/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

 Comments 13
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   
 Pingbacks 0

Rakesh Kr Satyam
 June 21, 2017 at 5:02 pm
Very useful.
Can we change/set codec value of
video le without compressing le.
Reply

Aaron Kili
 June 23, 2017 at 10:59 am
@Rakesh
Yes, you can change/set the
codec of a video le without
compressing it. For
instance:
ffmpeg -i input.avi -vcodec
h264 output.avi
Reply

Rakehsh Kr Satyam
 June 21, 2017 at 4:59 pm
Very useful.
Reply

shams  December 12, 2016 at 4:39 pm


Hi
How can we compress the output
image in ffmpeg. What parameter I
need to add to make it.
eg: ffmpeg -i input.jpg -vf
scale=320:240 output_320x240.png
I need compressed version of the
output image
Reply

Aaron Kili
 December 13, 2016 at 1:30
pm
@shams
Make use of -
compression_level
especially for PNG output as
in the example command
above. The compression
Preparation forfrom
values range the LFCE
0-100 (Linux
and Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 19/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

the default is 100, the


RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   
highest compression value
meaning that it offers the
smallest output le size. I
hope this will help.
Reply

bassel  October 29, 2016 at 3:30 pm


I have stupid question, if i just need
my visitor play video from my
website, why use ffmpeg to stream
video on my website if i just want
display a video
Reply

Adam  March 29, 2016 at 2:34 am


Thanks for sharing.Can you please
show me to convert avi video to :
(mediainfo) Format : MPEG-4
Format pro le : Base Media /
Version 2
Codec ID : mp42
File size : 57.7 MiB
Duration : 21mn 39s
Overall bit rate mode : Variable
Overall bit rate : 372 Kbps
Encoded date : UTC 2016-03-06
07:59:42
Tagged date : UTC 2016-03-06
07:59:42
gsst : 0
gstd : 1299690
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format pro le : Baseline@L3.0
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=60
Codec ID : avc1
Codec ID/Info : Advanced Video
Coding
Duration : 21mn 39s
Bit rate : 274 Kbps
Maximum bit rate : 698 Kbps
Width : 640 pixels
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 20/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

Height : 360 pixels


RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.048
Stream size : 42.5 MiB (74%)
Tagged date : UTC 2016-03-06
07:59:48
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format pro le : LC
Codec ID : 40
Duration : 21mn 39s
Bit rate mode : Variable
Bit rate : 96.0 Kbps
Maximum bit rate : 104 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 14.9 MiB (26%)
Title : IsoMedia File Produced by
Google, 5-11-2011
Encoded date : UTC 2016-03-06
07:59:45
Tagged date : UTC 2016-03-06
07:59:48
Reply

Ravi Saive
  March 29, 2016 at 11:32 am
@Adam,
Try the following ffmpeg
command to convert AVI
les to MP4 as shown.
# ffmpeg -i le.avi -vcodec libx264 -vpre lossless_slow -crf 25 -acodec libfaac -threads 0 -t 60 le.mp4
Reply

Dennis  October 31, 2015 at 3:39 am


Thanks for this follow-up tutorial on
FFmpeg. FFmpeg isfor
Preparation anthe
excellent,
LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 21/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

full-featured media toolkit, but its


RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   
total capabilities can be quite
overwhelming. The code examples
help with understanding and as a
starting point for further exploration.

Before using FFmpeg, I usually want


to know more about the input media
le formats I will be using. For this, I
usually use FFprobe (one of the
useful utility programs included with
the FFmpeg suite). FFprobe was
created to extract detailed
con guration info from a media le.
For example:
$ ffprobe -v quiet -pretty -of default -
show_format -show_streams
“video. v” > “video. v.info”

FFprobe will produce a nicely


formatted report saved to an output
le as documentation and for further
follow-up analysis. FFprobe can also
generate the report in several other
print formats (including JSON and
XML).
For repeat usage, I placed the above
FFprobe command in a script le,
and execute the script passing just
the input lename as a parameter.
The script handles the rest
(including creating the output
lename by appending ‘.info’ to the
input lename). The double-quotes
around the lenames are optional,
but are required if the lenames
contain spaces. Recommend
including double-quotes in the script
le to avoid later potential run-time
errors.
Reply

Aaron Kili K
 October 31, 2015 at 1:59 pm
@Dennis Thanks for the info
about FFprobe. It can help
new FFmpeg users to learn
more.
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 22/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2
Reply
RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   
Hangover Man
 October 30, 2015 at 1:04 am
There are several errors: 1.
hide_banner is a global option, so it
should go before -i. 3. “-f image2” is
super uous. 4. You really don’t need
any of those other options, and you
should have used -ab 192k, not -ab
192. 6. This example does not make
an animated GIF at all. 8. -ps does
not limit le size; -fs does, but you
shouldn’t use it anyway because it
will just end when it reaches the
speci ed limit. 10. The input already
was MP3, so stream copy would be
better (-c:a copy).
Reply

Aaron Kili K
 October 31, 2015 at 2:01 pm
@Hangover Man thanks for
catching the errors, hope
users will identify them and
use the options carefully.
Reply

K Raghunathan
 October 29, 2015 at 4:36 pm
Extremely useful. Thanks.
Reply

GOT SOMETHING TO SAY? JOIN THE


DISCUSSION.

Comment

Name * Email *

Website
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 23/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

RedHat RHCSA and RHCE Certi cation Exam Study Ebook ($35) Get This Book   
Notify me of followup comments
via e-mail. You can also subscribe without
commenting.

Post Comment

LINUX MONITORING TOOLS LINUX INTERVIEW OPEN SOURCE TOOLS

QUESTIONS
Suricata 1.4.4 Released – A 4 Best Command-Line
Network Intrusion Email Clients For Linux
Detection, Prevention and 10 Advance VsFTP
Security Monitoring System Interview Questions and 20 Free Open Source
Answers – Part II Softwares I Found in Year
Linfo – Shows Linux Server 2015
Health Status in Real-Time 10 VsFTP (Very Secure File
Transfer Protocol) 10 Top Open Source
Monitorix 3.8.1 Released – Interview Questions and Arti cial Intelligence Tools
A Lightweight System and Answers for Linux
Network Monitoring Tool
for Linux Basic Linux Interview 8 Best Screen Recorders
Questions and Answers – for Desktop Screen
Install Htop 2.0 – Linux Part II Recording in Linux
Process Monitoring for
RHEL, CentOS & Fedora 11 Advance MySQL 14 Outstanding Backup
Database “Interview Utilities for Linux Systems
How to Set Linux Process Questions and Answers”
Priority Using nice and for Linux Users
renice Commands
Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam
https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 24/25
9/16/2017 15 Useful 'FFmpeg' Commands for Video, Audio and Image Conversion in Linux - Part 2

RedHat RHCSA and RHCE Certi10cation


UsefulExam
‘Interview
Study Ebook ($35) Get This Book   
Questions and Answers’ on
Linux Shell Scripting


Tecmint: Linux Howtos, Tutorials & Guides ©
2017. All Rights Reserved.     
This work is licensed under a (cc) BY-NC
The material in this site cannot be republished
either online or o ine, without our permission.

Preparation for the LFCE (Linux Foundation Certi ed Engineer) Exam


https://www.tecmint.com/ffmpeg-commands-for-video-audio-and-image-conversion-in-linux/ 25/25

Vous aimerez peut-être aussi