[MPlayer-users] vf.c: have to REALLOCATE buffer memory :(
Brian Neltner
neltnerb at neltner.mit.edu
Thu Jun 10 18:53:34 CEST 2004
Hello.
With recently encoded movies, I am finding that in some cases, the end resulting file both causes avidemux to segfault (? maybe ODML, so a different problem, though in the past, regenerating the frames has fixed this) on playing, and, while it plays in mplayer, applying the following postprocessing filters (from my config file)
vf=spp,noise=8ah:5ah
autoq=3
results in this message being printed on every other frame (commenting the pp filters eliminates the problem, the filters do, however, work properly on any movies I encoded in the past.).
vf.c: have to REALLOCATE buffer memory :(
At first, I thought this was a scaling issue-- scale=560:-2 resulted in this error while scale=560:288 (or whatever, multiples of 16) seemed not to. I actually even tested this, and found that a movie I encoded with the scale=560:-2 worked cleanly with the hardcoded in scale. However, I just encoded several more samples, and it seems that the problem lay elsewhere.
I included the output below from running mplayer with the postprocessing filters below, the movie was encoded using the command:
nice -+19 mencoder -ofps 23.976 dvd://1 -alang en -oac lavc -lavcopts acodec=mp3:abitrate=128 -af volume=10:sc -ovc lavc -lavcopts vqmin=2:vcodec=mpeg4:trell:mbd=2:vmax_b_frames=1:v4mv:vb_strategy=0:vlelim=0:vcelim=0:cmp=2:subcmp=2:precmp=2:predia=1:dia=1:vme=4:vbitrate=1122:vpass=1 -vf hqdn3d=2:1:2,crop=718:460:2:6,scale=520:288 -o temp.avi
nice -+19 mencoder -ofps 23.976 dvd://1 -alang en -oac lavc -lavcopts acodec=mp3:abitrate=128 -af volume=10:sc -ovc lavc -lavcopts vqmin=2:vcodec=mpeg4:trell:mbd=2:vmax_b_frames=1:v4mv:vb_strategy=0:vlelim=0:vcelim=0:cmp=2:subcmp=2:precmp=2:predia=1:dia=1:vme=4:vbitrate=1122:vpass=2 -vf hqdn3d=2:1:2,crop=718:460:2:6,scale=520:288 -o "movie.avi"
I encoded a movie which seemed successful using this exact same command varied by crop dimensions only, but I didn't test it individually before concatenating it to the first disk in the series; however, the concatenated version works beautifully.
Another possible alteration between the successful and unsuccessful versions is that I definately used cmp=2 in the unsuccessful version and used cmp=3 in the first of the two movies I concatenated.
The output from the unsuccessful run is below.
MPlayer 1.0pre4-3.3.3 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton 1854 MHz (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
SSE supported but disabled
CPUflags: MMX: 1 MMX2: 0 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX 3DNow 3DNowEx
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/neltnerb/.mplayer/config
Reading /home/neltnerb/.mplayer/codecs.conf: Can't open '/home/neltnerb/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 66 audio & 176 video codecs
Font /home/neltnerb/.mplayer/font/font.desc loaded successfully! (206 chars)
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/neltnerb/.mplayer/input.conf: No such file or directory
Input config file /etc/mplayer/input.conf parsed: 53 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing downloads/movies/temp/movie.avi.
AVI file format detected.
VIDEO: [DIVX] 520x288 24bpp 23.976 fps 1058.3 kbps (129.2 kbyte/s)
Clip info:
Software: MEncoder 1.0pre4-3.3.3
Source Form: DVD ripped by acidrip.sf.net
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 16000->192000 (128.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Opening video filter: [noise=8ah:5ah]
Opening video filter: [spp]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
[PP] Using external postprocessing filter, max q = 6.
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: requested format: 48000 Hz, 2 channels, Signed 16-bit (Little-Endian)
alsa-init: 1 soundcard found, using: hw:0,0
alsa1x: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa1x] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 520 x 288 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.85:1 - prescaling to correct movie aspect.
VO: [null] 520x288 => 532x288 Planar YV12
vf.c: have to REALLOCATE buffer memory :( 4/ 4 0% 0% 0.0% 0 3 72%
vf.c: have to REALLOCATE buffer memory :( 6/ 6 0% 0% 0.0% 0 3 99%
vf.c: have to REALLOCATE buffer memory :( 8/ 8 0% 0% 0.0% 0 3 99%
vf.c: have to REALLOCATE buffer memory :( 10/ 10 0% 0% 0.0% 0 3 99%
vf.c: have to REALLOCATE buffer memory :( 12/ 12 0% 0% 0.0% 0 3 99%
vf.c: have to REALLOCATE buffer memory :( 14/ 14 2% 31% 0.9% 0 3 99%
vf.c: have to REALLOCATE buffer memory :( 16/ 16 2% 31% 0.9% 0 3 99%
vf.c: have to REALLOCATE buffer memory :( 18/ 18 2% 31% 0.9% 0 3 99%
Cheers,
--
-Brian
"The teacher guides his students best, by allowing them to lead."
-Lao Tzu, Tao Te Ching, circa 600 B.C.
More information about the MPlayer-users
mailing list