[MPlayer-users] Video recode problem and memory leakage mencoder

Krzysztof Duchnowski amidk75 at gmail.com
Fri Sep 16 23:38:01 CEST 2011


On 16.09.2011 23:08, Boris Borisov wrote:
> Hello,

> I try to convert mkv box to xvid format capable with Sony Bravia TV. And
> all seems good until I receive some strange messages from MENCODER.
> For converting I use:

> /usr/bin/mencoder infile.mkv -noskip  -vf harddup -oac lavc -ovc lavc
> -of mpeg -lavcopts
> abitrate=256:vcodec=mpeg2video:keyint=1:vbitrate=8000:
> vrc_maxrate=12000:vrc_buf_size=1835 -mpegopts muxrate=40000 -af
> lavcresample=44100 -sub input.sub -font /etc/mediatomb/DejaVuSans.ttf
> -subfont-autoscale 0 -subfont-text-scale 20 -subpos 100 -o output.avi

XviD? Where?


> After some time I receive the messages:

> videocodec: libavcodec (1920x1080 fourcc=3267706d [mpg2])
> Writing header...
> INITV: 0.200, 0.158, fps: 23.976
> Pos:  15.1s    364f ( 0%) 28.62fps Trem: 199min 39651mb  A-V:0.084
> [22584:256]

> Skipped frame!
> Pos:  82.5s   1979f ( 0%) 31.17fps Trem: 198min 33748mb  A-V:0.032
> [17536:256]]

> BUFFER UNDEFLOW at stream 0, raising muxrate to 44000 kb/s, delta_scr: 10053
> Pos:  82.5s   1980f ( 0%) 31.17fps Trem: 198min 33803mb  A-V:0.027
> [17556:256]

> BUFFER UNDEFLOW at stream 0, raising muxrate to 48400 kb/s, delta_scr: 9139
> Pos:  82.5s   1981f ( 0%) 31.16fps Trem: 198min 33857mb  A-V:0.029
> [17576:255]

> BUFFER UNDEFLOW at stream 0, raising muxrate to 53240 kb/s, delta_scr: 8308
> Pos:  82.6s   1982f ( 0%) 31.16fps Trem: 198min 33911mb  A-V:0.030
> [17595:255]

> BUFFER UNDEFLOW at stream 0, raising muxrate to 58564 kb/s, delta_scr: 7553
> ^CPos: 738.0s  17696f ( 6%) 25.00fps Trem: 180min 3261mb  A-V:-0.015
> [31032:255]

> The TV are run perfectly the video and audio until reach 82.5 sec frame
> - then the picture freeze and audio continue.

> What I do wrong?

> Other problem is:
> If I continue to recode the video, the memory and swap are fill and
> process of mencoder recoding crash.

> How I can limit the memory usage? 


Sorry... MPEG with AVI extension (doesn't MENCODER make some mismatch
with this to begin with?) and keyframe every frame? It's massive amount
of data to compute and to muxing.
I don't know of MPEG2HD standard but for DVD standard, keyframe (GOP)
for 25FPS is 15 and 18 for 30FPS (it's 5 yrs now since I've done such
encodings).

-- 
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.getfirefox.net/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/


More information about the MPlayer-users mailing list