[vlc] Re: vlc / ffmpeg /divx

Magnus Ahltorp ahltorp at nada.kth.se
Wed Dec 25 16:53:34 CET 2002


> hatt at august:/video/divx> vlc truman.avi
> VideoLAN Client - version 0.4.5_2002-12-15 Ourumov - (c) 1996-2002 
> VideoLAN
>
> input init: AVIH: 2 stream, flags  HAS_INDEX IS_INTERLEAVED
> input init: video(DIVX) 576x320 24bpp 24.999375fps (size 0)
> input init: audio(0x55) 2 channels 48000Hz 0bits 16000.000000fps (size 
> 1)
> looks like this file was encoded with (divx4/(old)xvid/opendivx) -> 
> forcing
> low_                                 delay flag
> Speicherzugriffsfehler
> ~~~~~~~~~~~~~
> Last things means "memory error"
> Same with version 0.4.6

Yes, I got this also. It seems to be a bug in the ffmpeg plugin.

I don't know if this is the correct solution, but I have a patch for 
this (against 0.4.6).

I have another problem regarding the MPEG layer 3 audio decoding. I 
cannot find any code for doing this in plugins/mpeg_adec, but layer 3 
audio is listed on the vlc web page. The only sound output is squeaking 
noises. Is layer 3 audio supported?

diff -u -r /Volumes/ahltorp/src/orig/vlc-0.4.6/plugins/ffmpeg/ffmpeg.c 
ffmpeg/ffmpeg.c
--- /Volumes/ahltorp/src/orig/vlc-0.4.6/plugins/ffmpeg/ffmpeg.c Wed Nov 
13 23:50:52 2002
+++ ffmpeg/ffmpeg.c     Wed Dec 25 05:19:36 2002
@@ -366,8 +366,7 @@
          return( -1 );
      }

-    p_vdec->p_context = &p_vdec->context;
-    memset( p_vdec->p_context, 0, sizeof( AVCodecContext ) );
+    p_vdec->p_context = avcodec_alloc_context();

      p_vdec->p_context->width  = p_vdec->format.i_width;
      p_vdec->p_context->height = p_vdec->format.i_height;
diff -u -r /Volumes/ahltorp/src/orig/vlc-0.4.6/plugins/ffmpeg/ffmpeg.h 
ffmpeg/ffmpeg.h
--- /Volumes/ahltorp/src/orig/vlc-0.4.6/plugins/ffmpeg/ffmpeg.h Wed Nov 
13 23:50:52 2002
+++ ffmpeg/ffmpeg.h     Wed Dec 25 05:19:16 2002
@@ -44,7 +44,7 @@

      bitmapinfoheader_t  format;

-    AVCodecContext      context, *p_context;
+    AVCodecContext      *p_context;
      AVCodec             *p_codec;
      vout_thread_t       *p_vout;


-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>



More information about the vlc mailing list