Hi, I'm using the following command to decode some rm and rmvb files, and ffmpeg reports error as shown below:
[root@PT-18376 test-clips]# ffmpeg -i hanma.rm -xerror -f null /dev/null ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers built with icc (ICC) 14.0.2 20140120 configuration: --cc=/opt/intel/bin/icc --enable-version3 --enable-asm --enable-yasm --enable-avfilter --enable-libvidstab --disable-static --enable-shared --enable-libx264 --enable-gpl --prefix=/usr/local/ --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-libfdk_aac --enable-nonfree --enable-libass --enable-libfreetype --extra-libs=-lfreetype libavutil 54. 31.100 / 54. 31.100 libavcodec 56. 60.100 / 56. 60.100 libavformat 56. 40.101 / 56. 40.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 40.101 / 5. 40.101 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.101 / 1. 2.101 libpostproc 53. 3.100 / 53. 3.100 [rm @ 0x1d703a0] Invalid stream index 2 for index at pos 7110127 Input #0, rm, from 'hanma.rm': Metadata: title : author : copyright : comment : ASMRuleBook : #($Bandwidth >= 0),Stream1Bandwidth = 64082, Stream0Bandwidth = 285918; Audiences : 350k Download (VBR); audioMode : music Creation Date : 4/19/2016 14:41:27 Generated By : Helix Producer SDK 11.0 for Windows, Build 11.0.0.2013 Modification Date: 4/19/2016 14:41:27 videoMode : sharp Duration: 00:02:39.75, start: 0.000000, bitrate: 356 kb/s Stream #0:0: Video: rv40 (RV40 / 0x30345652), yuv420p, 448x336, 286 kb/s, 30 fps, 30 tbr, 1k tbn, 1k tbc Stream #0:1: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, stereo, fltp, 64 kb/s Output #0, null, to '/dev/null': Metadata: title : author : copyright : comment : ASMRuleBook : #($Bandwidth >= 0),Stream1Bandwidth = 64082, Stream0Bandwidth = 285918; Audiences : 350k Download (VBR); audioMode : music Creation Date : 4/19/2016 14:41:27 Generated By : Helix Producer SDK 11.0 for Windows, Build 11.0.0.2013 Modification Date: 4/19/2016 14:41:27 videoMode : sharp encoder : Lavf56.40.101 Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 448x336, q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc Metadata: encoder : Lavc56.60.100 rawvideo Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s Metadata: encoder : Lavc56.60.100 pcm_s16le Stream mapping: Stream #0:0 -> #0:0 (rv40 (native) -> rawvideo (native)) Stream #0:1 -> #0:1 (cook (native) -> pcm_s16le (native)) Press [q] to stop, [?] for help hanma.rm: Input/output errorN/A Conversion failed! From the above message, ffmpeg reports error when reaching the end of input files, because av_read_frame() return a value that is not AVERROR_EOF. I use the same command to decode other clips, such mkv and mp4. Why ffmpeg reports error when decoding rm and rmvb files? rm and rmvb samples can be downloaded from http://pan.baidu.com/s/1hs113Bu http://pan.baidu.com/s/1qYKNY7y Thanks! B.R. andrew _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel