cant transcode x264 + AAC ffmpeg fixed
Posted: 22 Oct 2008 16:38
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
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