Page 1 of 1

cant transcode x264 + AAC ffmpeg fixed

Posted: 22 Oct 2008 16:38
by ccastro
i am trying to stream an analog input, using x264 and AAC codecs, but it fails, i already fix ubuntu's ffmpeg and i can encode files with AAC using ffmpeg, but i cant do that with VLC, any ideas?

using VLC:

$ vlc pvr:///dev/video0 --sout '#transcode{width=320,height=140,venc=x264,vcodec=x264,vb=128,acodec=mp4a,ab=128,channels=2,samplerate=44100}:rtp{dst=192.168.254.251,sdp=http://192.168.254.176:8080/vlc.sdp}' vlc:quit

[00000377] ffmpeg encoder error: cannot find encoder MPEG AAC Audio

using ffmpeg:

$ ffmpeg -i Extremists.m4v -vcodec h264 -acodec aac lala.mp4
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-pp --enable-libvorbis --enable-libogg --enable-liba52 --enable-dc1394 --enable-libgsm --disable-debug --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-xvid --enable-pthreads --enable-x264
libavutil version: 49.3.0
libavcodec version: 51.38.0
libavformat version: 51.10.0
built on Oct 21 2008 13:36:41, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Extremists.m4v':
Duration: 00:04:01.0, start: 0.000000, bitrate: 453 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 640x360, 29.97 fps(r)
Stream #0.1(eng): Audio: aac, 48000 Hz, stereo
Output #0, mp4, to 'lala.mp4':
Stream #0.0: Video: h264, yuv420p, 640x360, q=2-31, 200 kb/s, 29.97 fps(c)
Stream #0.1: Audio: aac, 48000 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
[h264 @ 0x849053c]width or height not divisible by 16 (640x360), compression will suffer.
[h264 @ 0x849053c]using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 Cache64
Press [q] to stop encoding

kernel:

$ uname -a
Linux video 2.6.24-19-server #1 SMP Wed Aug 20 23:54:28 UTC 2008 i686 GNU/Linux

thx in advance

Re: cant transcode x264 + AAC ffmpeg fixed

Posted: 22 Oct 2008 16:46
by Jean-Baptiste Kempf
Your VLC isn't build against that FFmpeg

Re: cant transcode x264 + AAC ffmpeg fixed

Posted: 22 Oct 2008 17:31
by ccastro
how can i fix it?

Re: cant transcode x264 + AAC ffmpeg fixed

Posted: 23 Oct 2008 17:50
by xtophe
rebuild vlc

Re: cant transcode x264 + AAC ffmpeg fixed

Posted: 24 Oct 2008 16:16
by ccastro
thx, but that wasnt necesary. I was preparing my system to rebuild vlc, and after donwload and install build-deps, it works :D

Re: cant transcode x264 + AAC ffmpeg fixed

Posted: 30 Oct 2008 01:47
by xrd
I just ran "sudo apt-get build-dep vlc". I quit vlc and then reopened it and when I try to select MP4A as the audio codec it still reports the same issue: "ffmpeg encoder error: Cannot find encoder MPEG AAC Audio." Is there anything else you did to enable this?

Re: cant transcode x264 + AAC ffmpeg fixed

Posted: 02 Dec 2009 00:43
by jankarlitos
Your VLC isn't build against that FFmpeg

I have the same problem (AAC Enabled in FFMPEG but not in VLC)

How can i build vlc against my new FFMPEG?

Re: cant transcode x264 + AAC ffmpeg fixed

Posted: 02 Dec 2009 18:33
by RĂ©mi Denis-Courmont
Sounds like a stripped version of FFMPEG without encoders. This is common in Linux distributions.