[MPlayer-users] Bug report - mencoder incorrectly handles some FLV files

Liran Zvibel liranz at audish.com
Mon Sep 3 17:36:39 CEST 2012


Hi,

The problem happens for the official 1.1 version, and also for the SVN-r35146-4.2.1 version (with ffmpeg from git head today). It recreates on OS X and Linux.

I'm currently using ffmpeg to decode the frames from flv files and reencode them later on.
I've tried switching to mencoder, as it processes the files much faster.

During the testing I've encountered small number of files that the mencoder does not decode correctly (either rawvideo or directly as x264)

The easiest way to identify these videos, are videos that don't produce complete number of frames when asking for the rawvideo option.

The command I'm using to get the raw frames is:
	mencoder <FLV_FILE> -nosound -ovc raw -of rawvideo -really-quiet  -mc 0 -noskip -o - 

I calculate expected frame size in bytes as "width * height * 1.5" (for yuv420 the FLV uses), and then make sure that mencoder result byte count divided by the expected frame size produces an integer (i.e. "mencoder_bytes_count % (1.5 * width * height) != 0" )

Please note that mplayer plays all these files well, and also ffmpeg generates correct output. 

The original flv files I use are available online, and you can access them for debug, the list also contains the resolution and the residual:

File http://d3ptr9m08viepe.cloudfront.net/v1/2012-08/002b6c7ed44c4640a658edce80a4cab6.flv/original.bin without valid rawvideo size. Resolution 424x238, filesize 343891968 residual: 135240
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/089b26a671224373855162945b4c596e.flv/original.bin without valid rawvideo size. Resolution 424x238, filesize 276627456 residual: 78120
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/13ec1f9cb2d44dcc8d3b0812f2384f42.flv/original.bin without valid rawvideo size. Resolution 424x238, filesize 260800512 residual: 144816
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-08/23a7eedfbe894103b3db2694e36d1223.flv/original.bin without valid rawvideo size. Resolution 424x238, filesize 223469568 residual: 50400
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/264d1fd5257c49768bc46f23612251e5.flv/original.bin without valid rawvideo size. Resolution 480x270, filesize 191393280 residual: 103680
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/2a5e19b841954bb1816bc90f48a8c391.flv/original.bin without valid rawvideo size. Resolution 320x180, filesize 216483840 residual: 51840
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-08/36f142b78f4d4fb0b2ac0985a9d930ce.flv/original.bin without valid rawvideo size. Resolution 424x238, filesize 300023808 residual: 12432
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-08/3ac56eda5a0f4229a1755cda99dc590a.flv/original.bin without valid rawvideo size. Resolution 480x270, filesize 143493120 residual: 25920
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/42488c1e606040c28cb315c87b1b4d96.flv/original.bin without valid rawvideo size. Resolution 320x180, filesize 216115200 residual: 28800
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-08/4958f023ad0745bc9abaa2336c3f3f92.flv/original.bin without valid rawvideo size. Resolution 352x198, filesize 313775616 residual: 39072
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/4cdddb2a0f884274ba35b5d2b73e467e.flv/original.bin without valid rawvideo size. Resolution 424x238, filesize 275939328 residual: 146832
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/57e9258b517743fb9cf47732489a1fe0.flv/original.bin without valid rawvideo size. Resolution 384x216, filesize 338817024 residual: 32256
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-08/7760a9bb88ef47489705a621e765182e.flv/original.bin without valid rawvideo size. Resolution 480x270, filesize 144115200 residual: 64800
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-08/79d408a2638e4a0bac220ece113be8bb.flv/original.bin without valid rawvideo size. Resolution 480x270, filesize 184135680 residual: 38880
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/7dfd3af4d9304ff2a32883a655d5b5bd.flv/original.bin without valid rawvideo size. Resolution 424x238, filesize 275251200 residual: 64176
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/80d5c4c6f8d943638c905465954d2607.flv/original.bin without valid rawvideo size. Resolution 320x180, filesize 235192320 residual: 11520
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/831c7648616a40e3917c588f91b7fc76.flv/original.bin without valid rawvideo size. Resolution 424x238, filesize 225189888 residual: 105672
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/87933928f9f84ba68e0299efd99ec269.flv/original.bin without valid rawvideo size. Resolution 424x238, filesize 137453568 residual: 11424
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/8b8736f2bea349b5afb3e2a97d30f869.flv/original.bin without valid rawvideo size. Resolution 424x238, filesize 141754368 residual: 73920
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/94e9e0ab5d98406eb00ee512031826b7.flv/original.bin without valid rawvideo size. Resolution 480x270, filesize 217520640 residual: 181440
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/9ce2d611394441569c4a9076630ebb3b.flv/original.bin without valid rawvideo size. Resolution 424x238, filesize 276283392 residual: 36792
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-08/a44ee0b472a841ebb161b1c23baca175.flv/original.bin without valid rawvideo size. Resolution 480x270, filesize 190978560 residual: 77760
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-08/b24b72857261478c86a728e4c1f99cec.flv/original.bin without valid rawvideo size. Resolution 160x120, filesize 46602240 residual: 3840
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/b9edeca78c6842389b1b34944f605e06.flv/original.bin without valid rawvideo size. Resolution 320x180, filesize 155289600 residual: 28800
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/e36626343d7b45c48fb9cb3861041417.flv/original.bin without valid rawvideo size. Resolution 424x238, filesize 221061120 residual: 63840
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-08/e3c36fff192e442b8759331b823266a0.flv/original.bin without valid rawvideo size. Resolution 480x270, filesize 191185920 residual: 90720
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/e5202f7c8f2948b9baa79bdd3c8792ff.flv/original.bin without valid rawvideo size. Resolution 416x234, filesize 129552384 residual: 36192
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-07/ea594bfc50a64d4a8f2e09309bbd9fb3.flv/original.bin without valid rawvideo size. Resolution 424x238, filesize 275939328 residual: 146832
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-08/f3b0a862599b40088d879e7410c6ea45.flv/original.bin without valid rawvideo size. Resolution 320x180, filesize 161372160 residual: 63360
File http://d3ptr9m08viepe.cloudfront.net/v1/2012-08/fe4abb7641cd48c381402af4905a0b3a.flv/original.bin without valid rawvideo size. Resolution 320x180, filesize 221091840 residual: 80640


Thanks,
Liran Zvibel.


More information about the MPlayer-users mailing list