<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">Hi,<br><br>I'm using the following command to decode some rm and rmvb files, and ffmpeg reports error as shown below:<br><br>[root@PT-18376 test-clips]# ffmpeg -i hanma.rm -xerror -f null /dev/null<br>ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers<br>  built with icc (ICC) 14.0.2 20140120<br> 
 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<br>  libavutil      54. 31.100 / 54. 31.100<br>  libavcodec     56. 60.100 / 56. 60.100<br>  libavformat    56. 40.101 / 56. 40.101<br>  libavdevice    56.  4.100 / 56.  4.100<br>  libavfilter     5. 40.101 /  5. 40.101<br>  libswscale      3.  1.101 /  3.  1.101<br>  libswresample   1.  2.101 /  1.  2.101<br>  libpostproc    53.  3.100 / 53.  3.100<br>[rm @ 0x1d703a0] Invalid stream index 2 for index at pos 7110127<br>Input #0, rm, from 'hanma.rm':<br>  Metadata:<br>    title           : <br>    author          : <br>    copyright       : <br>    comment         : <br>    ASMRuleBook     : #($Bandwidth >= 0),Stream1Bandwidth = 64082, Stream0Bandwidth = 285918;<br>    Audiences       : 350k Download (VBR);<br>    audioMode       : music<br>    Creation Date   : 4/19/2016 14:41:27<br>    Generated By    : Helix Producer SDK 11.0 for Windows, Build 11.0.0.2013<br>    Modification Date: 4/19/2016 14:41:27<br>    videoMode       : sharp<br>  Duration: 00:02:39.75, start: 0.000000, bitrate: 356 kb/s<br>    Stream #0:0: Video: rv40 (RV40 / 0x30345652), yuv420p, 448x336, 286 kb/s, 30 fps, 30 tbr, 1k tbn, 1k tbc<br>    Stream #0:1: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, stereo, fltp, 64 kb/s<br>Output #0, null, to '/dev/null':<br>  Metadata:<br>    title           : <br>    author          : <br>    copyright       : <br>    comment         : <br>    ASMRuleBook     : #($Bandwidth >= 0),Stream1Bandwidth = 64082, Stream0Bandwidth = 285918;<br>    Audiences       : 350k Download (VBR);<br>    audioMode       : music<br>    Creation Date   : 4/19/2016 14:41:27<br>    Generated By    : Helix Producer SDK 11.0 for Windows, Build 11.0.0.2013<br>    Modification Date: 4/19/2016 14:41:27<br>    videoMode       : sharp<br>    encoder         : Lavf56.40.101<br>    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 448x336, q=2-31, 200 kb/s, 30 fps, 30 tbn, 30 tbc<br>    Metadata:<br>      encoder         : Lavc56.60.100 rawvideo<br>    Stream #0:1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s<br>    Metadata:<br>      encoder         : Lavc56.60.100 pcm_s16le<br>Stream mapping:<br>  Stream #0:0 -> #0:0 (rv40 (native) -> rawvideo (native))<br>  Stream #0:1 -> #0:1 (cook (native) -> pcm_s16le (native))<br>Press [q] to stop, [?] for help<br>hanma.rm: Input/output errorN/A    <br>Conversion failed!<br><br>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.<br><br>Why ffmpeg reports error when decoding rm and rmvb files?<br><br>rm and rmvb samples can be downloaded from <br><a _src="http://pan.baidu.com/s/1hs113Bu" href="http://pan.baidu.com/s/1hs113Bu">http://pan.baidu.com/s/1hs113Bu</a><br><a _src="http://pan.baidu.com/s/1qYKNY7y" href="http://pan.baidu.com/s/1qYKNY7y">http://pan.baidu.com/s/1qYKNY7y</a><br>  <br>Thanks!<br><br>B.R.<br><br><div>andrew<br><br></div></div><br><br><span title="neteasefooter"><p> </p></span>