[vlc] Reading mp4 video from a Netcam

Steve MOREAU moreau at essi.fr
Thu May 26 11:15:39 CEST 2005


Hi,

Reading a previous mail about capturing images with a webcam, I wonder if
I could do the same thing with mine. After looking up to by-pass the
default web interface, I've tryed with avec vlc
http://192.168.29.113:80/mpeg4 and I got the following error trace (sorry
for the length but I don't know what info is relevant for you) :

main debug: creating new input thread
main debug: waiting for thread completion
main debug: `http://192.168.29.118:80/mpeg4' gives access `http' demux `'
path `192.168.29.118:80/mpeg4'
main debug: demux2_New: access='http' demux='' path='192.168.29.118:80/mpeg4'
main debug: looking for access_demux module
main debug: probing 0 candidates
main debug: thread 3184 (input) created at priority 1 (src/input/input.c:228)
main warning: no access_demux module matched "http"
main debug: access2_New: access='http' path='192.168.29.118:80/mpeg4'
main debug: looking for access2 module
main debug: probing 6 candidates
access_http debug: http: server='192.168.29.118' port=80 file='/mpeg4
main debug: net: connecting to '192.168.29.118:80'
main debug: looking for network module
main debug: probing 2 candidates
ipv4 debug: connection in progress
main debug: using network module "ipv4"
main debug: unlocking module "ipv4"
access_http debug: protocol 'HTTP' answer code 206
access_http debug: Server: thttpd/2.20b 10oct00
access_http debug: Content-Type: application/octet-stream
access_http debug: stream size=556
main debug: using access2 module "access_http"
main debug: pre buffering
main debug: received first data for our buffer
main debug: prebuffering done 495 bytes in 0s - 1 kbytes/s
main debug: demux2_New: access='http' demux='' path='192.168.29.118:80/mpeg4'
main debug: looking for demux2 module
main debug: probing 34 candidates
mp4 warning: MP4 plugin discarded (not a valid file)
avi warning: avi module discarded (invalid header)
asf debug: found object guid: 0x75b22630-0x668e-0x11cf-0xa6d900aa0062ce6c
size:431
asf debug: read "header object" subobj:4, reserved1:1, reserved2:2
asf debug: found object guid: 0x8cabdca1-0xa947-0x11cf-0x8ee400c00c205365
size:104
asf debug: read "file properties object"
file_id:0x67452301-0xab89-0xefcd-0x0000000000000000 file_size:4294967295
creation_date:0 data_packets_count:4294967295 play_duration:4294967295
send_duration:16777215 preroll:0 flags:1 min_data_packet_size:2000
max_data_packet_size:2000 max_bitrate:400000
asf debug: found object guid: 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365
size:147
asf debug: read "stream Properties object"
stream_type:0xbc19efc0-0x5b4d-0x11cf-0xa8fd00805f5c442b
error_correction_type:0x20fb5700-0x5b55-0x11cf-0xa8fd00805f5c442b
time_offset:0 type_specific_data_length:69 error_correction_data_length:0
flags:0x1 stream_number:1
asf debug: found object guid: 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365
size:104
asf debug: read "stream Properties object"
stream_type:0xf8699e40-0x5b4d-0x11cf-0xa8fd00805f5c442b
error_correction_type:0xbfc3cd50-0x618f-0x11cf-0x8bb200aa00b4e220
time_offset:0 type_specific_data_length:18 error_correction_data_length:8
flags:0x2 stream_number:2
asf debug: found object guid: 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365
size:46
asf debug: read "header extension object"
reserved1:0xabd3d211-0xa9ba-0x11cf-0x8ee600c00c205365 reserved2:6
header_extension_size:0
asf debug: found object guid: 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c
size:-72057594037927937
asf debug: read "data object"
file_id:0x67452301-0xab89-0xefcd-0x0000000000000000 total data packet:0
reserved:257
asf debug: found 2 streams
main debug: Selecting program id=0
asf debug: added new video stream(ID:1)
asf debug: added new audio stream(codec:0x45,ID:2)
main debug: using demux2 module "asf"
main debug: looking for decoder module
main debug: probing 23 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: postprocessing disabled
ffmpeg debug: using direct rendering
ffmpeg debug: ffmpeg codec (MPEG-4 Video) started
main debug: using decoder module "ffmpeg"
main debug: thread 3336 (decoder) created at priority 0
(src/input/decoder.c:157)
main debug: looking for decoder module
main debug: probing 23 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: ffmpeg codec (G.726 ADPCM Audio) started
main debug: using decoder module "ffmpeg"
main debug: thread 3364 (decoder) created at priority 2
(src/input/decoder.c:157)
main debug: `http://192.168.29.118:80/mpeg4' sucessfully opened

asf warning: cannot peek while getting new packet, EOF ?

main debug: EOF reached
main debug: closing input
asf debug: free asf object 0x8cabdca1-0xa947-0x11cf-0x8ee400c00c205365
asf debug: free asf object 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365
asf debug: free asf object 0xb7dc0791-0xa9b7-0x11cf-0x8ee600c00c205365
asf debug: free asf object 0x5fbf03b5-0xa92e-0x11cf-0x8ee300c00c205365
asf debug: free asf object 0x75b22630-0x668e-0x11cf-0xa6d900aa0062ce6c
asf debug: free asf object 0x75b22636-0x668e-0x11cf-0xa6d900aa0062ce6c
ffmpeg debug: ffmpeg codec (MPEG-4 Video) stopped
main debug: unlocking module "ffmpeg"
main debug: thread 3336 joined (src/input/decoder.c:189)
main debug: killing decoder fourcc `MP4S', 0 PES in FIFO
ffmpeg debug: ffmpeg codec (G.726 ADPCM Audio) stopped
main debug: unlocking module "ffmpeg"
main debug: thread 3364 joined (src/input/decoder.c:189)
main debug: killing decoder fourcc `g726', 0 PES in FIFO
main warning: Program doesn't contain anymore ES, TODO cleaning ?
main debug: unlocking module "asf"
main debug: unlocking module "access_http"
main debug: thread 3184 joined (src/input/input.c:290)
main warning: refcount is 1, delaying before deletion






So I've tryed with mplayer (ok ok shame on me :-)) And it worked with the
following trace (sorry again...) :






MPlayer 1.0pre6-3.4.2 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1

CommandLine:init_freetype
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/root/.mplayer/input.conf'
Can't open input config file /root/.mplayer/input.conf: Aucun fichier ou
répertoire de ce type
Can't open input config file /etc/mplayer/input.conf: Aucun fichier ou
répertoire de ce type
Falling back on default (hardcoded) input config
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : Aucun fichier ou répertoire de
ce type
Setting up LIRC support...
get_path('mpeg4.conf') -> '/root/.mplayer/mpeg4.conf'
Playing http://192.168.29.118:80/mpeg4.
Filename for url is now http://192.168.29.118:80/mpeg4
Filename for url is now http://192.168.29.118:80/mpeg4
Resolving 192.168.29.118 for AF_INET6...
Connecting to server 192.168.29.118[192.168.29.118]:80 ...
--- HTTP DEBUG HEADER --- START ---
protocol:           [HTTP/1.0]
http minor version: [0]
uri:                [(null)]
method:             [(null)]
status code:        [200]
reason phrase:      [OK]
body size:          [481]
Fields:
 0 - Server: thttpd/2.20b 10oct00
 1 - Content-type: application/octet-stream
 2 - Date: Thu, 26 May 2005 16:55:54 GMT
 3 - Last-modified: Thu, 26 May 2005 16:55:54 GMT
 4 - Accept-Ranges: bytes
 5 - Connection: close
--- HTTP DEBUG HEADER --- END ---
Content-Type: [application/octet-stream]
Cache size set to 320 KBytes
Connected to server: 192.168.29.118
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0

Cache fill:  0,00% (0 bytes)
Cache fill:  0,00% (0 bytes)
Cache fill:  5,00% (16384 bytes)
Cache fill: 10,00% (32768 bytes)
Cache fill: 17,50% (57344 bytes)    Checking for YUV4MPEG2
ASF file format detected.
ASF: packets: -1  flags: 1  max_packet_size: 2000  min_packet_size: 2000 
max_bitrate: 400000  preroll: 0
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
======= VIDEO Format ======
  biSize 58
  biWidth 320
  biHeight 240
  biPlanes 1
  biBitCount 24
  biCompression 1395937357='MP4S'
  biSizeImage 230400
Unknown extra header dump: [0] [0] [1] [0] [0] [0] [1] [20] [0] [84] [40]
[fa] [28] [50] [20] [f0] [a3] [1f]
===========================
stream type: guid_audio_stream
stream concealment: guid_audio_conceal_interleave
type: 18 bytes,  stream: 8 bytes  ID: 2
unk1: 0  unk2: 0
FILEPOS=0x167
==> Found audio stream: 2
======= WAVE Format =======
Format Tag: 69 (0x45)
Channels: 1
Samplerate: 8000
avg byte/sec: 5000
Block align: 1
bits/sample: 5
cbSize: 0
===========================
ASF: audio scrambling: 1 x 1 x 2000
Found movie at 0x1E1 - 0x1AE
ASF: 1 audio and 1 video streams found
Auto-selected ASF video ID = 1
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
ASF: Searching for audio stream (id:-1).
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
Auto-selected ASF audio ID = 2
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
VIDEO:  [MP4S]  320x240  24bpp  1000,000 fps    0,0 kbps ( 0,0 kbyte/s)
[V] filefmt:6  fourcc:0x5334504D  size:320x240  fps:1000,00  ftime:=0,0010
get_path('sub/') -> '/root/.mplayer/sub/'
get_path('default.sub') -> '/root/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [acm] Win32/ACM decoders
======= Win32 (ACM) AUDIO Codec init =======
Input format:
======= WAVE Format =======
Format Tag: 69 (0x45)
Channels: 1
Samplerate: 8000
avg byte/sec: 5000
Block align: 1
bits/sample: 5
cbSize: 0
===========================
Output format:
======= WAVE Format =======
Format Tag: 1 (0x1)
Channels: 1
Samplerate: 8000
avg byte/sec: 16000
Block align: 2
bits/sample: 16
cbSize: 0
===========================
Loading codec DLL: 'scg726.acm'
Win32 LoadLibrary failed to load: scg726.acm, /usr/lib/win32/scg726.acm,
/usr/local/lib/win32/scg726.acm
Can't open library scg726.acm
ADecoder init failed :(
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 131072 + 65536 = 196608 bytes for output buffer.
FFmpeg's libavcodec audio codec
INFO: libavcodec init OK!
AUDIO: 8000 Hz, 1 ch, 16 bit (0x10), ratio: 5000->16000 (40,0 kbit)
Selected audio codec: [ffg726] afm:ffmpeg (Sharp G.726 Audio)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
vo_xvmc: X-Video extension 2.2
vo_xvmc: No X-Video MotionCompensation Extension on :0.0
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 8000Hz/1ch/16bit -> 8000Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=8000Hz, nch = 1, format = 0x00000001 and
bps = 2
AF_pre: af format: 2 bps, 1 ch, 8000 hz, little endian signed int
AF_pre: 8000Hz 1ch Signed 16-bit (Little-Endian)
ao2: 8000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: Signed 16-bit (Little-Endian) (requested:
Signed 16-bit (Little-Endian))
audio_setup: using 2 channels (requested: 2)
audio_setup: using 8000 Hz samplerate (requested: 8000)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
AO: [oss] 8000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 8000Hz/1ch/16bit -> 8000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=8000Hz, nch = 1, format = 0x00000001 and
bps = 2
[libaf] Adding filter channels
[channels] Changing number of channels to 2
[dummy] Was reinitialized, rate=8000Hz, nch = 1, format = 0x00000001 and
bps = 2
Starting playback...
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
unknown segment type (rlen): 0x00
[libaf] Reallocating memory in module channels, old len = 0, new len = 65534

avg. framerate: 7 fps
[ffmpeg] aspect_ratio: 1,333333
VDec: vo config request - 320 x 240 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
VO Config (320x240->320x240,flags=0,'MPlayer',0x32315659)
VO: [xv] 320x240 => 320x240 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x35315652 (RV15) packed
Xvideo image format: 0x36315652 (RV16) packed
Xvideo image format: 0x55595659 (YVYU) packed
using Xvideo port 56 for hw scaling
[xv] dx: 0 dy: 0 dw: 320 dh: 256
*** [vo] Allocating (slices) mp_image_t, 320x240x12bpp YUV planar, 115200
bytes



Do you think the stream could be play in videolan ? Otherwise can I do
something to make vlc work, I'm looking at sources for another thing, so I
could look at that too but if you could help me a little bit I would
appreciate :-)

Thanks in advance

Steve

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list