Page 1 of 1

Codec mp4a: Could not open the encoder

Posted: 20 May 2011 08:35
by tsx
Hi everybody,

I always get a "Streaming / Transcoding failed:VLC could not open the encoder." (Win7 and Server 2003 R2) when trying to download and convert to iphone like this:

Code: Select all

./vlc.exe --verbose=2 'http://wm.globo.com/webmedia/windows.asx?usuario=gazetaes&tipo=ondemand&path=/tvgazeta/globoesporte_180511_01.wmv&ext.asx' :sout='#transcode{width=320,canvas-height=240,vcodec=mp4v, vb=768, acodec=mp4a, ab=96, channels=2}:std{access=file, mux=mp4, dst=myvideo.mp4}'
Looks like the mp4a codec is not available - googled for it but found nothing that helped. So there must be something different totally wrong - or misunderstood, as I have not much skills in video technology.

This is the sequence in the verbose=2 log:

Code: Select all

... main debug: looking for encoder module: 13 candidates avcodec debug: libavcodec already initialized avcodec error: cannot open encoder main debug: no encoder module matching "any" could be loaded main debug: TIMER module_need() : 12.664 ms - Total 12.664 ms / 1 intvls (Avg 12.664 ms) stream_out_transcode error: cannot find video encoder (module:any fourcc:mp4v) main debug: removing module "avcodec" avcodec debug: ffmpeg codec (Windows Media Video 9) stopped ...
Thanks!

Thomas

Re: Codec mp4a: Could not open the encoder

Posted: 20 May 2011 10:54
by Jean-Baptiste Kempf
Try to force samplerate

Re: Codec mp4a: Could not open the encoder

Posted: 21 May 2011 10:58
by bat999
I always get a "Streaming / Transcoding failed:VLC could not open the encoder.
Hi
Maybe VLC-v1.1.9 has no MPEG-4 Part 2 (mp4v) video encoder fitted.
Try with MPEG-4 Part 10 (x264) instead.
Something like this:-

Code: Select all

vlc.exe "http://wm.globo.com/webmedia/windows.asx?usuario=gazetaes&tipo=ondemand&path=/tvgazeta/globoesporte_180511_01.wmv&ext.asx" :sout="#transcode{venc=x264{profile=baseline,level=13,crf=24},acodec=mp4a,ab=96k}:std{access=file,mux=mp4,dst=myvideo.mp4}"

Code: Select all

General Complete name : C:\Program Files\VideoLAN\VLC\myvideo.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom File size : 22.2 MiB Duration : 5mn 15s Overall bit rate : 590 Kbps Encoded date : UTC 2011-05-22 13:25:57 Tagged date : UTC 2011-05-22 13:25:57 Writing application : vlc 1.1.9 stream output Comment : QuickTime 6.0 or greater Video ID : 2 Format : AVC Format/Info : Advanced Video Codec Format profile : Baseline@L1.3 Format settings, CABAC : No Format settings, ReFrames : 3 frames Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 5mn 15s Bit rate mode : Variable Bit rate : 501 Kbps Width : 320 pixels Height : 240 pixels Display aspect ratio : 4:3 Frame rate mode : Variable Frame rate : 29.970 fps Minimum frame rate : 28.600 fps Maximum frame rate : 30.333 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.218 Stream size : 18.8 MiB (85%) Language : English Encoded date : UTC 2011-05-22 13:25:57 Tagged date : UTC 2011-05-22 13:25:57 Audio ID : 1 Format : AAC Format/Info : Advanced Audio Codec Format profile : LC Codec ID : 40 Duration : 5mn 15s Bit rate mode : Variable Bit rate : 79.8 Kbps Maximum bit rate : 2 032 Mbps Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 44.1 KHz Compression mode : Lossy Stream size : 3.00 MiB (14%) Language : English Encoded date : UTC 2011-05-22 13:25:57 Tagged date : UTC 2011-05-22 13:25:57
EDIT
I've revised the command with better options for iPods (venc=x264{profile=baseline,level=13,crf=24},acodec=mp4a,ab=96k) 8)