Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 318525

Summary: media-video/transcode - error "could not open mpa codec !"
Product: Gentoo Linux Reporter: Harry Holt <hholt>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: major CC: dschridde+gentoobugs
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Harry Holt 2010-05-05 02:40:26 UTC
When using transcode with ffmpeg with mpeg2 encoding, the following errors occur and the process fails:

[transcode] warning: tc_audio_init_ffmpeg: could not open mpa codec !
[encoder.c] warning: audio export module error: init failed
[transcode] critical: failed to init encoder


Reproducible: Always

Steps to Reproduce:
1.transcode -i mymovie.mkv -y ffmpeg --export_prof dvd-ntsc --export_asr 3 -o mymovie -D0 -b224 -N 0x2000 -m mymovie.ac3  
2.
3.

Actual Results:  
Error - processing fails

Expected Results:  
transcoded and demuxed video and audio files suitable for DVD.
Comment 1 Harry Holt 2010-05-05 02:41:06 UTC
There is a patch for this:

diff -r 4e4c3693df55 export/aud_aux.c
--- a/export/aud_aux.c  Tue Apr 06 09:14:49 2010 +0900
+++ b/export/aud_aux.c  Tue Apr 06 09:24:20 2010 +0900
@@ -347,6 +347,7 @@
     //-- set parameters (bitrate, channels and sample-rate) --
     //--------------------------------------------------------
     memset(&mpa_ctx, 0, sizeof(mpa_ctx));          // default all
+    mpa_ctx.codec_type  = CODEC_TYPE_AUDIO;
     mpa_ctx.bit_rate    = vob->mp3bitrate * 1000;  // bitrate dest.
     mpa_ctx.channels    = vob->dm_chan;            // channels
     mpa_ctx.sample_rate = vob->a_rate;

Comment 2 Jeffrey Gardner (RETIRED) gentoo-dev 2010-07-04 19:01:49 UTC
Fixed in CVS, thanks Harry.