[MPlayer-users] image capture problem - latest version of mplayer

Charles Ross crjb1 at yahoo.com
Mon Jun 14 15:40:32 CEST 2010



Hello again,

Try #2, using the latest version of mplayer.

I'm still having problems capturing images from my 
linksys wireless webcam using the latest version of mplayer.  I use mplayer to capture a still
 image every minute.  After a certain amount of time it just stops 
working (~12-17 hours).  I know this post will be long, but I'm 
including the logs (debug mode 9) of a "good" mplayer image capture and a
 "bad" mplayer image capture.  Hopefully one of the mplayer experts in 
this group can read through the two logs and see if they see anything to
 help me.  So much appreciated for your time...

Charles

Here is my
 mplayer command:
$mplayer mms://192.168.1.19/img/video.asf -frames 1
 -vo jpeg -msglevel 
all=9 

****Good mplayer image capture:
Output:
Config pushed level is now 2
Config pushed level is now 3
Setting frames=1
Setting vo=jpeg
MPlayer SVN-r31393-4.4.3 (C) 2000-2010 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 10
CPU: Intel(R) Atom(TM) CPU  330   @ 1.60GHz (Family: 6, Model: 28, Stepping: 2)
extended cpuid-level: 8
extended cache-info: 33587264
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
Tests of OS support for SSE passed.
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 SSSE3 CMOV
get_path('codecs.conf') -> '/home/cr/.mplayer/codecs.conf'
Reading /home/cr/.mplayer/codecs.conf: Can't open '/home/cr/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: 
CommandLine: 'mms://192.168.1.19/img/video.asf' '-frames' '1' '-vo' 'jpeg' '-msglevel' 'all=9'
init_freetype
get_path('font/font.desc') -> '/home/cr/.mplayer/font/font.desc'
font: can't open file: /home/cr/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/cr/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/cr/.mplayer/input.conf'
Can't open input config file /home/cr/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('video.asf.conf') -> '/home/cr/.mplayer/video.asf.conf'

[[[init getch2]]]

Playing mms://192.168.1.19/img/video.asf.
get_path('sub/') -> '/home/cr/.mplayer/sub/'
Filename for url is now mms://192.168.1.19/img/video.asf
Filename for url is now mms://192.168.1.19/img/video.asf
STREAM_ASF, URL: mms://192.168.1.19/img/video.asf
Trying ASF/UDP...
  ===> ASF/UDP failed
Trying ASF/TCP...
Resolving 192.168.1.19 for AF_INET6...
Couldn't resolve name for AF_INET6: 192.168.1.19
Connecting to server 192.168.1.19[192.168.1.19]: 1755...
connect error: Connection refused
  ===> ASF/TCP failed
Trying ASF/HTTP...
Resolving 192.168.1.19 for AF_INET6...
Couldn't resolve name for AF_INET6: 192.168.1.19
Connecting to server 192.168.1.19[192.168.1.19]: 80...
Request [GET /img/video.asf HTTP/1.0
Accept: */*
User-Agent: NSPlayer/4.1.0.3856
Host: 192.168.1.19:80
Pragma: xClientGUID={c77e7400-738a-11d2-9add-0020af0a3278}
Pragma: no-cache,rate=1.000000,stream-time=0,stream-offset=0:0,request-context=1,max-duration=0
Connection: Close

]
Response [HTTP/1.1 200 OK
Content-type: application/octet-stream
Connection: close

]
=====> ASF Prerecorded
size_confirm mismatch!: 30130 43520
Error while parsing chunk header
  ===> ASF/HTTP failed
Failed, exiting.
Filename for url is now mms://192.168.1.19/img/video.asf
Filename for url is now mms://192.168.1.19/img/video.asf
STREAM_HTTP(2), URL: mms://192.168.1.19/img/video.asf
Resolving 192.168.1.19 for AF_INET6...
Couldn't resolve name for AF_INET6: 192.168.1.19
Connecting to server 192.168.1.19[192.168.1.19]: 80...
Request: [GET /img/video.asf HTTP/1.0
Host: 192.168.1.19
User-Agent: MPlayer/SVN-r31393-4.4.3
Icy-MetaData: 1
Connection: close

]
--- HTTP DEBUG HEADER --- START ---
protocol:           [HTTP/1.1]
http minor version: [1]
uri:                [(null)]
method:             [(null)]
status code:        [200]
reason phrase:      [OK]
body size:          [0]
Fields:
 0 - Content-type: application/octet-stream
 1 - Connection: close
--- HTTP DEBUG HEADER --- END ---
Content-Type: [application/octet-stream]
Cache size set to 320 KBytes
STREAM: [null] mms://192.168.1.19/img/video.asf
STREAM: Description: http streaming
STREAM: Author: Bertrand, Albeu, Arpi? who?
STREAM: Comment: plain http, also used as fallback for many other protocols
CACHE_PRE_INIT: 0 [0] 0  pre:65536  eof:0  
Cache fill: 17.50% (57344 bytes)   
CACHE2_SEEK: 0x0 <= 0x0 (0x0) <= 0x12000  
LAVF_check: ASF format
DEMUXER: freeing libavformat demuxer at 0xa59c528
DEMUXER: freeing AVI demuxer at 0xa59c528
Checking for YUV4MPEG2
DEMUXER: freeing YUV4MPEG2 demuxer at 0xa59c528
ASF file format detected.
stream type: guid_video_stream
stream concealment: unknown guid 0057fb20-555b-cf11-a8fd00805f5c442b
type: 69 bytes,  stream: 0 bytes  ID: 1
unk1: 0  unk2: 0
FILEPOS=0xD4
==> Found video stream: 1
[asfheader] Video stream found, -vid 1
======= VIDEO Format ======
  biSize 58
  biWidth 640
  biHeight 480
  biPlanes 1
  biBitCount 24
  biCompression 1395937357='MP4S'
  biSizeImage 921600
Unknown extra header dump: [0] [0] [1] [0] [0] [0] [1] [20] [0] [84] [5d] [4c] [28] [a0] [21] [e0] [a3] [1f] 
===========================
ASF: packets: -1  flags: 1  max_packet_size: 1000  min_packet_size: 1000  max_bitrate: 12582912  preroll: 0
Found movie at 0x179 - 0x146
ASF: 0 audio and 1 video streams found
 82 00 00 11 5D 00 00 00 00 00 00 B8 0B 81 81 B5
seg 0: 81 B5 00 00 00 00 08 E6 29 00 00 00 00 00 00 C9
Auto-selected ASF video ID = 1
 82 00 00 11 5D 00 00 00 00 00 00 B8 0B 81 81 B5
seg 0: 81 B5 C9 03 00 00 00 D1 03 58 39 65 5E 36 10 0B
unknown segment type (rlen): 0x00  
 82 00 00 11 5D 00 00 00 00 00 00 B8 0B 81 81 B5
seg 0: 81 B5 9A 07 00 00 00 D1 03 C1 C7 6D C2 DE 99 40
unknown segment type (rlen): 0x00  
 82 00 00 11 5D 00 00 00 00 00 00 B8 0B 81 81 B5
seg 0: 81 B5 6B 0B 00 00 00 D1 03 7E 73 07 C2 4A 76 95
unknown segment type (rlen): 0x00  
 82 00 00 11 5D 00 00 00 00 00 00 B8 0B 81 81 B5
seg 0: 81 B5 3C 0F 00 00 00 D1 03 E7 09 9F 6D DE 37 B4
unknown segment type (rlen): 0x00  
 82 00 00 11 5D 00 00 00 00 00 00 B8 0B 81 81 B5
seg 0: 81 B5 0D 13 00 00 00 D1 03 D9 F8 D3 43 B9 F5 02
unknown segment type (rlen): 0x00  
 82 00 00 11 5D 00 00 00 00 00 00 B8 0B 81 81 B5
seg 0: 81 B5 DE 16 00 00 00 D1 03 BF 2E 59 E6 4F 64 DD
unknown segment type (rlen): 0x00  
 82 00 00 11 5D 00 00 00 00 00 00 B8 0B 81 81 B5
seg 0: 81 B5 AF 1A 00 00 00 D1 03 DF 1F ED CB 27 3C CF
unknown segment type (rlen): 0x00  
 82 00 00 11 5D 00 00 00 00 00 00 B8 0B 81 81 B5
seg 0: 81 B5 80 1E 00 00 00 D1 03 54 2B 80 53 0B 06 80
unknown segment type (rlen): 0x00  
 82 00 00 11 5D 00 00 00 00 00 00 B8 0B 81 81 B5
seg 0: 81 B5 51 22 00 00 00 D1 03 F5 65 56 1D 2B 6D 08
unknown segment type (rlen): 0x00  
 82 00 00 11 5D 0D 00 00 00 00 00 B8 0B 81 81 B5
seg 0: 81 B5 22 26 00 00 00 C4 03 82 46 82 D5 18 2D 4C
unknown segment type (rlen): 0x00  
 82 00 00 11 5D A2 00 63 00 00 00 B8 0B 81 01 B6
seg 0: 01 B6 00 00 00 00 08 27 03 00 00 63 00 00 00 27
VIDEO:  [MP4S]  640x480  24bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:6  fourcc:0x5334504D  size:640x480  fps:1000.000  ftime:=0.0010
get_path('sub/') -> '/home/cr/.mplayer/sub/'
jpeg: Parsing suboptions.
jpeg: Progressive JPEG disabled.
jpeg: Baseline JPEG enabled.
jpeg: optimize --> 100
jpeg: smooth --> 0
jpeg: quality --> 75
jpeg: dpi --> 72
jpeg: outdir --> .
jpeg: Suboptions parsed OK.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
 82 00 00 11 5D DF 00 C7 00 00 00 B8 0B 81 01 B7
seg 0: 01 B7 00 00 00 00 08 EA 02 00 00 C7 00 00 00 EA

avg. framerate: 10 fps             
vd_ffmpeg data: b6010000, 35389514, cdc0878b, 3065b8f
[ffmpeg] aspect_ratio: 1.333333
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
Trying filter chain: vo
vo_debug: query(Planar YV12) returned 0x0 (i=0) 
vo_debug: query(Planar I420) returned 0x0 (i=1) 
vo_debug: query(Planar IYUV) returned 0x0 (i=2) 
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
scale: query(Planar YV12) -> 0
scale: query(Planar 444P) -> 0
scale: query(Planar 444P 16-bit little-endian) -> 0
scale: query(Planar 444P 16-bit big-endian) -> 0
scale: query(Planar 422P) -> 0
scale: query(Planar 422P 16-bit little-endian) -> 0
scale: query(Planar 422P 16-bit big-endian) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar 420P 16-bit little-endian) -> 0
scale: query(Planar 420P 16-bit big-endian) -> 0
scale: query(Planar 420P with alpha) -> 0
scale: query(Planar IYUV) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
scale: query(Planar 411P) -> 0
scale: query(Planar NV12) -> 0
scale: query(Planar NV21) -> 0
scale: query(Packed YUY2) -> 0
scale: query(Packed UYVY) -> 0
scale: query(Unknown 0x50303434) -> 0
scale: query(BGRA) -> 0
scale: query(RGBA) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(RGB 24-bit) -> 3
vo_debug: query(Planar YV12) returned 0x441 (i=0) 
scale: query(Planar I420) -> 0
scale: query(Planar 444P) -> 0
scale: query(Planar 444P 16-bit little-endian) -> 0
scale: query(Planar 444P 16-bit big-endian) -> 0
scale: query(Planar 422P) -> 0
scale: query(Planar 422P 16-bit little-endian) -> 0
scale: query(Planar 422P 16-bit big-endian) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar 420P 16-bit little-endian) -> 0
scale: query(Planar 420P 16-bit big-endian) -> 0
scale: query(Planar 420P with alpha) -> 0
scale: query(Planar IYUV) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
scale: query(Planar 411P) -> 0
scale: query(Planar NV12) -> 0
scale: query(Planar NV21) -> 0
scale: query(Packed YUY2) -> 0
scale: query(Packed UYVY) -> 0
scale: query(Unknown 0x50303434) -> 0
scale: query(BGRA) -> 0
scale: query(RGBA) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(RGB 24-bit) -> 3
vo_debug: query(Planar I420) returned 0x441 (i=1) 
scale: query(Planar IYUV) -> 0
scale: query(Planar 444P) -> 0
scale: query(Planar 444P 16-bit little-endian) -> 0
scale: query(Planar 444P 16-bit big-endian) -> 0
scale: query(Planar 422P) -> 0
scale: query(Planar 422P 16-bit little-endian) -> 0
scale: query(Planar 422P 16-bit big-endian) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar 420P 16-bit little-endian) -> 0
scale: query(Planar 420P 16-bit big-endian) -> 0
scale: query(Planar 420P with alpha) -> 0
scale: query(Planar IYUV) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
scale: query(Planar 411P) -> 0
scale: query(Planar NV12) -> 0
scale: query(Planar NV21) -> 0
scale: query(Packed YUY2) -> 0
scale: query(Packed UYVY) -> 0
scale: query(Unknown 0x50303434) -> 0
scale: query(BGRA) -> 0
scale: query(RGBA) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(RGB 24-bit) -> 3
vo_debug: query(Planar IYUV) returned 0x441 (i=2) 
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (640x480->640x480,flags=0,'MPlayer',0x32315659)
scale: query(Planar YV12) -> 0
scale: query(Planar 444P) -> 0
scale: query(Planar 444P 16-bit little-endian) -> 0
scale: query(Planar 444P 16-bit big-endian) -> 0
scale: query(Planar 422P) -> 0
scale: query(Planar 422P 16-bit little-endian) -> 0
scale: query(Planar 422P 16-bit big-endian) -> 0
scale: query(Planar YV12) -> 0
scale: query(Planar I420) -> 0
scale: query(Planar 420P 16-bit little-endian) -> 0
scale: query(Planar 420P 16-bit big-endian) -> 0
scale: query(Planar 420P with alpha) -> 0
scale: query(Planar IYUV) -> 0
scale: query(Planar YVU9) -> 0
scale: query(Planar IF09) -> 0
scale: query(Planar 411P) -> 0
scale: query(Planar NV12) -> 0
scale: query(Planar NV21) -> 0
scale: query(Packed YUY2) -> 0
scale: query(Packed UYVY) -> 0
scale: query(Unknown 0x50303434) -> 0
scale: query(BGRA) -> 0
scale: query(RGBA) -> 0
scale: query(BGR 24-bit) -> 0
scale: query(RGB 24-bit) -> 3
SwScale: scaling 640x480 Planar YV12 to 640x480 RGB 24-bit  
[swscaler @ 0x8a1e1a0]using unscaled yuv420p -> rgb24 special converter
REQ: flags=0x3  req=0x0  
VO: [jpeg] 640x480 => 640x480 RGB 24-bit 
VO: Description: JPEG file
VO: Author: Zoltan Ponekker (pontscho at makacs.poliod.hu)
jpeg: . - Output directory already exists and is writable.
using IPB
*** [vo] Allocating mp_image_t, 640x480x24bpp RGB packed, 921600 bytes
(imgfmt: 52474218, planes: 0xb7572020,(nil),(nil) strides: 1920,0,0, chroma: 0x0, shift: h:0,v:0)
*** [scale] Allocating (slices) mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
(imgfmt: 32315659, planes: 0xb7654020,0xb76b1c20,0xb769f020 strides: 640,320,320, chroma: 320x240, shift: h:1,v:1)
 82 00 00 11 5D 00 01 2B 01 00 00 B8 0B 81 01 B8
seg 0: 01 B8 00 00 00 00 08 C9 02 00 00 2B 01 00 00 C9
vd_ffmpeg data: b6010000, 18980c56, ffffffff, ffffffff
using IPB
*** [scale] Allocating (slices) mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
(imgfmt: 32315659, planes: 0xb7501020,0xb755ec20,0xb754c020 strides: 640,320,320, chroma: 320x240, shift: h:1,v:1)
EOF code: 1    2 ??% ??% ??,?% 0 0 17% 


*** uninit(0xA49)
Uninit video: ffmpeg
DEMUXER: freeing ASF demuxer at 0xa59c528
DEMUXER: freeing sh_video at 0xa59d400

[[[uninit getch2]]]
Config poped level=2
Config poped level=1

*** uninit(0x80)

Exiting... (End of file)
max framesize was 10726 bytes



****Bad mplayer image capture:

Config pushed level is now 2
Config pushed level is now 3
Setting frames=1
Setting vo=jpeg
MPlayer SVN-r31393-4.4.3 (C) 2000-2010 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 10
CPU: Intel(R) Atom(TM) CPU  330   @ 1.60GHz (Family: 6, Model: 28, Stepping: 2)
extended cpuid-level: 8
extended cache-info: 33587264
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
Tests of OS support for SSE passed.
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 SSSE3 CMOV
get_path('codecs.conf') -> '/home/cr/.mplayer/codecs.conf'
Reading /home/cr/.mplayer/codecs.conf: Can't open '/home/cr/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: 
CommandLine: 'mms://192.168.1.19/img/video.asf' '-frames' '1' '-vo' 'jpeg' '-msglevel' 'all=9'
init_freetype
get_path('font/font.desc') -> '/home/cr/.mplayer/font/font.desc'
font: can't open file: /home/cr/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/cr/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/cr/.mplayer/input.conf'
Can't open input config file /home/cr/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('video.asf.conf') -> '/home/cr/.mplayer/video.asf.conf'

[[[init getch2]]]

Playing mms://192.168.1.19/img/video.asf.
get_path('sub/') -> '/home/cr/.mplayer/sub/'
Filename for url is now mms://192.168.1.19/img/video.asf
Filename for url is now mms://192.168.1.19/img/video.asf
STREAM_ASF, URL: mms://192.168.1.19/img/video.asf
Trying ASF/UDP...
  ===> ASF/UDP failed
Trying ASF/TCP...
Resolving 192.168.1.19 for AF_INET6...
Connecting to server 192.168.1.19[192.168.1.19]: 1755...
  ===> ASF/TCP failed
Trying ASF/HTTP...
Resolving 192.168.1.19 for AF_INET6...
Connecting to server 192.168.1.19[192.168.1.19]: 80...
Request [GET /img/video.asf HTTP/1.0
Accept: */*
User-Agent: NSPlayer/4.1.0.3856
Host: 192.168.1.19:80
Pragma: xClientGUID={c77e7400-738a-11d2-9add-0020af0a3278}
Pragma: no-cache,rate=1.000000,stream-time=0,stream-offset=0:0,request-context=1,max-duration=0
Connection: Close
 
]
  ===> ASF/HTTP failed
Filename for url is now mms://192.168.1.19/img/video.asf
Filename for url is now mms://192.168.1.19/img/video.asf
STREAM_HTTP(2), URL: mms://192.168.1.19/img/video.asf
Resolving 192.168.1.19 for AF_INET6...
Connecting to server 192.168.1.19[192.168.1.19]: 80...
Request: [GET /img/video.asf HTTP/1.0
Host: 192.168.1.19
User-Agent: MPlayer/SVN-r31393-4.4.3
Icy-MetaData: 1
Connection: close
 
]


*** uninit(0x8)

[[[uninit getch2]]]
Config poped level=2
Config poped level=1

*** uninit(0x80)

Exiting... (End of file)
max framesize was 0 bytes




      


More information about the MPlayer-users mailing list