[MPlayer-users] Video recode problem and memory leakage mencoder
Boris Borisov
lz1bgb at gmail.com
Sun Sep 18 00:41:26 CEST 2011
На 17.09.2011 00:38, Krzysztof Duchnowski написа:
> 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).
>
You are right about name and format of file, but each modern player not
ask the extensions, ask only metadata of file. In fact some video play
without any problem after recoding.
The changes of keyframe to 15 are not solve the problem with 'freezing'
the picture. I start receiving more often the 'error' messages
BUFFER UNDEFLOW at stream 0, raising muxrate to 44000 kb/s, delta_scr: 10053
Pos: 18.1s 437f ( 0%) 21.58fps Trem: 275min 14343mb A-V:0.030
[7875:255]
BUFFER UNDEFLOW at stream 0, raising muxrate to 48400 kb/s, delta_scr: 9139
Pos: 18.8s 452f ( 0%) 21.76fps Trem: 282min 14778mb A-V:0.026
[7844:255]
BUFFER UNDEFLOW at stream 0, raising muxrate to 53240 kb/s, delta_scr: 8308
Pos: 19.4s 467f ( 0%) 21.92fps Trem: 290min 15222mb A-V:0.017
[7827:256]
BUFFER UNDEFLOW at stream 0, raising muxrate to 58564 kb/s, delta_scr: 7553
Pos: 20.0s 482f ( 0%) 22.05fps Trem: 279min 14732mb A-V:0.011
[7806:256]
BUFFER UNDEFLOW at stream 0, raising muxrate to 64420 kb/s, delta_scr: 6866
Pos: 20.6s 497f ( 0%) 22.22fps Trem: 285min 15164mb A-V:0.019
[7774:255]
BUFFER UNDEFLOW at stream 0, raising muxrate to 70862 kb/s, delta_scr: 6242
Pos: 21.3s 512f ( 0%) 22.39fps Trem: 292min 15572mb A-V:0.008
[7732:256]
BUFFER UNDEFLOW at stream 0, raising muxrate to 77948 kb/s, delta_scr: 5675
Pos: 83.0s 1992f ( 0%) 22.21fps Trem: 280min 15164mb A-V:0.027
[7929:255]]
.............
If I change the vbitrate=8000 to 32000 the movie pass smoothly but
quality are very poor.
Can anybody to recommend me how to change the options to achieve the
best results?
More information about the MPlayer-users
mailing list