[MPlayer-users] encoding with flacenc fails...

jojelino jojelino at gmail.com
Sat Oct 10 19:08:57 CEST 2009


flacenc in libavcodec fails to work.
surely i made some corrections to see what was the problem...
log shows that flacenc doesn't seem to work properly. because it just gives
14 byte when it imported 60kb stream.
and encoder->decode_buffer_size in libmpcodecs has fewer size than flacenc
needs.
example.... 18kb < 39kb
so it will output 'output buffer too small' and it fails.

so when i set up workaround so that encoder->decode_buffer_size > 39kb .
you can see flacenc continues to give 14 byte.....
in 6 sec, it suddenly gives normal bitstream (6kb 9kb etc.....)
but video packs are full so audio codec doesn't seem to work anymore.

parameters
---------------------------------------

\mplayer\bin\mencoder.exe -demuxer +lavf -of lavf -lavfopts
o=fflags=+ignidx+genpts,i
ndexmem=8192 -odml dvdnav://1 -dvd-device \DVD1\01\VIDEO_TS -o "dvd1.avi"
-ffourcc H264 -ovc x264 -oac
lavc -lavcopts acodec=flac -vf pp=fd -cache 20480 -x264encopts
crf=20:qp_min=26:
qp_max=51:bframes=4:ref=1:8x8dct:direct_pred=temporal:weight_b:me=dia:partitions
=none:8x8dct:subq=2:mixed_refs:deadzone_intra=4:deadzone_inter=8:log=0:trellis=2
:threads=4

version
----------------------------------------------------
MEncoder SVN-r29766-4.5.0 (C) 2000-2009 MPlayer Team
----------------------------------------------------
log
---------------------------------------

workaround is set (decode buffer 60000 when codec id is flac)

buffersize !!!!!!!!!!!!!!!!! 14000


Pos:   1.4s    101f ( 0%) 87.60fps Trem:   0min   0mb  A-V:0.067 [697:1]
Skipping frame!
Pos:   1.4s    103f ( 0%) 88.95fps Trem:   0min   0mb  A-V:0.040 [684:1]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 14 byte for encoding buflen 14 loop 1
Pos:   1.5s    106f ( 0%) 90.29fps Trem:   0min   0mb  A-V:0.050 [657:1]
Pos:   6.7s    278f ( 0%) 141.26fps Trem:   0min   0mb  A-V:0.057 [339:1]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 14 byte for encoding buflen 14 loop 1
Pos:   6.8s    281f ( 0%) 141.56fps Trem:   0min   0mb  A-V:0.067 [336:1]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 14 byte for encoding buflen 14 loop 1

Skipping frame!
Pos:   6.9s    285f ( 0%) 142.00fps Trem:   0min   0mb  A-V:0.047 [336:1]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 3321 byte for encoding buflen 3321 loop 1
Pos:   7.0s    288f ( 0%) 142.43fps Trem:   0min   0mb  A-V:0.057 [334:4]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 5217 byte for encoding buflen 5217 loop 1
Pos:   7.1s    291f ( 0%) 142.93fps Trem:   0min   0mb  A-V:0.067 [331:10]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 6585 byte for encoding buflen 6585 loop 1

Skipping frame!
Pos:   7.2s    295f ( 0%) 143.69fps Trem:   0min   0mb  A-V:0.047 [329:16]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 7528 byte for encoding buflen 7528 loop 1
Pos:   7.3s    298f ( 0%) 144.17fps Trem:   0min   0mb  A-V:0.057 [328:24]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 8163 byte for encoding buflen 8163 loop 1
Pos:   7.4s    300f ( 0%) 143.75fps Trem:   0min   0mb  A-V:0.063 [326:32]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 8570 byte for encoding buflen 8570 loop 1
Pos:   7.4s    301f ( 0%) 143.81fps Trem:   0min   0mb  A-V:0.067 [325:40]
Skipping frame!
Pos:   7.5s    304f ( 0%) 144.49fps Trem:   0min   0mb  A-V:0.043 [324:40]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 8616 byte for encoding buflen 8616 loop 1
Pos:   7.6s    307f ( 0%) 144.67fps Trem:   0min   0mb  A-V:0.053 [321:48]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 8642 byte for encoding buflen 8642 loop 1
Pos:   7.7s    310f ( 0%) 145.13fps Trem:   0min   0mb  A-V:0.063 [320:56]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 8834 byte for encoding buflen 8834 loop 1
Pos:   7.7s    311f ( 0%) 145.12fps Trem:   0min   0mb  A-V:0.067 [319:64]
Skipping frame!
Pos:   7.8s    314f ( 0%) 145.84fps Trem:   0min   0mb  A-V:0.043 [319:64]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 8973 byte for encoding buflen 8973 loop 1
Pos:   7.9s    317f ( 0%) 145.81fps Trem:   0min   0mb  A-V:0.053 [316:72]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 9091 byte for encoding buflen 9091 loop 1
Pos:   8.0s    320f ( 0%) 146.19fps Trem:   0min   0mb  A-V:0.063 [315:80]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 9307 byte for encoding buflen 9307 loop 1
Pos:   8.0s    321f ( 0%) 146.24fps Trem:   0min   0mb  A-V:0.067 [314:87]
Skipping frame!
Pos:   8.1s    324f ( 0%) 146.74fps Trem:   0min   0mb  A-V:0.043 [314:87]
used 60000 byte for decoding buflen 0,maxsz 1048576

used 9080 byte for encoding buflen 9080 loop 1
Pos:   8.1s    326f ( 0%) 146.91fps Trem:   0min   0mb  A-V:0.050 [312:95]
used 60000 byte for decoding buflen 0,maxsz 1048576


----------------------------------------------------------------------------------------------------------------

used 6024 byte for decoding buflen 0,maxsz 1048576
[flac @ 0xd78d74]output buffer too small 6024<38064

used 0 byte for encoding buflen 0 loop 1

Too many video packets in the buffer: (3244 in 33556668 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

used 0 byte for decoding buflen 0,maxsz 1048576

Skipping frame!
Pos:  52.2s   1792f ( 0%) 164.78fps Trem:   0min   0mb  A-V:0.037 [611:413]
Too many video packets in the buffer: (3244 in 33559176 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Too many video packets in the buffer: (3244 in 33559176 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

used 4016 byte for decoding buflen 0,maxsz 1048576
[flac @ 0xd78d74]output buffer too small 4016<38064

used 0 byte for encoding buflen 0 loop 1

Too many video packets in the buffer: (3244 in 33559176 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

used 0 byte for decoding buflen 0,maxsz 1048576
Pos:  52.2s   1793f ( 0%) 164.69fps Trem:   0min   0mb  A-V:0.040 [612:413]
Too many video packets in the buffer: (3244 in 33558765 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Too many video packets in the buffer: (3244 in 33558765 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

used 4016 byte for decoding buflen 0,maxsz 1048576
[flac @ 0xd78d74]output buffer too small 4016<38064

used 0 byte for encoding buflen 0 loop 1

Too many video packets in the buffer: (3244 in 33558765 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

used 0 byte for decoding buflen 0,maxsz 1048576
Pos:  52.2s   1794f ( 0%) 164.69fps Trem:   0min   0mb  A-V:0.043 [613:413]
Too many video packets in the buffer: (3245 in 33585300 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Too many video packets in the buffer: (3245 in 33585300 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

used 56224 byte for decoding buflen 0,maxsz 1048576

used 7363 byte for encoding buflen 7363 loop 1

Too many video packets in the buffer: (3245 in 33585300 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

used 0 byte for decoding buflen 0,maxsz 1048576
Pos:  52.3s   1795f ( 0%) 164.68fps Trem:   0min   0mb  A-V:0.047 [615:414]
Too many video packets in the buffer: (3244 in 33577423 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

used 0 byte for decoding buflen 0,maxsz 1048576
Pos:  52.3s   1796f ( 0%) 164.56fps Trem:   0min   0mb  A-V:0.050 [616:414]
Too many video packets in the buffer: (3243 in 33569261 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

used 0 byte for decoding buflen 0,maxsz 1048576
Pos:  52.3s   1797f ( 0%) 164.58fps Trem:   0min   0mb  A-V:0.053 [618:414]
Too many video packets in the buffer: (3244 in 33556289 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Too many video packets in the buffer: (3244 in 33556289 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

used 6024 byte for decoding buflen 0,maxsz 1048576
[flac @ 0xd78d74]output buffer too small 6024<38064

used 0 byte for encoding buflen 0 loop 1

Too many video packets in the buffer: (3244 in 33556289 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

used 0 byte for decoding buflen 0,maxsz 1048576
Pos:  52.4s   1798f ( 0%) 164.55fps Trem:   0min   0mb  A-V:0.057 [619:414]
Too many video packets in the buffer: (3245 in 33561263 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Too many video packets in the buffer: (3245 in 33561263 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

used 8032 byte for decoding buflen 0,maxsz 1048576
[flac @ 0xd78d74]output buffer too small 8032<38064

used 0 byte for encoding buflen 0 loop 1


More information about the MPlayer-users mailing list