Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

[Lug-bg] Въпрос за VLC и webcam streaming over http.


  • Subject: [Lug-bg] Въпрос за VLC и webcam streaming over http.
  • From: Kristian Kirilov <d3v1ous@xxxxxxxxxxxx>
  • Date: Sun, 07 Feb 2010 15:58:37 +0200

Здравейте опитвам се да си стриймвам уеб камерата с VLC. Тъй като работя
под Debian Lenny (без X) VLC-nox от пакет идва без v4l2 поддържка и
камерата не работи. Свалих си последната стабилна версия от
http://www.videolan.org/ и го компилирах от сорс:

./configure  '--enable-v4l' '--enable-v4l2' '--disable-nls'
'--disable-mozilla' '--disable-dbus' '--disable-dbus-control'
'--disable-telepathy' '--disable-lua' '--disable-cdda' '--disable-vcd'
'--disable-dvb' '-disable-libcddb' '-disable-x11' '--disable-glx'
'--disable-opengl' '--disable-xvideo' '--disable-xvmc' '--disable-freetype'
'--disable-fontconfig' '--disable-fb' '--disable-qt4' '--disable-skins2'
'--disable-sdl' '--disable-sdl-image' '--disable-notify'
'--disable-libgcrypt' '--disable-mad' '--enable-avcodec'
'--enable-avformat' '--disable-swscale' '--disable-postproc'
'--disable-a52' '--disable-remoteosd' '--disable-live555'

общо взето това ми трябва да стрийминг-а, или поне така си мисля. Камерата
е някакъв модел на Creative, не знам точно какаъв, но ползва драйвер: 

[0x9ce4bf0] v4l2 demux debug: Trying direct kernel v4l2
[0x9ce4bf0] v4l2 demux debug: opening device '/dev/video0'
[0x9ce4bf0] v4l2 demux debug: V4L2 device: USB Camera (041e:4053) using
driver: zc3xx (version: 2.7.0) on usb-0000:00:10.0-2
[0x9ce4bf0] v4l2 demux debug: the device has the capabilities: (X) Video
Capure, ( ) Audio, ( ) Tuner, ( ) Radio
[0x9ce4bf0] v4l2 demux debug: supported I/O methods are: (X) Read/Write,
(X) Streaming, ( ) Asynchronous
[0x9ce4bf0] v4l2 demux debug: video input 0 (zc3xx) has type: External
analog input *
[0x9ce4bf0] v4l2 demux debug: device supports chroma JPEG [JPEG, JPEG]
[0x9ce4bf0] v4l2 demux debug:     device supports size 320x240
[0x9ce4bf0] v4l2 demux debug:     device supports size 640x480
[0x9ce4bf0] v4l2 demux debug: '/dev/video0' is a video device
[0x9ce4bf0] v4l2 demux debug: Extended control API supported by v4l2
driver

Това е като цяло, командата с която стрйимвам е следната:

cvlc -vvv v4l2:// :vdev=/dev/video0:width=640:height=480
:input-slave=alsa://hw:0,0
:sout="#transcode{vcodec=mp4v,acodec=mpga,vb=3000,ab=256,ab=8}:duplicate{dst=std{access=http,mux=ts,dst=0.0.0.0:1234}}"

и дойде време за проблема :)). Когато работи това нещо картината е
сравнително добра, при звука се забелязват разни дразнещи шумове.. но
основния проблем е, че не винаги работи. Т.е.

[0x9cdf3d0] stream_out_duplicate stream out debug:     - added for output
0
[0x9ce6fa8] access_alsa demux warning: ALSA read overrun (19296 > 16384)
[0x9ce6fa8] access_alsa demux warning: ALSA read overrun (19296 > 16384)
[0x9ce6fa8] access_alsa demux warning: ALSA read overrun (21376 > 16384)
[0x9ce48a8] main mux warning: late buffer for mux input (1520)
[0x9ce6fa8] access_alsa demux warning: ALSA read overrun (45920 > 16384)
[0x9ce6fa8] access_alsa demux warning: ALSA read overrun (29568 > 16384)
[0x9ce48a8] main mux warning: late buffer for mux input (121553)
[0x9ce48a8] main mux warning: late buffer for mux input (97586)
[0x9ce48a8] main mux warning: late buffer for mux input (73602)
[0x9ce48a8] main mux warning: late buffer for mux input (49616)
[0x9ce48a8] mux_ts mux warning: packet with too strange dts
(dts=565708126465,old=565708139668,pcr=565708438052)
[0x9ce48a8] mux_ts mux warning: packet with too strange dts
(dts=565708660662,old=565708693965,pcr=565708693965)
[0x9ce48a8] mux_ts mux debug: adjusting rate at -638128/252805 (3/125)
[0x9cdbfc8] stream_out_transcode stream out debug: late picture skipped
(21798)
[0x9ce6fa8] access_alsa demux warning: ALSA read overrun (27488 > 16384)
[0x9ce48a8] main mux warning: late buffer for mux input (17312)
[0x9ce48a8] mux_ts mux debug: adjusting rate at 128013/511890 (143/40)
[0x9ce48a8] mux_ts mux debug: adjusting rate at 0/383877 (40/0)
[0x9cdbfc8] stream_out_transcode stream out debug: late picture skipped
(81182)
[0x9cdbfc8] stream_out_transcode stream out debug: late picture skipped
(113168)
[0x9cdbfc8] stream_out_transcode stream out debug: late picture skipped
(145089)
[0x9cdbfc8] stream_out_transcode stream out debug: late picture skipped
(209109)
[0x9cdbfc8] stream_out_transcode stream out debug: late picture skipped
(241225)
[0x9cdbfc8] stream_out_transcode stream out debug: late picture skipped
(17216)
[0x9cdbfc8] stream_out_transcode stream out debug: late picture skipped
(282152)
[0x9cdbfc8] stream_out_transcode stream out debug: late picture skipped
(8174)
[0x9cdbfc8] stream_out_transcode stream out debug: late picture skipped
(305404)
[0x9cdbfc8] stream_out_transcode stream out debug: late picture skipped
(49308)

след получаването на известен брой редове от последните, просто не мога да
се вържа към стрийминг сървъра, просто demon-а си работи, но аз по никакъв
начин не мога да гледам това което стриймвам.

Играх си с промяна на biterate и fps, но подобрение няма. 
Ако имате някакви идеи, ще се радвам да ги споделите.

Поздрави
К.Кирилов
_______________________________________________
Lug-bg mailing list
Lug-bg@xxxxxxxxxxxxxxxxxx
http://linux-bulgaria.org/mailman/listinfo/lug-bg


 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.