Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 318525 - media-video/transcode - error "could not open mpa codec !"
Summary: media-video/transcode - error "could not open mpa codec !"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 02:40 UTC by Harry Holt
Modified: 2010-07-04 19:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.