Tag Info

Hot answers tagged

105

Latest news WEB UPD8: FFmpeg Returns To The Official Ubuntu Repositories With Ubuntu 15.04 Vivid Vervet FFmpeg and libav libav from the Ubuntu repositories Ubuntu started shipping the libav fork instead of FFmpeg in recent releases. If you installed the ffmpeg package, then you actually installed the libav-tools package and a program that told you to ...


41

You can also download the mp3 directly from youtube without converting using ffmpeg youtube-dl --extract-audio --audio-format mp3 <video URL> From the online help: -x, --extract-audio convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe) Bear in mind as well that youtube-dl ...


40

I think the easiest tool for that is avconv from the libav-tools package (Ubuntu switched to Libav–a fork of FFmpeg). It one of the backends for many of the GUI tools cited in other answers. Changing container without re-enconding content could not be simpler: avconv -i input.mkv -codec copy output.mp4 It auto-detects a Matroska to MP4 container ...


36

For FFmpeg with Constant Bitrate Encoding (CBR): ffmpeg -i video.mp4 -vn \ -acodec libmp3lame -ac 2 -ab 160k -ar 48000 \ audio.mp3 or if you want to use Variable Bitrate Encoding (VBR): ffmpeg -i video.mp4 -vn \ -acodec libmp3lame -ac 2 -qscale:a 4 -ar 48000 \ audio.mp3 The VBR example has a target bitrate of 165 Kbit/s ...


33

sudo apt-get install ffmpeg libavcodec-extra-52 If package not found try: sudo apt-get install ffmpeg libavcodec-extra-53 you can also try to install the libmp3lame0 package: sudo apt-get install libmp3lame0


29

ffmpeg was replaced in previous releases by the avconv program from the libav project. To install avconv you need to install the libav-tools package: sudo apt-get install libav-tools avconv is very similar to ffmpeg, but they also have some differences in syntax.


24

You can also use this PPA: ppa:jon-severinsson/ffmpeg sudo apt-add-repository ppa:jon-severinsson/ffmpeg sudo apt-get update sudo apt-get install ffmpeg


21

Arista Transcoder You can use this software, that I always use and I think it's really good. To convert an ogv file to mp4 you should choose any Sony device.


20

Downloading from youTube Install youtube-dl from the official repository in Ubuntu: sudo apt-get install youtube-dl To download a video execute the following: youtube-dl <url> E.g youtube-dl http://www.youtube.com/watch?v=_z-hEyVQDRA You can also specify other options -b Best quality -m Mobile version -d High ...


19

Well, install libfaac first. It seems there was an error doing so. Make sure apt-get install libfaac-dev works. The proper instructions for installing FFmpeg and x264 are here. sudo apt-get update sudo apt-get -y install build-essential checkinstall git libfaac-dev libgpac-dev \ libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev ...


17

Get needed software sudo apt-get install gpac mkvtoolnix Extract video and audio from matroska file First you need to check what tracks the matroska file contains with mkvmerge --identify video.mkv File 'video.mkv': container: Matroska Track ID 1: video (V_MPEG4/ISO/AVC) Track ID 2: audio (A_AC3) Then extract video and audio according to their ...


14

You say you want to "extract audio from them (mp3 or ogg)". But what if the audio in the mp4 file is not one of those? you'd have to transcode anyway. So why not leave the audio format detection up to ffmpeg? To convert one file: ffmpeg -i videofile.mp4 -vn -acodec libvorbis audiofile.ogg To convert many files: for vid in *.mp4; do ffmpeg -i "$vid" -vn ...


14

New day, decided to risk borking and found a method that works. It is straightforward, though there is a danger point after removing avconv (libav-tools, in first line) when a (typical) autoremove message appears. Be sure to ignore it. Thinking that any problems would come from incompatibilities in the support libs (codecs, filters, etc.), I did a dry run ...


12

If you are doing it via PHP (or any other language that has access to shell commands) they will be done separately, which means that they will be done simultaneous if by chance the 10 users use the PHP script at the same time. Each PHP call through shell_exec will be done independent of the others. I myself have a shell_exec script which shows some ...


11

Because -extra versions of these libraries will be installed instead, to provide additional functionality Installing ubuntu-restricted-extras will, among other things, replace libavcodec53/libavutil51 with libavcodec-extra-53 and libavutil-extra-51. The -extra versions contain all the functionality of the removed regular versions; as their name suggests, ...


11

For reasons discussed in this question, the "ffmpeg" in Ubuntu 12.04 is actually provided by the libav-tools package; that's why removing the ffmpeg package seemingly does nothing. To really remove it: sudo apt-get --purge remove libav-tools sudo apt-get --purge autoremove Note: The contents of the 2.2 kB ffmpeg package deb file as provided by libav ...


10

Use ffmpeg utility, it's awesome. 1. Install: sudo apt-get install ffmpeg 2. Convert: ffmpeg -i input.mp4 output.mpeg PS: For available formats supported by ffmpeg: ffmpeg -formats


10

ffmpeg had removed repo of Ubuntu, instead of libav. you should add ppa: sudo add-apt-repository ppa:mc3man/trusty-media sudo apt-get update sudo apt-get install ffmpeg gstreamer0.10-ffmpeg watch your output


9

I have a shell-script that uses mplayer (so it can convert anything mplayer can play) to extract the audio, and then encode it using lame. Here is the code: #! /bin/bash # any2mp3.sh # Converts to mp3 anything mplayer can play # Needs mplayer amd lame installed [ $1 ] || { echo "Usage: $0 file1.wma file2.wma"; exit 1; } for i in "$@" do [ -f "$i" ] || ...


8

You can use Avidemux It has good GUI interface. When converting from mkv to mp4 it is not re-encoded. The convertion is done within a minute (for a 60-min video). sudo apt-get install avidemux Open the mkv file in avidemux. Select safe mode if prompted. Leave the video as copy. Choose File-> Properties. Check if the audio codec is aac. If audio codec ...


8

If you only want to convert mkv to mp4 then you will save quality and a lot of time rather by just changing the containers. Both of these are just wrappers over the same content so the cpu only needs to do a little work. Don't re encode as you will definitely lose quality. It's very straight forward using ffmpeg: ffmpeg -i LostInTranslation.mkv -vcodec ...


8

You can use lsof -t /dev/video0. It will return the process which has the webcam (the first webcam should default to /dev/video0 but if you have more then one you may have a /dev/video1, /dev/video2 and so on). On idle I got nothing: sylvain@sylvain-ThinkPad-T430s:~$ lsof -t /dev/video0 If I start a Google Hangout for example: ...


7

FFMPEG package was removed since some time now from Debian repositories. There's still an ongoing debate about including the package again in the repositories. Ubuntu as Debian derivative, depends of the decitions made upstream. Since long ago, the package was just empty with an dependency to libav. This was changed in 12 May 2012 when the package was ...


7

You always lose a little quality whenever you transcode from one codec to another, video or audio, but perhaps you can avoid it if you only want to change from MP4 container type to an AVI container. codec:copy may be helpful if you don't have a reason to transcode (and it should be faster). If you must transcode because you need to use a particular video ...


7

Jon Severinson's ffmpeg is NOT Ubuntu's ffmpeg! Last year, some of the ffmpeg developers split off and started their own version ("fork") of ffmpeg, called libav. For various reasons, Ubuntu ended up choosing libav as the version to include in Ubuntu 12.04. See this question for more info. Both ffmpeg and libav are actively developed, in parallel, right ...


6

soundconverter is the leading audio file converter for the GNOME Desktop. It reads anything GStreamer can read (Ogg Vorbis, AAC, MP3, FLAC, WAV, AVI, MPEG, MOV, M4A, AC3, DTS, ALAC, MPC, Shorten, APE, SID, MOD, XM, S3M, etc...), and writes to WAV, FLAC, MP3, AAC, and Ogg Vorbis files, or use a GNOME Audio Profile. SoundConverter aims to be simple to ...


6

If you were to support a large number of users you would have to investigate an alternative method of handling the conversion process. For example you would likely setup a job scheduling system such that you post requests to the system to convert a file and poll the system for completion status. The scheduling system would take tasks from a queue and say ...


6

For older releases we may be able to install the libavcodec-extra-52 package from Medibuntu that includes ffmpeg 0.6. Newer Ubuntu versions are supported from Medibuntu with the libavcodec-extra-53-library. Note that recent Ubuntu versions have libavcode-extra-53 together with ffmpeg or avconv installable from the repositories too.


6

You can install mkvtoolnix; sudo apt-get-install mkvtoolnix Then use mkvmerge from the installation to mux audio and video into the mkv container from the command line. There is also a Gui tool, mkvtoolnix-gui that is a front end to mkvtoolnix. sudo apt-get-install mkvtoolnix-gui Example to mux video file called, input-video.mkv with a sound file ...


6

Transcoding video takes time. It also takes a lot more knowledge about encoding parameters; ffmpeg's defaults are unlikely to be suitable for you and may not even create a usable output file. Here's a start: http://blog.pcode.nl/2010/10/17/encoding-webm-using-ffmpeg/ Those settings will encode to a particular average bitrate (video bitrate of 3900kbit), ...



Only top voted, non community-wiki answers of a minimum length are eligible