#214 latest ffmpeg 2.1 breaking scanner.c

v1.0 (example)
open
nobody
None
5
2014-07-12
2013-11-03
richud
No

all media now fails to scan with this error

[2013/11/03 12:04:07] scanner.c:702: info: Scanning /media/WD320Gb/transmissionbt/xxxxxxxxx
[2013/11/03 12:04:07] metadata.c:722: warn: Opening /media/WD320Gb/transmissionbt/xxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxx.mkv failed! [Invalid data found when processing input]
[2013/11/03 12:04:07] scanner.c:488: warn: Unsuccessful getting details for /media/WD320Gb/transmissionbt/xxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxx.mkv!

Discussion

  • richud

    richud - 2014-06-14

    1.1.3 NEWS says
    'Add libavcodec > 54 / libav 10 compatibility.'

    Have revisited this problem again with 1.1.3

    ffmpeg 2.2.3 : libavcodec 55.52.102, libav 10.1 = fails to work, same problem as above
    ffmpeg 2.1.4 : libavcodec 55.39.101, libav 9 = fails to work, same problem as above
    ffmpeg 2.0.4 : libavcodec 55.18.102, libav 9 = ok

    Is it it possible to please make it work against a modern(maintained) version of ffmeg?

     
  • Tux420

    Tux420 - 2014-06-14

    I'm using current libav from git and am now wondering if this ticket is related to why I'm having problems. As I mention in https://sourceforge.net/p/minidlna/discussion/879957/thread/d46b3dcb/

    metadata.c:715: debug: File example.mkv does not contain a video stream.
    scanner.c:489: warn: Unsuccessful getting details for /Media/Movies/example.mkv!

    Note: Audio files and images get scanned fine. Just video file types have this issue for me. (AVI, MKV, MOV, MP4, etc...)

     
    Last edit: Tux420 2014-06-14
  • richud

    richud - 2014-06-14

    can you try with ffmpeg 2.0.4 and see if it ok with that?

    This is my relevant compile line (same with all versions)

    ./configure --cross-prefix=$(CROSS_COMPILE) --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --arch=mips --target-os=linux \
    --enable-cross-compile --enable-shared --enable-pthreads --enable-zlib \
    --disable-programs --disable-doc --disable-encoders --disable-muxers --disable-filters --disable-swscale --disable-debug \
    --disable-static --disable-swresample --disable-avfilter --disable-postproc --disable-avdevice --disable-network;
    

    (Have also tried with more default options and makes no difference, so nothing missing)

     
    Last edit: richud 2014-06-14
  • Justin Maggard

    Justin Maggard - 2014-06-17

    I have been using the most current ffmpeg 2.2.3 on both ARM and x86_64, and it works fine with all sorts of video files.

    ffmpeg -buildconf

    ffmpeg version 2.2.3 Copyright (c) 2000-2014 the FFmpeg developers
    built on Jun 5 2014 09:49:17 with gcc 4.7 (Debian 4.7.2-5)
    configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc=cc --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-stripping --enable-small --disable-amd3dnow --disable-bsfs --disable-ffserver --disable-devices --disable-protocols --enable-protocol=file --enable-avresample --disable-parsers --enable-parser=aac --enable-parser=ac3 --enable-parser=dvbsub --enable-parser=dvdsub --enable-parser=flac --enable-parser=h261 --enable-parser=h263 --enable-parser=h264 --enable-parser=mjpeg --enable-parser=mlp --enable-parser=mpeg4video --enable-parser=mpegaudio --enable-parser=mpegvideo --enable-parser=vc1 --enable-parser=vorbis --enable-parser=vp3 --enable-parser=vp8 --disable-demuxers --enable-demuxer=aac --enable-demuxer=ac3 --enable-demuxer=asf --enable-demuxer=avi --enable-demuxer=dts --enable-demuxer=dv --enable-demuxer=eac3 --enable-demuxer=flac --enable-demuxer=flv --enable-demuxer=h261 --enable-demuxer=h263 --enable-demuxer=h264 --enable-demuxer=matroska --enable-demuxer=mjpeg --enable-demuxer=mov --enable-demuxer=m4v --enable-demuxer=mp3 --enable-demuxer=mpegps --enable-demuxer=mpegts --enable-demuxer=mpegtsraw --enable-demuxer=mpegvideo --enable-demuxer=ogg --enable-demuxer=vc1 --enable-demuxer=wav --disable-decoders --enable-decoder=aac --enable-decoder=alac --enable-decoder=eac3 --enable-decoder=flac --enable-decoder=flv --enable-decoder=h264 --enable-decoder=mp3 --enable-decoder=mpeg2video --enable-decoder=mpeg4 --enable-decoder=vorbis --enable-decoder=wmalossless --enable-decoder=wmapro --enable-decoder=wmav1 --enable-decoder=wmav2 --disable-muxers --enable-muxer=mp3 --disable-encoders --enable-libmp3lame --enable-encoder=libmp3lame --disable-filters --enable-filter=aresample
    libavutil 52. 66.100 / 52. 66.100
    libavcodec 55. 52.102 / 55. 52.102
    libavformat 55. 33.100 / 55. 33.100
    libavdevice 55. 10.100 / 55. 10.100
    libavfilter 4. 2.100 / 4. 2.100
    libavresample 1. 2. 0 / 1. 2. 0
    libswscale 2. 5.102 / 2. 5.102
    libswresample 0. 18.100 / 0. 18.100

    configuration:
    --prefix=/usr
    --extra-cflags='-g -O2 -fstack-protector
    --param=ssp-buffer-size=4 -Wformat -Werror=format-security '
    --extra-ldflags='-Wl,-z,relro'
    --cc=cc
    --libdir=/usr/lib/x86_64-linux-gnu
    --shlibdir=/usr/lib/x86_64-linux-gnu
    --enable-shared
    --disable-stripping
    --enable-small
    --disable-amd3dnow
    --disable-bsfs
    --disable-ffserver
    --disable-devices
    --disable-protocols
    --enable-protocol=file
    --enable-avresample
    --disable-parsers
    --enable-parser=aac
    --enable-parser=ac3
    --enable-parser=dvbsub
    --enable-parser=dvdsub
    --enable-parser=flac
    --enable-parser=h261
    --enable-parser=h263
    --enable-parser=h264
    --enable-parser=mjpeg
    --enable-parser=mlp
    --enable-parser=mpeg4video
    --enable-parser=mpegaudio
    --enable-parser=mpegvideo
    --enable-parser=vc1
    --enable-parser=vorbis
    --enable-parser=vp3
    --enable-parser=vp8
    --disable-demuxers
    --enable-demuxer=aac
    --enable-demuxer=ac3
    --enable-demuxer=asf
    --enable-demuxer=avi
    --enable-demuxer=dts
    --enable-demuxer=dv
    --enable-demuxer=eac3
    --enable-demuxer=flac
    --enable-demuxer=flv
    --enable-demuxer=h261
    --enable-demuxer=h263
    --enable-demuxer=h264
    --enable-demuxer=matroska
    --enable-demuxer=mjpeg
    --enable-demuxer=mov
    --enable-demuxer=m4v
    --enable-demuxer=mp3
    --enable-demuxer=mpegps
    --enable-demuxer=mpegts
    --enable-demuxer=mpegtsraw
    --enable-demuxer=mpegvideo
    --enable-demuxer=ogg
    --enable-demuxer=vc1
    --enable-demuxer=wav
    --disable-decoders
    --enable-decoder=aac
    --enable-decoder=alac
    --enable-decoder=eac3
    --enable-decoder=flac
    --enable-decoder=flv
    --enable-decoder=h264
    --enable-decoder=mp3
    --enable-decoder=mpeg2video
    --enable-decoder=mpeg4
    --enable-decoder=vorbis
    --enable-decoder=wmalossless
    --enable-decoder=wmapro
    --enable-decoder=wmav1
    --enable-decoder=wmav2
    --disable-muxers
    --enable-muxer=mp3
    --disable-encoders
    --enable-libmp3lame
    --enable-encoder=libmp3lame
    --disable-filters
    --enable-filter=aresample

     
  • richud

    richud - 2014-06-20

    Thanks for the reply, have rebuilt with that config (minus the libmp3lame as didn't have library, not sure why necessary?) and still have same problem. (it is a Netgear MIPS device btw.).

    Looking in the database it appears to pickup jpg, the audio part of mp4 video files ok, with details such as bitrate etc.

    Is there any debugging code I can enable or any other suggestions please?


    /tmp # ./ffmpeg -buildconf
    ffmpeg version 2.2.3 Copyright (c) 2000-2014 the FFmpeg developers
    built on Jun 20 2014 20:33:43 with gcc 4.2.3 (GCC)
    configuration: --cross-prefix=/opt/toolchains/uclibc-crosstools-gcc-4.2.3-3/usr/bin/mips-linux-uclibc- --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --arch=mips --target-os=linux --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --enable-shared --disable-stripping --enable-small --disable-amd3dnow --disable-bsfs --disable-ffserver --disable-devices --disable-protocols --enable-protocol=file --enable-avresample --disable-parsers --enable-parser=aac --enable-parser=ac3 --enable-parser=dvbsub --enable-parser=dvdsub --enable-parser=flac --enable-parser=h261 --enable-parser=h263 --enable-parser=h264 --enable-parser=mjpeg --enable-parser=mlp --enable-parser=mpeg4video --enable-parser=mpegaudio --enable-parser=mpegvideo --enable-parser=vc1 --enable-parser=vorbis --enable-parser=vp3 --enable-parser=vp8 --disable-demuxers --enable-demuxer=aac --enable-demuxer=ac3 --enable-demuxer=asf --enable-demuxer=avi --enable-demuxer=dts --enable-demuxer=dv --enable-demuxer=eac3 --enable-demuxer=flac --enable-demuxer=flv --enable-demuxer=h261 --enable-demuxer=h263 --enable-demuxer=h264 --enable-demuxer=matroska --enable-demuxer=mjpeg --enable-demuxer=mov --enable-demuxer=m4v --enable-demuxer=mp3 --enable-demuxer=mpegps --enable-demuxer=mpegts --enable-demuxer=mpegtsraw --enable-demuxer=mpegvideo --enable-demuxer=ogg --enable-demuxer=vc1 --enable-demuxer=wav --disable-decoders --enable-decoder=aac --enable-decoder=alac --enable-decoder=eac3 --enable-decoder=flac --enable-decoder=flv --enable-decoder=h264 --enable-decoder=mp3 --enable-decoder=mpeg2video --enable-decoder=mpeg4 --enable-decoder=vorbis --enable-decoder=wmalossless --enable-decoder=wmapro --enable-decoder=wmav1 --enable-decoder=wmav2 --disable-muxers --enable-muxer=mp3 --disable-encoders --disable-filters --enable-filter=aresample
    libavutil 52. 66.100 / 52. 66.100
    libavcodec 55. 52.102 / 55. 52.102
    libavformat 55. 33.100 / 55. 33.100
    libavdevice 55. 10.100 / 55. 10.100
    libavfilter 4. 2.100 / 4. 2.100
    libavresample 1. 2. 0 / 1. 2. 0
    libswscale 2. 5.102 / 2. 5.102
    libswresample 0. 18.100 / 0. 18.100
    [swscaler @ 0x441170] Value 4294967295.500000 for parameter 'srcw' out of range [1 - 2.14748e+09]
    [swscaler @ 0x441170] Value 15241383936.000001 for parameter 'param0' out of range [-2.14748e+09 - 2.14748e+09]
    [swscaler @ 0x441170] Value 15241383936.000001 for parameter 'param1' out of range [-2.14748e+09 - 2.14748e+09]
    [swscaler @ 0x441170] Value -2147483648.000000 for parameter 'src_v_chr_pos' out of range [-1 - 512]
    [swscaler @ 0x441170] Value -1.000000 for parameter 'sws_dither' out of range [0 - 4]

    configuration:
    --cross-prefix=/opt/toolchains/uclibc-crosstools-gcc-4.2.3-3/usr/bin/mips-linux-uclibc-
    --disable-mips32r2
    --disable-mipsdspr1
    --disable-mipsdspr2
    --arch=mips
    --target-os=linux
    --extra-cflags='-g -O2 -fstack-protector
    --param=ssp-buffer-size=4 -Wformat -Werror=format-security '
    --extra-ldflags='-Wl,-z,relro'
    --enable-shared
    --disable-stripping
    --enable-small
    --disable-amd3dnow
    --disable-bsfs
    --disable-ffserver
    --disable-devices
    --disable-protocols
    --enable-protocol=file
    --enable-avresample
    --disable-parsers
    --enable-parser=aac
    --enable-parser=ac3
    --enable-parser=dvbsub
    --enable-parser=dvdsub
    --enable-parser=flac
    --enable-parser=h261
    --enable-parser=h263
    --enable-parser=h264
    --enable-parser=mjpeg
    --enable-parser=mlp
    --enable-parser=mpeg4video
    --enable-parser=mpegaudio
    --enable-parser=mpegvideo
    --enable-parser=vc1
    --enable-parser=vorbis
    --enable-parser=vp3
    --enable-parser=vp8
    --disable-demuxers
    --enable-demuxer=aac
    --enable-demuxer=ac3
    --enable-demuxer=asf
    --enable-demuxer=avi
    --enable-demuxer=dts
    --enable-demuxer=dv
    --enable-demuxer=eac3
    --enable-demuxer=flac
    --enable-demuxer=flv
    --enable-demuxer=h261
    --enable-demuxer=h263
    --enable-demuxer=h264
    --enable-demuxer=matroska
    --enable-demuxer=mjpeg
    --enable-demuxer=mov
    --enable-demuxer=m4v
    --enable-demuxer=mp3
    --enable-demuxer=mpegps
    --enable-demuxer=mpegts
    --enable-demuxer=mpegtsraw
    --enable-demuxer=mpegvideo
    --enable-demuxer=ogg
    --enable-demuxer=vc1
    --enable-demuxer=wav
    --disable-decoders
    --enable-decoder=aac
    --enable-decoder=alac
    --enable-decoder=eac3
    --enable-decoder=flac
    --enable-decoder=flv
    --enable-decoder=h264
    --enable-decoder=mp3
    --enable-decoder=mpeg2video
    --enable-decoder=mpeg4
    --enable-decoder=vorbis
    --enable-decoder=wmalossless
    --enable-decoder=wmapro
    --enable-decoder=wmav1
    --enable-decoder=wmav2
    --disable-muxers
    --enable-muxer=mp3
    --disable-encoders
    --disable-filters
    --enable-filter=aresample
    /tmp #

     
  • Justin Maggard

    Justin Maggard - 2014-07-12

    Maybe you have more than one set of ffmpeg libs, and configure is picking up the wrong one?

     
  • richud

    richud - 2014-07-12

    Hi thanks for your interest - I am building them all from source into a firmware. I am pointing/linking specifically minidlna to all the libs I build and I can't see any instances in the log file of minidlna build linking to any local libs. Definitely only the built ones end up in the firmware.
    Changing only the source package from ffmpeg 2.0.4 to a later version(s) causes the problem.
    I have attached the original build Makefile (for all libs and minidlna), the modified one with your specific settings and a config.log from minidlna and ffmeg when using your settings.

    Thanks for any ideas!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks