Ffmpeg Encoder Error Cannot Find Encoder Ms Mpeg-4 Video V1
Contents |
for ffmpeg kajamanSeptember 30th, 2009, 05:48
Install Ffmpeg Ubuntu 14.04 Command Line
PMHi guys, I have problem with VLC not ffmpeg command line examples being able to stream via RTP protocol. I want to encode stream to
Ffmpeg List Codecs
mp3, h264 and AAC audio. While encoding video is just fine, VLC shouts at me that my FFMPEG installation is "crippled" ;). ubuntu ffmpeg install I guess ffmpeg package doesn't have AAC suport compiled in. My command line is: vlc -vvv -I rc v4l2:// :v4l2-adev=/dev/dsp :input-slave=oss:// --sout "#transcode{venc=x264{keyint=60},vcodec=x264,vb=50, scale=1,width=160,height=140,acodec=aac,ab=32,chan nels=2,samplerate=22050}:rtp{dst=XXX.XXX.XXX.XXX,p ort=5432,sdp=http://0.0.0.0:5050/vlc.sdp}" And error message printed out by VLC is: [0x22afce8] avcodec encoder debug: libavcodec initialized (interface 0x341400) [0x22afce8] avcodec ffmpeg flac encoder error: cannot find encoder MPEG AAC Audio *** Your FFMPEG installation is crippled. *** *** Please check with your FFMPEG packager. *** *** This is NOT a VLC media player issue. *** [0x22afce8] main encoder error: Streaming / Transcoding failed [0x22afce8] main encoder error: It seems your FFMPEG (libavcodec) installation lacks the following encoder: MPEG AAC Audio. If you don't know how to fix this, ask for support from your distribution. This is not an error inside VLC media player. Do not contact the VideoLAN project about this issue. FFMPEG says it was compiled with options: FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5+svn20090706-2ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/
Formats Precise Configurations Main Universe Medibuntu Source Code Formats Codecs Protocols References The FFmpeg tool and associated libraries (as of Natty, Ubuntu has switched from FFmpeg to the libav fork) is
Ffmpeg Mjpeg
the premier video decoding and encoding system on Linux (and in computing ffmpeg formats in general). The ffmpeg tool is a command line program that can be used to encode from
Ffmpeg Examples
one of many dozen codecs/formats into a similar number of other formats. The libraries from the project are available for developers to use in their own programs to provide https://ubuntuforums.org/archive/index.php/t-1279156.html video codecs, formats, devices, filters, scaling, and post-processing. Due to patent restrictions for some countries, there are several levels of support for various codecs and formats within Ubuntu's FFmpeg/libav packages. Usage The first two things you can do with FFmpeg are to list out the formats and codecs that this copy supports. This may change based on what is https://help.ubuntu.com/community/FFmpeg installed on your computer, so it is best to check these before running a command, to make sure you have the correct support available. List all container formats: ffmpeg-formats List all codecs: ffmpeg-codecs To convert a video, simply run the command "ffmpeg" with four additional parts:ffmpeg [input] [video options] [audio options] [output]The input part is composed of a "-i" and the name of the video you have that you want to convert to something else. You could have more than one of these input files (each one gets its own "-i") if for example you have a video with an audio track in a seperate file.ffmpeg -i InputVideo.mpg ...[video options] [audio options] [output] ffmpeg -i InputVideoTrack.mpg -i InputAudioTrack.wav ...[video options] [audio options] [output]The video options are where you specify the codec (with the "-vcodec" option) and bit-rate (with the "-b" option). In addition you can specify a video preset ("-vpre") which is essential for x264 encoding, and you can specify a size ("-s") with either a standard size reference or the format WIDTHxHE
enable x264 support. Edit Remove 14 This bug affects 2 people Affects Status Importance Assigned https://bugs.launchpad.net/bugs/276519 to Milestone transcode (Ubuntu) Edit Confirmed Undecided Unassigned Edit Also affects project (?) Also affects distribution/package Nominate for series Bug Description Binary package hint: transcode https://trac.ffmpeg.org/wiki/Encode/MPEG-4 When I try to encode a DVD with DVD:RIP by choosing ffmpeg/h264 in transcode I receive the following error: Output: transcode v1.0.2 (C) 2001-2003 Thomas command line Oestreich, 2003-2004 T. Bitterberg [transcode] (probe) suggested AV correction -D 0 (0 ms) | AV -31 ms | -31 ms [transcode] auto-probing source /home/adrian/dvdrip-data/paysages_manufactures/vob/001/ (ok) [transcode] V: import format | MPEG-2 (V=vob|A=vob) [transcode] V: AV demux/sync | (1) sync AV at initial MPEG sequence [transcode] V: import frame | 720x576 ffmpeg encoder error 1.25:1 encoded @ 16:9 [transcode] V: new aspect ratio | 1024x576 1.78:1 (-X) [transcode] V: clip frame (->) | 608x480 [transcode] V: bits/pixel | 0.143 (low) [transcode] V: decoding fps,frc | 25.000,0 [transcode] V: Y'CbCr | YV12/I420 [transcode] A: import format | 0x2000 AC3 [48000,16,3] 192 kbps [transcode] A: downmix | 3 channels -> 2 channels [transcode] A: export format | 0x55 MPEG layer-3 [48000,16,2] 128 kbps [transcode] V: encoding fps,frc | 25.000,3 [transcode] A: bytes per frame | 7680 (7680.000000) [transcode] A: adjustment | 0@1000 [transcode] A: rescale stream | 2.083 [transcode] A: AV shift | -31 tc_memcpy: using sse for memcpy [import_vob.so] v0.6.0 (2003-10-02) (video) MPEG-2 | (audio) MPEG/AC3/PCM | (subtitle) Xv: NV17 Video Texture: ports 280 - 311 Xv: grabbed port 280 Using Xv for display [export_ffmpeg.so] v0.3.13 (2004-08-03) (video) Lavc1d.51.38.0 | (audio) MPEG/AC3/PCM [export_ffmpeg.so] Could not find a FFMPEG codec for 'h264'. [transcode] wa
that was most widely used before the wide adoption of H.264. FFmpeg has two encoders to output MPEG-4 video. The external encoding library libxvid: ffmpeg -i input.avi -c:v libxvid output.avi ...and the native encoder mpeg4: ffmpeg -i input.avi -c:v mpeg4 -vtag xvid output.avi The native encoder has the advantage of not requiring an external library. Both encoders should provide a similar output, but for lower bitrates/quality (e.g. 1000 kBit/s for 720p content), libxvid will deliver better quality than mpeg4. The default FourCC stored in an MPEG-4-coded file will be FMP4. If you want a different FourCC, use the -vtag option. E.g., -vtag xvid will force the FourCC xvid to be stored as the video FourCC rather than the default. Note: This guide uses AVI container files for the examples as the most common usage of Xvid video is currently for older hardware devices. See the H.264 and AAC encoding guides if you are using modern devices. Variable Bit Rate with qscale You can select a video quality level with -qscale:v n (or the alias -q:v n), where n is a number from 1-31, with 1 being highest quality/largest filesize and 31 being the lowest quality/smallest filesize. This is a variable bit rate mode, roughly analogous to using -qp (constant QP [quantization parameter]) with x264. Most of the time this should be the preferred method. You can select an audio quality level with -qscale:a (or the alias -q:a). The value changes depending on the audio encoder. Since this guide uses libmp3lame see the MP3 Encoding Guide for examples and more information. Example: ffmpeg -i input.avi -c:v mpeg4 -vtag xvid -qscale:v 3 -c:a libmp3lame -qscale:a 4 output.avi There is rarely a need to use -qscale:v 1. Note that if you choose it, libxvid will take much more space than the same video compressed with the native mpeg4 encoder. Constant Bit R