[FFmpeg-devel] error while decoding- "Too many slices"

aviad rozenhek aviadr1 at gmail.com
Wed Jul 27 10:45:48 CEST 2011


On Sun, Jun 19, 2011 at 05:20, Michael Niedermayer <michaelni at gmx.at> wrote:

> On Sat, Jun 18, 2011 at 02:32:19PM -0700, Hardik Sharma wrote:
> > Hi guys,
> >
> > While doing decoding I am getting this error of "too many slices". Even
> after increasing MAX_SLICE defined value in h264.h file in libavcodec of
> FFMPEG to 4096, it's giving the same error. I tried slice-max-size from 100
> to 1000 but it is giving me same error for all. Please suggest me for what I
> should do. I used the following command-
>
> ive changed the code to print the actual slice values so you can see
> what value is used and what would be needed
>
>
I have the same problem when working with files I encoded with x264, here's
my printout

ffprobe version N-31627-g9c2651a, Copyright (c) 2007-2011 the FFmpeg
> developers
>   built on Jul 23 2011 15:02:13 with gcc 4.6.1
>   configuration: --enable-gpl --enable-version3 --enable-memalign-hack
> --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
> --enable-libo
> pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype
> --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp
> --enable-libschroedinger
>  --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx
> --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
>   libavutil    51. 11. 0 / 51. 11. 0
>   libavcodec   53.  9. 0 / 53.  9. 0
>   libavformat  53.  6. 0 / 53.  6. 0
>   libavdevice  53.  2. 0 / 53.  2. 0
>   libavfilter   2. 27. 3 /  2. 27. 3
>   libswscale    2.  0. 0 /  2.  0. 0
>   libpostproc  51.  2. 0 / 51.  2. 0
> *[h264 @ 019C2DC0] Too many slices (16 >= 16), increase MAX_SLICES and
> recompile
> **[h264 @ 019C2DC0] Too many slices (17 >= 16), increase MAX_SLICES and
> recompile*
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
> 'C:\Users\aviad\Documents\RayvRecordings\ostmusic2.634472905452976427.26_07_2011_152225.mp4':
>   Metadata:
>     major_brand     : isom
>     minor_version   : 512
>     compatible_brands: isomiso2avc1mp41
>     creation_time   : 1970-01-01 00:00:00
>     title           : RayV Recording at26/07/2011 15:22:25
>     encoder         : Lavf52.106.0
>   Duration: 00:00:11.74, start: 0.000000, bitrate: 488 kb/s
>     Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 64 kb/s
>     Metadata:
>       creation_time   : 1970-01-01 00:00:00
>     Stream #0.1(und): Video: h264 (High), yuv420p, 448x336, 418 kb/s, 30.06
> fps, 29.97 tbr, 1k tbn, 2k tbc
>     Metadata:
>       creation_time   : 1970-01-01 00:00:00


playback is just fine otherwise.
is it possible that the default for MAX_SLICES is just too small?

-- 
Aviad Rozenhek


More information about the ffmpeg-devel mailing list