[MEncoder-users] [Bug] Analog video capture raises all kind of several glibc+process memory exceptions intermittently

thomas schorpp thomas.schorpp at googlemail.com
Mon Dec 10 21:28:46 CET 2007


hi,

system:

-debian testing amd64 (latest snapshot)
-Linux tom1 2.6.23.9 #4 PREEMPT Sun Dec 9 22:15:51 CET 2007 x86_64 GNU/Linux
--rwxr-xr-x 1 root root 1420624 2007-11-29 19:52 /lib/libc-2.7.so

schorpp at tom1:/usr/local/src/mplayer$ gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.2.3 20071123 (prerelease) (Debian 4.2.2-4)

-GNU ld (GNU Binutils for Debian) 2.18.20071027
-GNU assembler (GNU Binutils for Debian) 2.18.20071027

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 47
model name      : AMD Athlon(tm) 64 Processor 3200+
stepping        : 2
cpu MHz         : 2000.153
cache size      : 512 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow rep_good pni lahf_lm
bogomips        : 4005.96
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

capture: 2.6.23.9 release usbvision + Hauppauge wintv usb device (composite+S-Video inputs), works with transcode v4l2 capture module.

./configure --enable-debug=3 --disable-mplayer --enable-crash-debug (<- not working)


behaviour:

mencoder -tv driver=v4l2:device=/dev/video2:width=320:height=240:input=1:amode=1:normid=0:alsa:adevice=default:audiorate=48000 -ovc lavc -lavcopts vcodec=libx264:vbitrate=900 -vf pp=lb -ofps 25 -oac lavc -lavcopts acodec=ac3:abitrate=256 -o /dev/null tv://

segfaults the postprocessor e.g.  and raises glibc double free + memory corruption exceptions, seems to come from unexpectances 
and digitized crap in the analog video streams.


trying to get something reproducible:


(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /usr/local/bin/mencoder -v -tv driver=v4l2:device=/dev/video2:width=320:height=240:input=1:normid=0:alsa:adevice=default:audiorate=48000 -ovc lavc -lavcopts vcodec=libx264:vbitrate=900 -vf pp=lb -ofps 25 -oac lavc -lavcopts acodec=ac3:abitrate=256 -o /dev/null tv://
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffe77fe000
[Thread debugging using libthread_db enabled]
MEncoder dev-SVN-r25343-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3200+ (Family: 15, Model: 47, Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

Configuration: --enable-debug=3 --disable-mplayer --enable-crash-debug
init_freetype
get_path('font/font.desc') -> '/home/schorpp/.mplayer/font/font.desc'
font: can't open file: /home/schorpp/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
STREAM: [tv] tv://
STREAM: Description: TV Input
STREAM: Author: Benjamin Zores, Albeu
STREAM: Comment:
success: format: 9  data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: Hauppauge WinTV USB (PAL/SECAM
Tuner cap:
Tuner rxs:
Capabilites:  video capture  tuner  audio  read/write  streaming
supported norms: 0 = PAL; 1 = PAL-M; 2 = NTSC; 3 = SECAM;
inputs: 0 = Television; 1 = Composite Video Input; 2 = S-Video Input;
Current input: 0
Format GREY   ( 8 bits, GREY): Planar Y800
Format RGB565 (16 bits, RGB565): BGR 16-bit
Format RGB24  (24 bits, RGB24): RGB 24-bit
Format RGB32  (32 bits, RGB32): RGBA
Format RGB555 (16 bits, RGB555): BGR 15-bit
Format YUYV   (16 bits, YUV422): Packed YUY2
Format YVU420 (12 bits, YUV420P): Planar YV12
Current format: YVU420
v4l2: current audio mode is : MONO
v4l2: set format: YVU420
v4l2: set input: 1
Selected norm id: 0
v4l2: set norm: PAL
v4l2: set width: 320
v4l2: set height: 240
Selected channel list: europe-east (including 133 channels)
Current frequency: 0 (0.000)
==> Found video stream: 0
v4l2: get format: YVU420
v4l2: get fps: 25.000000
v4l2: get width: 320
v4l2: get height: 240
[New Thread 0x2b0bc6a8f300 (LWP 29727)]
Plug PCM: Rate conversion PCM (48000, sformat=S16_LE)
Its setup is:
 stream       : CAPTURE
 access       : RW_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 1
 rate         : 44100
 exact rate   : 44100 (44100/1)
 msbits       : 16
 buffer_size  : 15052
 period_size  : 940
 period_time  : 21333
 tick_time    : 0
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 940
 xfer_align   : 940
 start_threshold  : 0
 stop_threshold   : 15052
 silence_threshold: 0
 silence_size : 0
 boundary     : 4236761349448794112
Slave: Route conversion PCM (sformat=S16_LE)
 Transformation table:
   0 <- 0*0.5 + 1*0.5
Its setup is:
 stream       : CAPTURE
 access       : MMAP_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 1
 rate         : 48000
 exact rate   : 48000 (48000/1)
 msbits       : 16
 buffer_size  : 16384
 period_size  : 1024
 period_time  : 21333
 tick_time    : 0
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 1024
 xfer_align   : 1024
 start_threshold  : 0
 stop_threshold   : 16384
 silence_threshold: 0
 silence_size : 0
 boundary     : 4611686018427387904
Slave: Direct Snoop PCM
Its setup is:
 stream       : CAPTURE
 access       : MMAP_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 2
 rate         : 48000
 exact rate   : 48000 (48000/1)
 msbits       : 16
 buffer_size  : 16384
 period_size  : 1024
 period_time  : 21333
 tick_time    : 0
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 1024
 xfer_align   : 1024
 start_threshold  : 0
 stop_threshold   : 16384
 silence_threshold: 0
 silence_size : 0
 boundary     : 4611686018427387904
Hardware PCM card 0 'VIA 8237' device 0 subdevice 0
Its setup is:
 stream       : CAPTURE
 access       : MMAP_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 2
 rate         : 48000
 exact rate   : 48000 (48000/1)
 msbits       : 16
 buffer_size  : 16384
 period_size  : 1024
 period_time  : 21333
 tick_time    : 4000
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 1024
 xfer_align   : 1024
 start_threshold  : 1
 stop_threshold   : 4611686018427387904
 silence_threshold: 0
 silence_size : 0
 boundary     : 4611686018427387904
v4l2: set audio samplerate: 48000
Plug PCM: Route conversion PCM (sformat=S16_LE)
 Transformation table:
   0 <- 0*0.5 + 1*0.5
Its setup is:
 stream       : CAPTURE
 access       : RW_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 1
 rate         : 48000
 exact rate   : 48000 (48000/1)
 msbits       : 16
 buffer_size  : 16384
 period_size  : 1024
 period_time  : 21333
 tick_time    : 0
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 1024
 xfer_align   : 1024
 start_threshold  : 0
 stop_threshold   : 16384
 silence_threshold: 0
 silence_size : 0
 boundary     : 4611686018427387904
Slave: Direct Snoop PCM
Its setup is:
 stream       : CAPTURE
 access       : MMAP_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 2
 rate         : 48000
 exact rate   : 48000 (48000/1)
 msbits       : 16
 buffer_size  : 16384
 period_size  : 1024
 period_time  : 21333
 tick_time    : 0
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 1024
 xfer_align   : 1024
 start_threshold  : 0
 stop_threshold   : 16384
 silence_threshold: 0
 silence_size : 0
 boundary     : 4611686018427387904
Hardware PCM card 0 'VIA 8237' device 0 subdevice 0
Its setup is:
 stream       : CAPTURE
 access       : MMAP_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 2
 rate         : 48000
 exact rate   : 48000 (48000/1)
 msbits       : 16
 buffer_size  : 16384
 period_size  : 1024
 period_time  : 21333
 tick_time    : 4000
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 1024
 xfer_align   : 1024
 start_threshold  : 1
 stop_threshold   : 4611686018427387904
 silence_threshold: 0
 silence_size : 0
 boundary     : 4611686018427387904
v4l2: get audio format: 9
==> Found audio stream: 0
v4l2: get audio samplerate: 48000
v4l2: get audio samplesize: 2
v4l2: get audio channels: 1
 TV audio: 1 channels, 16 bits, 48000 Hz
Audio capture - buffer 4782 blocks of 2048 bytes, skew average from 47 meas.
Using a ring buffer for maximum 2554 frames, 280 MB total size.
v4l2: set Brightness: 128 [0, 255]
v4l2: set Hue: 0 [-128, 127]
v4l2: set Saturation: 64 [0, 127]
v4l2: set Contrast: 64 [0, 127]
[V] filefmt:9  fourcc:0x32315659  size:320x240  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 48000 Hz, 1 ch, s16le, 768.0 kbit/100.00% (ratio: 96000->96000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[file] File size is 0 bytes
STREAM: [file] /dev/null
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [pp=lb]
[expand] query(Planar YV12) -> 1
[expand] query(Planar I420) -> 1
[expand] query(Planar IYUV) -> 1
[expand] query(Planar 444P) -> 0
[expand] query(Planar 422P) -> 0
[expand] query(Planar 411P) -> 0
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: pp expand lavc
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (320x240->320x240,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x0
REQ: flags=0x401  req=0x0
videocodec: libavcodec (320x240 fourcc=34363268 [h264])
[libx264 @ 0xc47040]using cpu capabilities: MMX MMXEXT SSE SSE2 3DNow!
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Building audio filter chain for 48000Hz/1ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/1ch/s16le
[libaf] Adding filter format
[format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int
[dummy] Was reinitialized: 48000Hz/1ch/s16le
[format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int
Building audio filter chain for 48000Hz/1ch/s16le -> 48000Hz/1ch/s16le...
[dummy] Was reinitialized: 48000Hz/1ch/s16le
[format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int
[libaf] Removing filter format
[dummy] Was reinitialized: 48000Hz/1ch/s16le
Forcing audio preload to 0, max pts correction to 0.
[New Thread 0x40800950 (LWP 29732)]
v4l2: going to capture
[New Thread 0x41001950 (LWP 29733)]
*** [pp] Exporting mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
*** [lavc] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
*** [expand] Direct Rendering mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
get_path('subfont.ttf') -> '/home/schorpp/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Increasing filtered audio buffer size from 0 to 3136 A-V:0.000 [0:0] A/Vms 0/18 D/B/S 0/0/0
Muxer frame buffer sending 2 frame(s) to the muxer.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:   0.2s      6f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0] A/Vms 0/21 D/B/S 0/0/0
1 duplicate frame(s)!
Pos:   0.4s     10f ( 0%)  10fps Trem:   0min   0mb  A-V:0.000 [0:0] A/Vms 1/21 D/B/S 1/0/0
1 duplicate frame(s)!
Pos:   1.5s     36f ( 0%)  17fps Trem:   0min   0mb  A-V:0.000 [1004:256] A/Vms 4/21 D/B/S 2/0/0
Skipping frame!
Pos:   2.7s     66f ( 0%)  20fps Trem:   0min   0mb  A-V:0.000 [933:256] A/Vms 4/20 D/B/S 2/1/1
1 duplicate frame(s)!
Pos:   2.9s     71f ( 0%)  20fps Trem:   0min   0mb  A-V:0.000 [904:256] A/Vms 4/20 D/B/S 3/1/1
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b0bc6a8f300 (LWP 29727)]
0x00002b0bc616ed3d in _int_free () from /lib/libc.so.6
(gdb) bt
#0  0x00002b0bc616ed3d in _int_free () from /lib/libc.so.6
#1  0x00002b0bc6172bdc in free () from /lib/libc.so.6
#2  0x00000000004c9146 in ds_fill_buffer (ds=0xfbda30) at demuxer.h:265						<------- REPRODUCIBLE
#3  0x00000000004c9795 in ds_get_packet (ds=0xfbda30, start=0x7fffe7764e60) at demuxer.c:535
#4  0x00000000005111cd in video_read_frame (sh_video=0xfbe0c0, frame_time_ptr=0x7fffe7764e6c, start=0x7fffe7764e60,
   force_fps=0) at video.c:549
#5  0x000000000043b246 in main (argc=<value optimized out>, argv=<value optimized out>) at mencoder.c:1241
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x2b0bc616ed1d to 0x2b0bc616ed5d:
0x00002b0bc616ed1d <_int_free+973>:     jne    0x2b0bc616efac <_int_free+1628>
0x00002b0bc616ed23 <_int_free+979>:     and    $0x2,%ebx
0x00002b0bc616ed26 <_int_free+982>:     je     0x2b0bc616e9ea <_int_free+154>
0x00002b0bc616ed2c <_int_free+988>:     nopl   0x0(%rax)
0x00002b0bc616ed30 <_int_free+992>:     callq  0x2b0bc612e920 <abort>
0x00002b0bc616ed35 <_int_free+997>:     mov    0x10(%r15),%rdx
0x00002b0bc616ed39 <_int_free+1001>:    mov    0x18(%r15),%rax
0x00002b0bc616ed3d <_int_free+1005>:    cmp    %r15,0x18(%rdx)
0x00002b0bc616ed41 <_int_free+1009>:    je     0x2b0bc616ef50 <_int_free+1536>
0x00002b0bc616ed47 <_int_free+1015>:    mov    0x2e43b7(%rip),%ebx        # 0x2b0bc6453104 <check_action>
0x00002b0bc616ed4d <_int_free+1021>:    mov    %ebx,%eax
0x00002b0bc616ed4f <_int_free+1023>:    and    $0x5,%eax
0x00002b0bc616ed52 <_int_free+1026>:    cmp    $0x5,%eax
0x00002b0bc616ed55 <_int_free+1029>:    je     0x2b0bc616eeae <_int_free+1374>
0x00002b0bc616ed5b <_int_free+1035>:    test   $0x1,%bl
End of assembler dump.
(gdb) info all-registers
rax            0x2a2b2a2a29282726       3038568734159021862
rbx            0x14c2bb0        21769136
rcx            0x1      1
rdx            0x2524232221202021       2676302708056530977
rsi            0x14c2bc0        21769152
rdi            0x2b0bc64549c0   47329571064256
rbp            0x14c2bb0        0x14c2bb0
rsp            0x7fffe7764ad0   0x7fffe7764ad0
r8             0x14c2bc0        21769152
r9             0x2b0bc7f87010   47329599582224
r10            0x2b0bc7f87010   47329599582224
r11            0x206    518
r12            0x2a310  172816
r13            0x2b0bc64549c0   47329571064256
r14            0x25810  153616
r15            0x14ecec0        21941952
rip            0x2b0bc616ed3d   0x2b0bc616ed3d <_int_free+1005>
eflags         0x10246  [ PF ZF IF RF ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x0      0
gs             0x0      0
st0            -inf     (raw 0xffff0000000000000000)
st1            -nan(0x2d2d2d2d2d2d2d2d) (raw 0xffff2d2d2d2d2d2d2d2d)
st2            -nan(0x5a005a005a005a)   (raw 0xffff005a005a005a005a)
st3            -nan(0x5a005a005a005a)   (raw 0xffff005a005a005a005a)
st4            -nan(0x2d002d002d002d)   (raw 0xffff002d002d002d002d)
st5            -nan(0x5a005a005a005a)   (raw 0xffff005a005a005a005a)
st6            -nan(0x5a005a005a005a)   (raw 0xffff005a005a005a005a)
st7            -nan(0x1000100010001)    (raw 0xffff0001000100010001)
fctrl          0x37f    895
fstat          0x0      0
ftag           0xffff   65535
fiseg          0x0      0
---Type <return> to continue, or q <return> to quit---
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {v4_float = {0x631b5800, 0x2, 0x0, 0x0}, v2_double = {0x2, 0x0}, v16_int8 = {0xb0, 0x36, 0xc6, 0x4e, 0x78,
   0xe9, 0x6, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x36b0, 0x4ec6, 0xe978, 0x4006, 0x0, 0x0, 0x0,
   0x0}, v4_int32 = {0x4ec636b0, 0x4006e978, 0x0, 0x0}, v2_int64 = {0x4006e9784ec636b0, 0x0},
 uint128 = 0x00000000000000004006e9784ec636b0}
xmm1           {v4_float = {0x0, 0x2, 0x0, 0x0}, v2_double = {0x2, 0x0}, v16_int8 = {0x5c, 0x8f, 0xc2, 0xf5, 0x28, 0x5c,
   0x7, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x8f5c, 0xf5c2, 0x5c28, 0x4007, 0x0, 0x0, 0x0, 0x0},
 v4_int32 = {0xf5c28f5c, 0x40075c28, 0x0, 0x0}, v2_int64 = {0x40075c28f5c28f5c, 0x0},
 uint128 = 0x000000000000000040075c28f5c28f5c}
xmm2           {v4_float = {0x0, 0x2, 0x0, 0x0}, v2_double = {0x2, 0x0}, v16_int8 = {0xb2, 0x9d, 0xef, 0xa7, 0xc6, 0x4b,
   0x7, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x9db2, 0xa7ef, 0x4bc6, 0x4007, 0x0, 0x0, 0x0, 0x0},
 v4_int32 = {0xa7ef9db2, 0x40074bc6, 0x0, 0x0}, v2_int64 = {0x40074bc6a7ef9db2, 0x0},
 uint128 = 0x000000000000000040074bc6a7ef9db2}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
 uint128 = 0x00000000000000000000000000000000}
xmm4           {v4_float = {0x0, 0x2, 0x7a4432, 0xdfe666}, v2_double = {0x2, 0x8000000000000000}, v16_int8 = {0x5c, 0x8f,
   0xc2, 0xf5, 0x28, 0x5c, 0x7, 0x40, 0x64, 0x88, 0xf4, 0x4a, 0x66, 0xe6, 0x5f, 0x4b}, v8_int16 = {0x8f5c, 0xf5c2,
   0x5c28, 0x4007, 0x8864, 0x4af4, 0xe666, 0x4b5f}, v4_int32 = {0xf5c28f5c, 0x40075c28, 0x4af48864, 0x4b5fe666},
 v2_int64 = {0x40075c28f5c28f5c, 0x4b5fe6664af48864}, uint128 = 0x4b5fe6664af4886440075c28f5c28f5c}
xmm5           {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x1, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0,
   0x3f, 0xa0, 0x1, 0x0, 0x0, 0xa0, 0x1, 0x0, 0x0}, v8_int16 = {0x0, 0x0, 0x0, 0x3ff0, 0x1a0, 0x0, 0x1a0, 0x0},
 v4_int32 = {0x0, 0x3ff00000, 0x1a0, 0x1a0}, v2_int64 = {0x3ff0000000000000, 0x1a0000001a0},
 uint128 = 0x000001a0000001a03ff0000000000000}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xbb, 0x99, 0x3, 0x0, 0xbb, 0x99,
   0x3, 0x0, 0xbb, 0x99, 0x3, 0x0, 0xbb, 0x99, 0x3, 0x0}, v8_int16 = {0x99bb, 0x3, 0x99bb, 0x3, 0x99bb, 0x3, 0x99bb,
   0x3}, v4_int32 = {0x399bb, 0x399bb, 0x399bb, 0x399bb}, v2_int64 = {0x399bb000399bb, 0x399bb000399bb},
 uint128 = 0x000399bb000399bb000399bb000399bb}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x80, 0x3c, 0x0, 0x0, 0xe3, 0x3d,
   0x0, 0x0, 0x1b, 0x38, 0x0, 0x0, 0x51, 0x59, 0x0, 0x0}, v8_int16 = {0x3c80, 0x0, 0x3de3, 0x0, 0x381b, 0x0, 0x5951,
   0x0}, v4_int32 = {0x3c80, 0x3de3, 0x381b, 0x5951}, v2_int64 = {0x3de300003c80, 0x59510000381b},
 uint128 = 0x000059510000381b00003de300003c80}
xmm8           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1,
---Type <return> to continue, or q <return> to quit---
   0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0}, v8_int16 = {0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1}, v4_int32 = {
   0x10001, 0x10001, 0x10001, 0x10001}, v2_int64 = {0x1000100010001, 0x1000100010001},
 uint128 = 0x00010001000100010001000100010001}
xmm9           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x30, 0x67, 0xc7, 0x93, 0x57, 0xf3,
   0x2e, 0x3d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x6730, 0x93c7, 0xf357, 0x3d2e, 0x0, 0x0, 0x0, 0x0},
 v4_int32 = {0x93c76730, 0x3d2ef357, 0x0, 0x0}, v2_int64 = {0x3d2ef35793c76730, 0x0},
 uint128 = 0x00000000000000003d2ef35793c76730}
xmm10          {v4_float = {0x55500000, 0x1, 0x0, 0x0}, v2_double = {0x1, 0x0}, v16_int8 = {0x55, 0x55, 0x55, 0x55, 0x55,
   0x55, 0xfd, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x5555, 0x5555, 0x5555, 0x3ffd, 0x0, 0x0, 0x0,
   0x0}, v4_int32 = {0x55555555, 0x3ffd5555, 0x0, 0x0}, v2_int64 = {0x3ffd555555555555, 0x0},
 uint128 = 0x00000000000000003ffd555555555555}
xmm11          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
 uint128 = 0x00000000000000000000000000000000}
xmm12          {v4_float = {0x0, 0x4b, 0x0, 0x0}, v2_double = {0x5ffffffffff, 0x0}, v16_int8 = {0x2c, 0xfd, 0xff, 0xff,
   0xff, 0xff, 0x97, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0xfd2c, 0xffff, 0xffff, 0x4297, 0x0,
   0x0, 0x0, 0x0}, v4_int32 = {0xfffffd2c, 0x4297ffff, 0x0, 0x0}, v2_int64 = {0x4297fffffffffd2c, 0x0},
 uint128 = 0x00000000000000004297fffffffffd2c}
xmm13          {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x1, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x58, 0x55, 0x55,
   0xfd, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x5800, 0x5555, 0x3ffd, 0x0, 0x0, 0x0, 0x0},
 v4_int32 = {0x58000000, 0x3ffd5555, 0x0, 0x0}, v2_int64 = {0x3ffd555558000000, 0x0},
 uint128 = 0x00000000000000003ffd555558000000}
xmm14          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x58, 0x55, 0x55,
   0x45, 0xbe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x5800, 0x5555, 0xbe45, 0x0, 0x0, 0x0, 0x0},
 v4_int32 = {0x58000000, 0xbe455555, 0x0, 0x0}, v2_int64 = {0xbe45555558000000, 0x0},
 uint128 = 0x0000000000000000be45555558000000}
xmm15          {v4_float = {0x0, 0x14, 0x0, 0x0}, v2_double = {0x8000001, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x2, 0x0, 0x0,
   0xa0, 0x41, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x200, 0x0, 0x41a0, 0x0, 0x0, 0x0, 0x0},
 v4_int32 = {0x2000000, 0x41a00000, 0x0, 0x0}, v2_int64 = {0x41a0000002000000, 0x0},
 uint128 = 0x000000000000000041a0000002000000}
mxcsr          0x1fa1   [ IE PE IM DM ZM OM UM PM ]
(gdb)
(gdb) bt full
#0  0x00002b0bc616ed3d in _int_free () from /lib/libc.so.6
No symbol table info available.
#1  0x00002b0bc6172bdc in free () from /lib/libc.so.6
No symbol table info available.
#2  0x00000000004c9146 in ds_fill_buffer (ds=0xfbda30) at demuxer.h:265
       demux = (demuxer_t *) 0xfbc810
#3  0x00000000004c9795 in ds_get_packet (ds=0xfbda30, start=0x7fffe7764e60) at demuxer.c:535
       len = <value optimized out>
#4  0x00000000005111cd in video_read_frame (sh_video=0xfbe0c0, frame_time_ptr=0x7fffe7764e6c, start=0x7fffe7764e60,
   force_fps=0) at video.c:549
       i = <value optimized out>
       pos = <value optimized out>
       in_picture = <value optimized out>
       d_video = (demux_stream_t *) 0xfbda30
       demuxer = (demuxer_t *) 0xfbc810
       frame_time = <value optimized out>
       pts1 = <value optimized out>
       pts = <value optimized out>
       picture_coding_type = <value optimized out>
       in_size = <value optimized out>
       video_codec = VIDEO_OTHER
#5  0x000000000043b246 in main (argc=<value optimized out>, argv=<value optimized out>) at mencoder.c:1241
       ve = <value optimized out>
       stream = (stream_t *) 0xfbbe30
       ostream = <value optimized out>
       demuxer = (demuxer_t *) 0xfbc810
       stream2 = <value optimized out>
       demuxer2 = (demuxer_t *) 0x0
       d_audio = (demux_stream_t *) 0xfbd9a0
       d_video = (demux_stream_t *) 0xfbda30
       d_dvdsub = (demux_stream_t *) 0xfbdac0
       sh_audio = (sh_audio_t *) 0xfbf450
       sh_video = (sh_video_t *) 0xfbe0c0
       file_format = 9
       i = 19
       vobsub_writer = (void *) 0x0
---Type <return> to continue, or q <return> to quit---
       frame_data = {start = 0x0, in_size = 0, frame_time = 0, already_read = 0}
       ptimer_start = 3315914118
       audiorate = 490
       videorate = 1440
       audiosamples = 93
       videosamples = 72
       skippedframes = 1
       duplicatedframes = 3
       badframes = 1
       mux_a = (muxer_stream_t *) 0x11569a0
       mux_v = (muxer_stream_t *) 0xff4a60
       muxer_f_size = <value optimized out>
       v_pts_corr = 0
       v_timer_corr = 0.024050936102867126
       filelist = <value optimized out>
       filename = 0x400 <Address 0x400 out of bounds>
       decoded_frameno = 71
       next_frameno = -1
       curfile = 0
       new_srate = 48000
       timer_start = 3315910616
       ao_data = {samplerate = 48000, channels = 1, format = 0, bps = 0, outburst = 512, buffersize = -1, pts = 0}
       aparams = {channels = 1, sample_rate = 48000, bitrate = -972054528, samples_per_frame = 11019,
 audio_preload = 500}
       aencoder = (audio_encoder_t *) 0x1157cb0
       ve = (vf_instance_t *) 0xff4ba0
(gdb)
(gdb)                                                                                











(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /usr/local/bin/mencoder -v -tv driver=v4l2:device=/dev/video2:width=320:height=240:input=1:normid=0:alsa:adevice=default:audiorate=48000 -ovc lavc -lavcopts vcodec=libx264:vbitrate=900 -vf pp=lb -ofps 25 -oac lavc -lavcopts acodec=ac3:abitrate=256 -o /dev/null tv://
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fffa9bfe000
[Thread debugging using libthread_db enabled]
MEncoder dev-SVN-r25343-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3200+ (Family: 15, Model: 47, Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

Configuration: --enable-debug=3 --disable-mplayer --enable-crash-debug
init_freetype
get_path('font/font.desc') -> '/home/schorpp/.mplayer/font/font.desc'
font: can't open file: /home/schorpp/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
STREAM: [tv] tv://
STREAM: Description: TV Input
STREAM: Author: Benjamin Zores, Albeu
STREAM: Comment:
success: format: 9  data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: Hauppauge WinTV USB (PAL/SECAM
Tuner cap:
Tuner rxs:
Capabilites:  video capture  tuner  audio  read/write  streaming
supported norms: 0 = PAL; 1 = PAL-M; 2 = NTSC; 3 = SECAM;
inputs: 0 = Television; 1 = Composite Video Input; 2 = S-Video Input;
Current input: 0
Format GREY   ( 8 bits, GREY): Planar Y800
Format RGB565 (16 bits, RGB565): BGR 16-bit
Format RGB24  (24 bits, RGB24): RGB 24-bit
Format RGB32  (32 bits, RGB32): RGBA
Format RGB555 (16 bits, RGB555): BGR 15-bit
Format YUYV   (16 bits, YUV422): Packed YUY2
Format YVU420 (12 bits, YUV420P): Planar YV12
Current format: YVU420
v4l2: current audio mode is : MONO
v4l2: set format: YVU420
v4l2: set input: 1
Selected norm id: 0
v4l2: set norm: PAL
v4l2: set width: 320
v4l2: set height: 240
Selected channel list: europe-east (including 133 channels)
Current frequency: 0 (0.000)
==> Found video stream: 0
v4l2: get format: YVU420
v4l2: get fps: 25.000000
v4l2: get width: 320
v4l2: get height: 240
[New Thread 0x2ac304741300 (LWP 29786)]
Plug PCM: Rate conversion PCM (48000, sformat=S16_LE)
Its setup is:
 stream       : CAPTURE
 access       : RW_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 1
 rate         : 44100
 exact rate   : 44100 (44100/1)
 msbits       : 16
 buffer_size  : 15052
 period_size  : 940
 period_time  : 21333
 tick_time    : 0
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 940
 xfer_align   : 940
 start_threshold  : 0
 stop_threshold   : 15052
 silence_threshold: 0
 silence_size : 0
 boundary     : 4236761349448794112
Slave: Route conversion PCM (sformat=S16_LE)
 Transformation table:
   0 <- 0*0.5 + 1*0.5
Its setup is:
 stream       : CAPTURE
 access       : MMAP_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 1
 rate         : 48000
 exact rate   : 48000 (48000/1)
 msbits       : 16
 buffer_size  : 16384
 period_size  : 1024
 period_time  : 21333
 tick_time    : 0
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 1024
 xfer_align   : 1024
 start_threshold  : 0
 stop_threshold   : 16384
 silence_threshold: 0
 silence_size : 0
 boundary     : 4611686018427387904
Slave: Direct Snoop PCM
Its setup is:
 stream       : CAPTURE
 access       : MMAP_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 2
 rate         : 48000
 exact rate   : 48000 (48000/1)
 msbits       : 16
 buffer_size  : 16384
 period_size  : 1024
 period_time  : 21333
 tick_time    : 0
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 1024
 xfer_align   : 1024
 start_threshold  : 0
 stop_threshold   : 16384
 silence_threshold: 0
 silence_size : 0
 boundary     : 4611686018427387904
Hardware PCM card 0 'VIA 8237' device 0 subdevice 0
Its setup is:
 stream       : CAPTURE
 access       : MMAP_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 2
 rate         : 48000
 exact rate   : 48000 (48000/1)
 msbits       : 16
 buffer_size  : 16384
 period_size  : 1024
 period_time  : 21333
 tick_time    : 4000
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 1024
 xfer_align   : 1024
 start_threshold  : 1
 stop_threshold   : 4611686018427387904
 silence_threshold: 0
 silence_size : 0
 boundary     : 4611686018427387904
v4l2: set audio samplerate: 48000
Plug PCM: Route conversion PCM (sformat=S16_LE)
 Transformation table:
   0 <- 0*0.5 + 1*0.5
Its setup is:
 stream       : CAPTURE
 access       : RW_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 1
 rate         : 48000
 exact rate   : 48000 (48000/1)
 msbits       : 16
 buffer_size  : 16384
 period_size  : 1024
 period_time  : 21333
 tick_time    : 0
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 1024
 xfer_align   : 1024
 start_threshold  : 0
 stop_threshold   : 16384
 silence_threshold: 0
 silence_size : 0
 boundary     : 4611686018427387904
Slave: Direct Snoop PCM
Its setup is:
 stream       : CAPTURE
 access       : MMAP_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 2
 rate         : 48000
 exact rate   : 48000 (48000/1)
 msbits       : 16
 buffer_size  : 16384
 period_size  : 1024
 period_time  : 21333
 tick_time    : 0
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 1024
 xfer_align   : 1024
 start_threshold  : 0
 stop_threshold   : 16384
 silence_threshold: 0
 silence_size : 0
 boundary     : 4611686018427387904
Hardware PCM card 0 'VIA 8237' device 0 subdevice 0
Its setup is:
 stream       : CAPTURE
 access       : MMAP_INTERLEAVED
 format       : S16_LE
 subformat    : STD
 channels     : 2
 rate         : 48000
 exact rate   : 48000 (48000/1)
 msbits       : 16
 buffer_size  : 16384
 period_size  : 1024
 period_time  : 21333
 tick_time    : 4000
 tstamp_mode  : NONE
 period_step  : 1
 sleep_min    : 0
 avail_min    : 1024
 xfer_align   : 1024
 start_threshold  : 1
 stop_threshold   : 4611686018427387904
 silence_threshold: 0
 silence_size : 0
 boundary     : 4611686018427387904
v4l2: get audio format: 9
==> Found audio stream: 0
v4l2: get audio samplerate: 48000
v4l2: get audio samplesize: 2
v4l2: get audio channels: 1
 TV audio: 1 channels, 16 bits, 48000 Hz
Audio capture - buffer 4782 blocks of 2048 bytes, skew average from 47 meas.
Using a ring buffer for maximum 2554 frames, 280 MB total size.
v4l2: set Brightness: 128 [0, 255]
v4l2: set Hue: 0 [-128, 127]
v4l2: set Saturation: 64 [0, 127]
v4l2: set Contrast: 64 [0, 127]
[V] filefmt:9  fourcc:0x32315659  size:320x240  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.
AUDIO: 48000 Hz, 1 ch, s16le, 768.0 kbit/100.00% (ratio: 96000->96000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
[file] File size is 0 bytes
STREAM: [file] /dev/null
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [pp=lb]
[expand] query(Planar YV12) -> 1
[expand] query(Planar I420) -> 1
[expand] query(Planar IYUV) -> 1
[expand] query(Planar 444P) -> 0
[expand] query(Planar 422P) -> 0
[expand] query(Planar 411P) -> 0
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
Trying filter chain: pp expand lavc
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (320x240->320x240,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x0
REQ: flags=0x401  req=0x0
videocodec: libavcodec (320x240 fourcc=34363268 [h264])
[libx264 @ 0xc47040]using cpu capabilities: MMX MMXEXT SSE SSE2 3DNow!
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Building audio filter chain for 48000Hz/1ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/1ch/s16le
[libaf] Adding filter format
[format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int
[dummy] Was reinitialized: 48000Hz/1ch/s16le
[format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int
Building audio filter chain for 48000Hz/1ch/s16le -> 48000Hz/1ch/s16le...
[dummy] Was reinitialized: 48000Hz/1ch/s16le
[format] Changing sample format from little-endian 16-bit signed int to big-endian 8-bit signed int
[libaf] Removing filter format
[dummy] Was reinitialized: 48000Hz/1ch/s16le
Forcing audio preload to 0, max pts correction to 0.
[New Thread 0x40800950 (LWP 29791)]
v4l2: going to capture
[New Thread 0x41001950 (LWP 29792)]
*** [pp] Exporting mp_image_t, 320x240x12bpp YUV planar, 115200 bytes

Skipping frame!
*** [lavc] Allocating mp_image_t, 320x240x12bpp YUV planar, 115200 bytesms 0/0 D/B/S 0/1/1
*** [expand] Direct Rendering mp_image_t, 320x240x12bpp YUV planar, 115200 bytes
get_path('subfont.ttf') -> '/home/schorpp/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Increasing filtered audio buffer size from 0 to 3136 A-V:0.000 [0:0] A/Vms 0/12 D/B/S 0/1/1
Muxer frame buffer sending 2 frame(s) to the muxer.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2ac304741300 (LWP 29786)]
0x00002ac303e20d3d in _int_free () from /lib/libc.so.6
(gdb) bt
#0  0x00002ac303e20d3d in _int_free () from /lib/libc.so.6
#1  0x00002ac303e24bdc in free () from /lib/libc.so.6
#2  0x00000000004c9146 in ds_fill_buffer (ds=0xfbda30) at demuxer.h:265
#3  0x00000000004c9795 in ds_get_packet (ds=0xfbda30, start=0x7fffa9ab31b0) at demuxer.c:535
#4  0x00000000005111cd in video_read_frame (sh_video=0xfbe0c0, frame_time_ptr=0x7fffa9ab31bc, start=0x7fffa9ab31b0,
   force_fps=0) at video.c:549
#5  0x000000000043b246 in main (argc=<value optimized out>, argv=<value optimized out>) at mencoder.c:1241
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x2ac303e20d1d to 0x2ac303e20d5d:
0x00002ac303e20d1d <_int_free+973>:     jne    0x2ac303e20fac <_int_free+1628>
0x00002ac303e20d23 <_int_free+979>:     and    $0x2,%ebx
0x00002ac303e20d26 <_int_free+982>:     je     0x2ac303e209ea <_int_free+154>
0x00002ac303e20d2c <_int_free+988>:     nopl   0x0(%rax)
0x00002ac303e20d30 <_int_free+992>:     callq  0x2ac303de0920 <abort>
0x00002ac303e20d35 <_int_free+997>:     mov    0x10(%r15),%rdx
0x00002ac303e20d39 <_int_free+1001>:    mov    0x18(%r15),%rax
0x00002ac303e20d3d <_int_free+1005>:    cmp    %r15,0x18(%rdx)
0x00002ac303e20d41 <_int_free+1009>:    je     0x2ac303e20f50 <_int_free+1536>
0x00002ac303e20d47 <_int_free+1015>:    mov    0x2e43b7(%rip),%ebx        # 0x2ac304105104 <check_action>
0x00002ac303e20d4d <_int_free+1021>:    mov    %ebx,%eax
0x00002ac303e20d4f <_int_free+1023>:    and    $0x5,%eax
0x00002ac303e20d52 <_int_free+1026>:    cmp    $0x5,%eax
0x00002ac303e20d55 <_int_free+1029>:    je     0x2ac303e20eae <_int_free+1374>
0x00002ac303e20d5b <_int_free+1035>:    test   $0x1,%bl
End of assembler dump.
(gdb) bt full
#0  0x00002ac303e20d3d in _int_free () from /lib/libc.so.6
No symbol table info available.
#1  0x00002ac303e24bdc in free () from /lib/libc.so.6
No symbol table info available.
#2  0x00000000004c9146 in ds_fill_buffer (ds=0xfbda30) at demuxer.h:265
       demux = (demuxer_t *) 0xfbc810
#3  0x00000000004c9795 in ds_get_packet (ds=0xfbda30, start=0x7fffa9ab31b0) at demuxer.c:535
       len = <value optimized out>
#4  0x00000000005111cd in video_read_frame (sh_video=0xfbe0c0, frame_time_ptr=0x7fffa9ab31bc, start=0x7fffa9ab31b0,
   force_fps=0) at video.c:549
       i = <value optimized out>
       pos = <value optimized out>
       in_picture = <value optimized out>
       d_video = (demux_stream_t *) 0xfbda30
       demuxer = (demuxer_t *) 0xfbc810
       frame_time = <value optimized out>
       pts1 = <value optimized out>
       pts = <value optimized out>
       picture_coding_type = <value optimized out>
       in_size = <value optimized out>
       video_codec = VIDEO_OTHER
#5  0x000000000043b246 in main (argc=<value optimized out>, argv=<value optimized out>) at mencoder.c:1241
       ve = <value optimized out>
       stream = (stream_t *) 0xfbbe30
       ostream = <value optimized out>
       demuxer = (demuxer_t *) 0xfbc810
       stream2 = <value optimized out>
       demuxer2 = (demuxer_t *) 0x0
       d_audio = (demux_stream_t *) 0xfbd9a0
       d_video = (demux_stream_t *) 0xfbda30
       d_dvdsub = (demux_stream_t *) 0xfbdac0
       sh_audio = (sh_audio_t *) 0xfbf450
       sh_video = (sh_video_t *) 0xfbe0c0
       file_format = 9
       i = 19
       vobsub_writer = (void *) 0x0
---Type <return> to continue, or q <return> to quit---
       frame_data = {start = 0x0, in_size = 0, frame_time = 0, already_read = 0}
       ptimer_start = 3316148439
       audiorate = 2
       videorate = 38
       audiosamples = 3
       videosamples = 3
       skippedframes = 1
       duplicatedframes = 0
       badframes = 1
       mux_a = (muxer_stream_t *) 0x11569a0
       mux_v = (muxer_stream_t *) 0xff4a60
       muxer_f_size = <value optimized out>
       v_pts_corr = 0
       v_timer_corr = -0.0075630024075508118
       filelist = <value optimized out>
       filename = 0x400 <Address 0x400 out of bounds>
       decoded_frameno = 2
       next_frameno = -1
       curfile = 0
       new_srate = 48000
       timer_start = 3316147719
       ao_data = {samplerate = 48000, channels = 1, format = 0, bps = 0, outburst = 512, buffersize = -1, pts = 0}
       aparams = {channels = 1, sample_rate = 48000, bitrate = 64667648, samples_per_frame = 10947, audio_preload = 500}
       aencoder = (audio_encoder_t *) 0x1157cb0
       ve = (vf_instance_t *) 0xff4ba0
(gdb)
(gdb)     



schorpp at tom1:/var/lib/video/iso/vhs$ gdb --args mencoder -tv driver=v4l2:device=/dev/video2:width=320:height=240:input=1:normid=0:alsa:adevice=default:audiorate=48000 -ovc lavc -lavcopts vcodec=libx264:vbitrate=900 -vf pp=lb -ofps 25 -oac lavc -lavcopts acodec=ac3:abitrate=256 -o /dev/null tv://
GNU gdb 6.6.90.20070912-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /usr/local/bin/mencoder -tv driver=v4l2:device=/dev/video2:width=320:height=240:input=1:normid=0:alsa:adevice=default:audiorate=48000 -ovc lavc -lavcopts vcodec=libx264:vbitrate=900 -vf pp=lb -ofps 25 -oac lavc -lavcopts acodec=ac3:abitrate=256 -o /dev/null tv://
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff9bbfe000
[Thread debugging using libthread_db enabled]
MEncoder dev-SVN-r25343-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3200+ (Family: 15, Model: 47, Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

success: format: 9  data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: Hauppauge WinTV USB (PAL/SECAM
Tuner cap:
Tuner rxs:
Capabilites:  video capture  tuner  audio  read/write  streaming
supported norms: 0 = PAL; 1 = PAL-M; 2 = NTSC; 3 = SECAM;
inputs: 0 = Television; 1 = Composite Video Input; 2 = S-Video Input;
Current input: 0
Current format: YVU420
v4l2: current audio mode is : MONO
[New Thread 0x2b421261e300 (LWP 29858)]
[V] filefmt:9  fourcc:0x32315659  size:320x240  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 1 ch, s16le, 768.0 kbit/100.00% (ratio: 96000->96000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [pp=lb]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (320x240 fourcc=34363268 [h264])
[libx264 @ 0xc47040]using cpu capabilities: MMX MMXEXT SSE SSE2 3DNow!
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Forcing audio preload to 0, max pts correction to 0.
[New Thread 0x40800950 (LWP 29871)]
[New Thread 0x41001950 (LWP 29872)]
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:   0.2s      4f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.6s     15f ( 0%) 12.74fps Trem:   0min   0mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
Pos:   0.8s     19f ( 0%) 14.08fps Trem:   0min   0mb  A-V:0.000 [0:0]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b421261e300 (LWP 29858)]
0x00002b4211cfdd3d in _int_free () from /lib/libc.so.6
(gdb) bt
#0  0x00002b4211cfdd3d in _int_free () from /lib/libc.so.6
#1  0x00002b4211d01bdc in free () from /lib/libc.so.6
#2  0x00000000004c9146 in ds_fill_buffer (ds=0xfbda30) at demuxer.h:265
#3  0x00000000004c9795 in ds_get_packet (ds=0xfbda30, start=0x7fff9bbd62d0) at demuxer.c:535
#4  0x00000000005111cd in video_read_frame (sh_video=0xfbe0c0, frame_time_ptr=0x7fff9bbd62dc, start=0x7fff9bbd62d0,
   force_fps=0) at video.c:549
#5  0x000000000043b246 in main (argc=<value optimized out>, argv=<value optimized out>) at mencoder.c:1241
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y

Starting program: /usr/local/bin/mencoder -tv driver=v4l2:device=/dev/video2:width=320:height=240:input=1:normid=0:alsa:adevice=default:audiorate=48000 -ovc lavc -lavcopts vcodec=libx264:vbitrate=900 -vf pp=lb -ofps 25 -oac lavc -lavcopts acodec=ac3:abitrate=256 -o /dev/null tv://
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7fff863fe000
[Thread debugging using libthread_db enabled]
MEncoder dev-SVN-r25343-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3200+ (Family: 15, Model: 47, Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

success: format: 9  data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski at zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: Hauppauge WinTV USB (PAL/SECAM
Tuner cap:
Tuner rxs:
Capabilites:  video capture  tuner  audio  read/write  streaming
supported norms: 0 = PAL; 1 = PAL-M; 2 = NTSC; 3 = SECAM;
inputs: 0 = Television; 1 = Composite Video Input; 2 = S-Video Input;
Current input: 0
Current format: YVU420
v4l2: current audio mode is : MONO
[New Thread 0x2af427ea5300 (LWP 29880)]
[V] filefmt:9  fourcc:0x32315659  size:320x240  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 1 ch, s16le, 768.0 kbit/100.00% (ratio: 96000->96000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [pp=lb]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (320x240 fourcc=34363268 [h264])
[libx264 @ 0xc47040]using cpu capabilities: MMX MMXEXT SSE SSE2 3DNow!
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Forcing audio preload to 0, max pts correction to 0.
[New Thread 0x40800950 (LWP 29885)]
[New Thread 0x41001950 (LWP 29886)]
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
*** glibc detected *** /usr/local/bin/mencoder: malloc(): memory corruption: 0x00000000013dddf0 ***
======= Backtrace: =========
/lib/libc.so.6[0x2af4275859a4]
/lib/libc.so.6(__libc_malloc+0x90)[0x2af427587320]
/usr/local/bin/mencoder[0x53462d]
/usr/local/bin/mencoder(ds_get_next_pts+0x58)[0x4c76c8]
/usr/local/bin/mencoder(video_read_frame+0x6a8)[0x510e58]
/usr/local/bin/mencoder(main+0x1d96)[0x43b246]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2af42752f1c4]
/usr/local/bin/mencoder(sin+0x1b1)[0x438dc9]
======= Memory map: ========
00400000-00a0f000 r-xp 00000000 08:01 522513                             /usr/local/bin/mencoder
00c0e000-00c64000 rw-p 0060e000 08:01 522513                             /usr/local/bin/mencoder
00c64000-0151e000 rw-p 00c64000 00:00 0                                  [heap]
40000000-40001000 ---p 40000000 00:00 0
40001000-40801000 rw-p 40001000 00:00 0
40801000-40802000 ---p 40801000 00:00 0
40802000-41002000 rw-p 40802000 00:00 0
2aaaaaace000-2aaaaaadb000 r-xp 00000000 08:01 1829063                    /lib/libgcc_s.so.1
2aaaaaadb000-2aaaaacdb000 ---p 0000d000 08:01 1829063                    /lib/libgcc_s.so.1
2aaaaacdb000-2aaaaacdc000 rw-p 0000d000 08:01 1829063                    /lib/libgcc_s.so.1
2aaaac000000-2aaaac021000 rw-p 2aaaac000000 00:00 0
2aaaac021000-2aaab0000000 ---p 2aaaac021000 00:00 0
2af42475a000-2af424777000 r-xp 00000000 08:01 1829097                    /lib/ld-2.7.so
2af424777000-2af42477a000 rw-p 2af424777000 00:00 0
2af42477a000-2af424781000 r--s 00000000 08:01 571396                     /usr/lib/gconv/gconv-modules.cache
2af424781000-2af424782000 rw-p 2af424781000 00:00 0
2af424782000-2af424783000 rw-s 00000000 00:08 294915                     /SYSV0056a4d7 (deleted)
2af424783000-2af424784000 r--s 80000000 00:0f 7067                       /dev/snd/pcmC0D0c
2af424784000-2af424785000 rw-s 81000000 00:0f 7067                       /dev/snd/pcmC0D0c
2af424785000-2af424795000 rw-s 00000000 00:0f 7067                       /dev/snd/pcmC0D0c
...
2af429035000-2af42905b000 rw-s 00000000 00:0f 62293                      /dev/video2
2af42905b000-2af429081000 rw-s 00026000 00:0f 62293                      /dev/video2
2af429081000-2af4290a7000 rw-s 0004c000 00:0f 62293                      /dev/video2
2af4290a7000-2af42949e000 rw-p 2af4290a7000 00:00 0
7fff86332000-7fff8634f000 rw-p 7ffffffe2000 00:00 0                      [stack]
7fff863fe000-7fff86400000 r-xp 7fff863fe000 00:00 0                      [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x2af427ea5300 (LWP 29880)]
0x00002af427542fd5 in raise () from /lib/libc.so.6
(gdb)
(gdb)
(gdb)
(gdb) bt
#0  0x00002af427542fd5 in raise () from /lib/libc.so.6
#1  0x00002af427544a30 in abort () from /lib/libc.so.6
#2  0x00002af42757da8b in __libc_message () from /lib/libc.so.6
#3  0x00002af4275859a4 in _int_malloc () from /lib/libc.so.6
#4  0x00002af427587320 in malloc () from /lib/libc.so.6
#5  0x000000000053462d in demux_tv_fill_buffer (demux=0xfbc810, ds=0xfbda30) at ../libmpdemux/demuxer.h:212
#6  0x00000000004c76c8 in ds_get_next_pts (ds=0xfbda30) at demuxer.c:595
#7  0x0000000000510e58 in video_read_frame (sh_video=0xfbe0c0, frame_time_ptr=0x7fff8634ca4c, start=0x7fff8634ca40,
   force_fps=0) at video.c:575
#8  0x000000000043b246 in main (argc=<value optimized out>, argv=<value optimized out>) at mencoder.c:1241
(gdb) up
#1  0x00002af427544a30 in abort () from /lib/libc.so.6
(gdb) up
#2  0x00002af42757da8b in __libc_message () from /lib/libc.so.6
(gdb) up
#3  0x00002af4275859a4 in _int_malloc () from /lib/libc.so.6
(gdb) up
#4  0x00002af427587320 in malloc () from /lib/libc.so.6
(gdb) up
#5  0x000000000053462d in demux_tv_fill_buffer (demux=0xfbc810, ds=0xfbda30) at ../libmpdemux/demuxer.h:212
212       demux_packet_t* dp=(demux_packet_t*)malloc(sizeof(demux_packet_t));
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x53460d to 0x53464d:
0x000000000053460d <demux_tv_fill_buffer+1149>: add    %al,(%rax)
0x000000000053460f <demux_tv_fill_buffer+1151>: add    %al,(%rax)
0x0000000000534611 <demux_tv_fill_buffer+1153>: loopne 0x5345d6 <demux_tv_fill_buffer+1094>
0x0000000000534613 <demux_tv_fill_buffer+1155>: mov    $0xc3e0000000000000,%r14
0x000000000053461d <demux_tv_fill_buffer+1165>: callq  *0x28(%rdx)
0x0000000000534620 <demux_tv_fill_buffer+1168>: mov    $0x48,%edi
0x0000000000534625 <demux_tv_fill_buffer+1173>: mov    %eax,%r13d
0x0000000000534628 <demux_tv_fill_buffer+1176>: callq  0x437b18 <malloc at plt>
0x000000000053462d <demux_tv_fill_buffer+1181>: mov    0x91e95d(%rip),%edx        # 0xe52f90 <correct_pts>
0x0000000000534633 <demux_tv_fill_buffer+1187>: mov    %rax,%r12
0x0000000000534636 <demux_tv_fill_buffer+1190>: mov    %r13d,(%rax)
0x0000000000534639 <demux_tv_fill_buffer+1193>: movq   $0x0,0x40(%rax)
0x0000000000534641 <demux_tv_fill_buffer+1201>: mov    $0x89b448,%eax
0x0000000000534646 <demux_tv_fill_buffer+1206>: movq   $0x0,0x20(%r12)
End of assembler dump.
(gdb) info all-registers
rax            0x0      0
rbx            0xfbc810 16500752
rcx            0xffffffffffffffff       -1
rdx            0x6      6
rsi            0x74b8   29880
rdi            0x74b8   29880
rbp            0xfbdb70 0xfbdb70
rsp            0x7fff8634c750   0x7fff8634c750
r8             0x0      0
r9             0x2af42762f2e0   47228121182944
r10            0x8      8
r11            0x206    518
r12            0xfbda30 16505392
r13            0x2a300  172800
r14            0xc3e0000000000000       -4332462841530417152
r15            0xc3e0000000000000       -4332462841530417152
rip            0x53462d 0x53462d <demux_tv_fill_buffer+1181>
eflags         0x206    [ PF IF ]
cs             0x33     51
ss             0x2b     43
ds             0x0      0
es             0x0      0
fs             0x0      0
gs             0x0      0
st0            -inf     (raw 0xffff0000000000000000)
st1            -nan(0x1f1f1f1f1f1f1f1f) (raw 0xffff1f1f1f1f1f1f1f1f)
st2            -nan(0x3e003e003e003e)   (raw 0xffff003e003e003e003e)
st3            -nan(0x3e003e003e003e)   (raw 0xffff003e003e003e003e)
st4            -nan(0x1f001f001f001f)   (raw 0xffff001f001f001f001f)
st5            -nan(0x3e003e003e003e)   (raw 0xffff003e003e003e003e)
st6            -nan(0x3e003e003e003e)   (raw 0xffff003e003e003e003e)
st7            -nan(0x1000100010001)    (raw 0xffff0001000100010001)
fctrl          0x37f    895
fstat          0x0      0
ftag           0xffff   65535
fiseg          0x0      0
---Type <return> to continue, or q <return> to quit---
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {v4_float = {0x5a, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0, 0x0, 0xb4, 0x42,
   0x0 <repeats 12 times>}, v8_int16 = {0x0, 0x42b4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x42b40000, 0x0, 0x0,
   0x0}, v2_int64 = {0x42b40000, 0x0}, uint128 = 0x00000000000000000000000042b40000}
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
 uint128 = 0x00000000000000000000000000000000}
xmm2           {v4_float = {0x3, 0xfffffe40, 0x0, 0x0}, v2_double = {0x8000000000000000, 0x0}, v16_int8 = {0x74, 0x96,
   0x5f, 0x40, 0x0, 0x0, 0xe0, 0xc3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x9674, 0x405f, 0x0, 0xc3e0,
   0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x405f9674, 0xc3e00000, 0x0, 0x0}, v2_int64 = {0xc3e00000405f9674, 0x0},
 uint128 = 0x0000000000000000c3e00000405f9674}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x81, 0xb1, 0x7e, 0x3d,
   0x0 <repeats 12 times>}, v8_int16 = {0xb181, 0x3d7e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x3d7eb181, 0x0, 0x0,
   0x0}, v2_int64 = {0x3d7eb181, 0x0}, uint128 = 0x0000000000000000000000003d7eb181}
xmm4           {v4_float = {0x15c28, 0x2, 0x12d279, 0x1b6ae1}, v2_double = {0x3, 0x8000000000000000}, v16_int8 = {0x7b,
   0x14, 0xae, 0x47, 0xe1, 0x7a, 0xc, 0x40, 0xc8, 0x93, 0x96, 0x49, 0x8, 0x57, 0xdb, 0x49}, v8_int16 = {0x147b, 0x47ae,
   0x7ae1, 0x400c, 0x93c8, 0x4996, 0x5708, 0x49db}, v4_int32 = {0x47ae147b, 0x400c7ae1, 0x499693c8, 0x49db5708},
 v2_int64 = {0x400c7ae147ae147b, 0x49db5708499693c8}, uint128 = 0x49db5708499693c8400c7ae147ae147b}
xmm5           {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x1, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0,
   0x3f, 0xa0, 0x1, 0x0, 0x0, 0xa0, 0x1, 0x0, 0x0}, v8_int16 = {0x0, 0x0, 0x0, 0x3ff0, 0x1a0, 0x0, 0x1a0, 0x0},
 v4_int32 = {0x0, 0x3ff00000, 0x1a0, 0x1a0}, v2_int64 = {0x3ff0000000000000, 0x1a0000001a0},
 uint128 = 0x000001a0000001a03ff0000000000000}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xbb, 0x99, 0x3, 0x0, 0xbb, 0x99,
   0x3, 0x0, 0xbb, 0x99, 0x3, 0x0, 0xbb, 0x99, 0x3, 0x0}, v8_int16 = {0x99bb, 0x3, 0x99bb, 0x3, 0x99bb, 0x3, 0x99bb,
   0x3}, v4_int32 = {0x399bb, 0x399bb, 0x399bb, 0x399bb}, v2_int64 = {0x399bb000399bb, 0x399bb000399bb},
 uint128 = 0x000399bb000399bb000399bb000399bb}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0xd7, 0xa, 0x0, 0x0, 0x69, 0xa, 0x0,
   0x0, 0x6e, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0xad7, 0x0, 0xa69, 0x0, 0x96e, 0x0, 0x0, 0x0}, v4_int32 = {
   0xad7, 0xa69, 0x96e, 0x0}, v2_int64 = {0xa6900000ad7, 0x96e}, uint128 = 0x000000000000096e00000a6900000ad7}
xmm8           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1,
   0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0}, v8_int16 = {0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1}, v4_int32 = {
   0x10001, 0x10001, 0x10001, 0x10001}, v2_int64 = {0x1000100010001, 0x1000100010001},
 uint128 = 0x00010001000100010001000100010001}
---Type <return> to continue, or q <return> to quit---
xmm9           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x30, 0x67, 0xc7, 0x93, 0x57, 0xf3,
   0x2e, 0x3d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x6730, 0x93c7, 0xf357, 0x3d2e, 0x0, 0x0, 0x0, 0x0},
 v4_int32 = {0x93c76730, 0x3d2ef357, 0x0, 0x0}, v2_int64 = {0x3d2ef35793c76730, 0x0},
 uint128 = 0x00000000000000003d2ef35793c76730}
xmm10          {v4_float = {0x55500000, 0x1, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x55, 0x55, 0x55, 0x55, 0x55,
   0x55, 0xe5, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x5555, 0x5555, 0x5555, 0x3fe5, 0x0, 0x0, 0x0,
   0x0}, v4_int32 = {0x55555555, 0x3fe55555, 0x0, 0x0}, v2_int64 = {0x3fe5555555555555, 0x0},
 uint128 = 0x00000000000000003fe5555555555555}
xmm11          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0}, v2_int64 = {0x0, 0x0},
 uint128 = 0x00000000000000000000000000000000}
xmm12          {v4_float = {0x0, 0x4b, 0x0, 0x0}, v2_double = {0x5ffffffffff, 0x0}, v16_int8 = {0x2c, 0xfd, 0xff, 0xff,
   0xff, 0xff, 0x97, 0x42, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0xfd2c, 0xffff, 0xffff, 0x4297, 0x0,
   0x0, 0x0, 0x0}, v4_int32 = {0xfffffd2c, 0x4297ffff, 0x0, 0x0}, v2_int64 = {0x4297fffffffffd2c, 0x0},
 uint128 = 0x00000000000000004297fffffffffd2c}
xmm13          {v4_float = {0x0, 0x1, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x58, 0x55, 0x55,
   0xe5, 0x3f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x5800, 0x5555, 0x3fe5, 0x0, 0x0, 0x0, 0x0},
 v4_int32 = {0x58000000, 0x3fe55555, 0x0, 0x0}, v2_int64 = {0x3fe5555558000000, 0x0},
 uint128 = 0x00000000000000003fe5555558000000}
xmm14          {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x58, 0x55, 0x55,
   0x35, 0xbe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x5800, 0x5555, 0xbe35, 0x0, 0x0, 0x0, 0x0},
 v4_int32 = {0x58000000, 0xbe355555, 0x0, 0x0}, v2_int64 = {0xbe35555558000000, 0x0},
 uint128 = 0x0000000000000000be35555558000000}
xmm15          {v4_float = {0x0, 0x14, 0x0, 0x0}, v2_double = {0x8000001, 0x0}, v16_int8 = {0x0, 0x0, 0x0, 0x2, 0x0, 0x0,
   0xa0, 0x41, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0, 0x200, 0x0, 0x41a0, 0x0, 0x0, 0x0, 0x0},
 v4_int32 = {0x2000000, 0x41a00000, 0x0, 0x0}, v2_int64 = {0x41a0000002000000, 0x0},
 uint128 = 0x000000000000000041a0000002000000}
mxcsr          0x1fa1   [ IE PE IM DM ZM OM UM PM ]
(gdb)
(gdb) bt full
#0  0x00002af427542fd5 in raise () from /lib/libc.so.6
No symbol table info available.
#1  0x00002af427544a30 in abort () from /lib/libc.so.6
No symbol table info available.
#2  0x00002af42757da8b in __libc_message () from /lib/libc.so.6
No symbol table info available.
#3  0x00002af4275859a4 in _int_malloc () from /lib/libc.so.6
No symbol table info available.
#4  0x00002af427587320 in malloc () from /lib/libc.so.6
No symbol table info available.
#5  0x000000000053462d in demux_tv_fill_buffer (demux=0xfbc810, ds=0xfbda30) at ../libmpdemux/demuxer.h:212
       tvh = (tvi_handle_t *) 0xfbdb70
       dp = <value optimized out>
#6  0x00000000004c76c8 in ds_get_next_pts (ds=0xfbda30) at demuxer.c:595
       demux = (demuxer_t *) 0xfbc810
#7  0x0000000000510e58 in video_read_frame (sh_video=0xfbe0c0, frame_time_ptr=0x7fff8634ca4c, start=0x7fff8634ca40,
   force_fps=0) at video.c:575
       next_pts = <value optimized out>
       d = <value optimized out>
       d_video = (demux_stream_t *) 0xfbda30
       demuxer = (demuxer_t *) 0xfbc810
       frame_time = 0.0621809997
       pts1 = 3.49355793
       pts = 0
       picture_coding_type = 0
       in_size = 153600
       video_codec = VIDEO_OTHER
#8  0x000000000043b246 in main (argc=<value optimized out>, argv=<value optimized out>) at mencoder.c:1241
       ve = <value optimized out>
       stream = (stream_t *) 0xfbbe30
       ostream = <value optimized out>
       demuxer = (demuxer_t *) 0xfbc810
       stream2 = <value optimized out>
       demuxer2 = (demuxer_t *) 0x0
       d_audio = (demux_stream_t *) 0xfbd9a0
       d_video = (demux_stream_t *) 0xfbda30
---Type <return> to continue, or q <return> to quit---
       d_dvdsub = (demux_stream_t *) 0xfbdac0
       sh_audio = (sh_audio_t *) 0xfbf450
       sh_video = (sh_video_t *) 0xfbe0c0
       file_format = 9
       i = 18
       vobsub_writer = (void *) 0x0
       frame_data = {
 start = 0x148e090 "\037 !\"$$&'&(''('(()****))**+,**,,++,*,+*++*+++,,+-,+*+,-,+**+,+*++*+,-,,++,+-+,,-++,,-,+*)*,****++*+,+++,++,+)*+*+,,-,,+,+*++**+**+*++,+*)***)*++,,,,+,,,--./0123210/.-,++,++,,+,+,+*+*)**+,,,,+*+,+,++*)*"..., in_size = 0,
 frame_time = 0, already_read = 0}
       ptimer_start = 3316399345
       audiorate = 928
       videorate = 1742
       audiosamples = 113
       videosamples = 90
       skippedframes = 0
       duplicatedframes = 0
       badframes = 0
       mux_a = (muxer_stream_t *) 0x11569a0
       mux_v = (muxer_stream_t *) 0xff4a60
       muxer_f_size = <value optimized out>
       v_pts_corr = 0
       v_timer_corr = 0.004260919988155365
       filelist = <value optimized out>
       filename = 0x400 <Address 0x400 out of bounds>
       decoded_frameno = 89
       next_frameno = -1
       curfile = 0
       new_srate = 48000
       timer_start = 3316395144
       ao_data = {samplerate = 48000, channels = 1, format = 0, bps = 0, outburst = 512, buffersize = -1, pts = 0}
       aparams = {channels = 1, sample_rate = 48000, bitrate = 659619840, samples_per_frame = 10996, audio_preload = 500}
       aencoder = (audio_encoder_t *) 0x1157cb0
       ve = (vf_instance_t *) 0xff4ba0
(gdb)
(gdb)                                                                                             

seems the ds_get_next_pts at demuxer.c:595 buffer code is not safe.
I see no land here and use transcode until this is fixed.

y
tom







More information about the MEncoder-users mailing list