[Mplayer-advusers] Re: lavc mpeg4 encode with B-frames coredump
Zoltan Hidvegi
mplayer at hzoli.2y.net
Tue Jan 27 22:08:57 CET 2004
Thanks for fixing this, but now I have an other one, uploaded bframe_segv2.ts:
hzoli /nfs/mythmaster/hdtv/bl % gdb --args /l/src/mplayercvs/main/mencoder bframe_segv2.ts -tsprog 1 -vop scale=1024:436,filmdint=io=29970:24681/crop=1910:812:2:134 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:psnr:vhq:v4mv:vmax_b_frames=1:vqscale=4 -sws 1 -fps 29.97 -ofps 24.681 -o bframe_segv2.avi
GNU gdb 5.1.90_20020324
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) run
Starting program: /usr/local/src/mplayercvs/main/mencoder bframe_segv2.ts -tsprog 1 -vop scale=1024:436,filmdint=io=29970:24681/crop=1910:812:2:134 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:psnr:vhq:v4mv:vmax_b_frames=1:vqscale=4 -sws 1 -fps 29.97 -ofps 24.681 -o bframe_segv2.avi
[New Thread 16384 (LWP 28973)]
MEncoder dev-CVS-040127-14:02-3.3.3 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton 2330 MHz (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
Reading /home/hzoli/.mplayer/codecs.conf: Can't open '/home/hzoli/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/hzoli/.mplayer/mencoder
font: can't open file: /home/hzoli/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
success: format: 0 data: 0x0 - 0x989680
TS file format detected.
DEMUX OPEN, AUDIO_ID: -1, VIDEO_ID: -1, SUBTITLE_ID: -1,
PROBING UP TO 2000000, PROG: 1
VIDEO MPEG2(pid=17)...AUDIO A52(pid=20) NO SUBS (yet)! PROGRAM N. 1
Opened TS demuxer, audio: 2000(pid 20), video: 10000002(pid 17)...POS=28896
VIDEO: MPEG2 1920x1080 (aspect 3) 29.970 fps 16492.4 kbps (2061.6 kbyte/s)
[V] filefmt:29 fourcc:0x10000002 size:1920x1080 fps:29.97 ftime:=0.0334
input fps will be interpreted as 29.97 instead
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.0 (3f+2r) 48000 Hz 384.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 48000->192000 (384.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [scale w=1024 h=436]
Opening video filter: [filmdint=io=29970:24681/crop=1910:812:2:134]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1920 x 1080 (preferred csp: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 bps=48000 sample=1)
Writing AVI header...
VDec: vo config request - 1920 x 1088 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: BILINEAR scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (1024x436 fourcc=58564944 [DIVX])
High quality encoding selected (non real time)!
Using constant qscale = 4.000000 (VBR)
Pos: 0.1s 4f (29%) 0fps Trem: 0min 0mb A-V:-0.010 [0:0]
1 duplicate frame(s)!
Pos: 0.9s 26f (39%) 25fps Trem: 0min 0mb A-V:-0.083 [0:384]
1 duplicate frame(s)!
Pos: 1.3s 38f (51%) 24fps Trem: 0min 0mb A-V:-0.083 [2254:384]
1 duplicate frame(s)!
Pos: 1.7s 50f (64%) 23fps Trem: 0min 0mb A-V:-0.082 [2522:384]
1 duplicate frame(s)!
Pos: 2.2s 62f (76%) 22fps Trem: 0min 1mb A-V:-0.082 [2793:384]
1 duplicate frame(s)!
Pos: 2.6s 74f (89%) 22fps Trem: 0min 1mb A-V:-0.082 [3043:384]
1 duplicate frame(s)!
Pos: 3.1s 87f (98%) 22fps Trem: 0min 1mb A-V:-0.084 [3334:384]
1 duplicate frame(s)!
Pos: 4.1s 114f (100%) 21fps Trem: 0min 2mb A-V:-0.078 [3792:383]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 28973)]
0x082d2ed4 in avg_pixels8_xy2_mmx2 (block=0x8598530 "@@@@@AAA1222210/",
pixels=0x422e9866 <Address 0x422e9866 out of bounds>, line_size=1056, h=8)
at dsputil_mmx_avg.h:360
360 dsputil_mmx_avg.h: No such file or directory.
in dsputil_mmx_avg.h
(gdb) bt
#0 0x082d2ed4 in avg_pixels8_xy2_mmx2 (block=0x8598530 "@@@@@AAA1222210/",
pixels=0x422e9866 <Address 0x422e9866 out of bounds>, line_size=1056, h=8)
at dsputil_mmx_avg.h:360
#1 0x422e9866 in ?? ()
#2 0x08226732 in direct_search (s=0x856d7b0, src_data=0xbfff65d0,
ref_data=0xbfff65a0, stride=1056, uvstride=528, mb_x=13, mb_y=0)
at motion_est.c:1633
#3 0x08218183 in ff_estimate_b_frame_motion (s=0x856d7b0, mb_x=13, mb_y=0)
at motion_est.c:1673
#4 0x081c2fba in encode_picture (s=0x856d7b0, picture_number=91)
at mpegvideo.c:3871
#5 0x081be9d5 in MPV_encode_picture (avctx=0x853bdc0,
buf=0x840 <Address 0x840 out of bounds>, buf_size=2112, data=0x840)
at mpegvideo.c:1919
#6 0x081b9eea in avcodec_encode_video (avctx=0x853bdc0,
buf=0x840 <Address 0x840 out of bounds>, buf_size=2112, pict=0x840)
at utils.c:430
#7 0x080955a7 in put_image (vf=0x8533ba0, mpi=0x420) at ve_lavc.c:739
#8 0x080acaf9 in vf_next_put_image (vf=0x840, mpi=0x840) at vf.c:530
#9 0x080acaf9 in vf_next_put_image (vf=0x840, mpi=0x840) at vf.c:530
#10 0x080af972 in put_image (vf=0x853c0a8, mpi=0x85501c8) at vf_scale.c:317
#11 0x080acaf9 in vf_next_put_image (vf=0x840, mpi=0x840) at vf.c:530
#12 0x080cd145 in put_image (vf=0x853c220, mpi=0x8550110) at vf_filmdint.c:1320
---Type <return> to continue, or q <return> to quit---
#13 0x080a0814 in decode_video (sh_video=0x85335f0,
start=0x840 <Address 0x840 out of bounds>, in_size=2112, drop_frame=0)
at dec_video.c:327
#14 0x0806d158 in main (argc=2112, argv=0x840) at mencoder.c:1276
#15 0x405ecda6 in __libc_start_main () from /lib/libc.so.6
(gdb)
Zoli
More information about the MPlayer-advusers
mailing list