On Tuesday 08 April 2008, Vladimir Monchenko wrote:
> Hi,
> 
> After updating vdr-1.6.0+softdevice+softplay+dvd I had a problem with 
> playing ac3 sound tracks.  I use a standard stereo a Line Out through 
> ALSA snd-via82xx the driver on my Epia ME6000.
> If I play dvd disk (through dvd plugin) or avi file (through softplay) 
> with ac3 sound track, one channel works only, which reproduces sound 
> effects to film (explosions, impacts, music...). Similar, that it is 
> sound Rear channel. Adjustment of a mixer to change this behaviour was 
> not possible.

Maybe it's the same I noticed just with regular recordings which
have a ac3 track. Played sound seems to be from rear channels when
a stereo 2CH downmix is requested from softdevice setup. This request
is now ignored by ffmpeg and we get 6CH.

In ffmpeg I found, that with revision 10199 member request_channels was
introduced for selected number of output channels.

Please try attached patch.

> Prompt me, please, that it is necessary to correct?

Stefan Lucke
Index: mpeg2decoder.c
===================================================================
RCS file: /cvsroot/softdevice/softdevice/mpeg2decoder.c,v
retrieving revision 1.78
diff -U3 -r1.78 mpeg2decoder.c
--- mpeg2decoder.c      24 Dec 2007 11:43:31 -0000      1.78
+++ mpeg2decoder.c      12 Apr 2008 08:34:43 -0000
@@ -380,6 +380,9 @@
       case 0:
         // get the AC3 -> 2CH stereo data
         context->channels = 2;
+#if 1 // find ffmpeg condition
+        context->request_channels = 2;
+#endif
         break;
       case 1:
       {
@@ -417,10 +420,16 @@
       case 2:
         // get the AC3 -> 4CH stereo data
         context->channels = 4;
+#if 1 // find ffmpeg condition
+        context->request_channels = 4;
+#endif
         break;
       case 3:
         // set channels to auto mode to get decoded stream for analog out
         context->channels = 0;
+#if 1 // find ffmpeg condition
+        context->request_channels = 0;
+#endif
         break;
     }
   }
_______________________________________________
Softdevice-devel mailing list
Softdevice-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/softdevice-devel

Reply via email to