Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#20587 - [transcode] change in the libavcodec interface breaks transcode

Attached to Project: Arch Linux
Opened by Mal Haak (insanemal) - Tuesday, 24 August 2010, 00:31 GMT
Last edited by Eric Belanger (Snowman) - Friday, 24 September 2010, 03:35 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Use of transcode to convert PCM embedded in AVI to AC3 causes following error

[transcode] warning: tc_audio_init_ffmpeg: could not open mpa codec !

According to the Transcode mailing list there is a patch that can fix it.

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;


Apparently to be included in the elusive 1.1.6 release.

Steps to reproduce:
Use transcode on any AVI file.
This task depends upon

Closed by  Eric Belanger (Snowman)
Friday, 24 September 2010, 03:35 GMT
Reason for closing:  Fixed
Additional comments about closing:  transcode-1.1.5-5