VLC 0.9.4 crashes when attempting to read from PVR

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
aegyssus
Blank Cone
Blank Cone
Posts: 28
Joined: 21 Mar 2008 21:50
VLC version: latest
Operating System: Windows / Linux
Location: Montréal, Canada
Contact:

VLC 0.9.4 crashes when attempting to read from PVR

Postby aegyssus » 08 Oct 2008 07:12

Hi,
I configured with:

Code: Select all

./configure --enable-pvr --disable-caca --disable-dbus
Then

Code: Select all

./compile
When I try to open PVR using the GUI it crashes with:

Code: Select all

[stream@feed vlc-0.9.4]$ ./vlc VLC media player 0.9.4 Grishenko [00000001] main libvlc debug: VLC media player - version 0.9.4 Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--enable-pvr' '--disable-caca' '--disable-dbus' [00000001] main libvlc debug: translation test: code is "C" [00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [00000365] pvr access error: Failed to write 0 new capture card settings. Segmentation fault
If I try

Code: Select all

./vlc -I telnet -vvv --color
and then I try this in VLM:

Code: Select all

new ch1 broadcast enabled loop setup ch1 input "pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000" setup ch1 output #transcode{vcodec=WMV2,vb=1000,scale=1,acodec=mp3,ab=96,channels=2,deinterlace}:std{access=mmsh,mux=asfh,dst=:9080/ch1.asf}
It crashes with :

Code: Select all

[stream@feed vlc-0.9.4]$ ./vlc -I telnet -vvv --color VLC media player 0.9.4 Grishenko [00000001] main libvlc debug: VLC media player - version 0.9.4 Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--enable-pvr' '--disable-caca' '--disable-dbus' [00000001] main libvlc debug: translation test: code is "C" [00000001] main libvlc debug: checking builtin modules [00000001] main libvlc debug: checking plugin modules [00000001] main libvlc debug: loading plugins cache file /home/stream/.cache/vlc/plugins-04041e.dat [00000001] main libvlc debug: recursively browsing `/usr/local/lib/vlc' [00000001] main libvlc debug: recursively browsing `./modules' [00000001] main libvlc debug: module bank initialized, found 242 modules [00000001] main libvlc debug: opening config file (/home/stream/.config/vlc/vlcrc) [00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU [00000001] main libvlc debug: looking for memcpy module: 3 candidates [00000001] main libvlc debug: using memcpy module "memcpymmxext" [00000327] main interaction debug: thread 3083836304 (Interaction control) created at priority 0 (interface/interaction.c:382) [00000327] main interaction debug: thread started [00000329] main input debug: Creating an input for 'Media Library' [00000329] main input debug: Input is a meta file: disabling unneeded options [00000329] main input debug: `file/xspf-open:///home/stream/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/stream/.local/share/vlc/ml.xspf' [00000329] main input debug: creating access 'file' path='/home/stream/.local/share/vlc/ml.xspf' [00000330] main access debug: looking for access module: 3 candidates [00000330] access_mmap access debug: opening file /home/stream/.local/share/vlc/ml.xspf [00000330] main access debug: using access module "access_mmap" [00000330] main access debug: TIMER module_Need() : 0.317 ms - Total 0.317 ms / 1 intvls (Avg 0.317 ms) [00000334] main stream debug: Using AStream*Block [00000334] main stream debug: pre buffering [00000334] main stream debug: received first data for our buffer [00000330] access_mmap access debug: at end of memory mapped file [00000329] main input debug: creating demux: access='file' demux='xspf-open' path='/home/stream/.local/share/vlc/ml.xspf' [00000335] main demux debug: looking for demux module: 1 candidate [00000335] playlist demux debug: using XSPF playlist reader [00000335] main demux debug: using demux module "playlist" [00000335] main demux debug: TIMER module_Need() : 0.272 ms - Total 0.272 ms / 1 intvls (Avg 0.272 ms) [00000329] main input debug: `file/xspf-open:///home/stream/.local/share/vlc/ml.xspf' successfully opened [00000350] main xml debug: looking for xml module: 2 candidates [00000350] main xml debug: using xml module "xml" [00000350] main xml debug: TIMER module_Need() : 0.430 ms - Total 0.430 ms / 1 intvls (Avg 0.430 ms) [00000330] access_mmap access debug: at end of memory mapped file [00000335] playlist demux warning: invalid <playlist> attribute:"xmlns:vlc" [00000335] playlist demux debug: parsed 0 tracks successfully [00000350] main xml debug: removing module "xml" [00000329] main input debug: EOF reached [00000329] main input debug: control type=1 [00000335] main demux debug: removing module "playlist" [00000330] main access debug: removing module "access_mmap" [00000329] main input debug: TIMER input launching for 'Media Library' : 2.419 ms - Total 2.419 ms / 1 intvls (Avg 2.419 ms) [00000352] main preparser debug: waiting for thread initialization [00000352] main preparser debug: thread started [00000352] main preparser debug: thread 3071277968 (preparser) created at priority 0 (playlist/thread.c:79) [00000353] main fetcher debug: waiting for thread initialization [00000353] main fetcher debug: thread started [00000353] main fetcher debug: thread 3060788112 (fetcher) created at priority 0 (playlist/thread.c:108) [00000328] main playlist debug: waiting for thread initialization [00000328] main playlist debug: thread started [00000328] main playlist debug: rebuilding array of current - root Playlist [00000328] main playlist debug: rebuild done - 0 items, index -1 [00000328] main playlist debug: thread 3050298256 (playlist) created at priority 0 (playlist/thread.c:117) [00000354] main interface debug: looking for interface module: 1 candidate [00000354] main interface debug: using interface module "hotkeys" [00000354] main interface debug: TIMER module_Need() : 0.158 ms - Total 0.158 ms / 1 intvls (Avg 0.158 ms) [00000354] main interface debug: thread 3039808400 (interface) created at priority 0 (interface/interface.c:168) [00000354] main interface debug: thread started [00000356] main interface debug: looking for interface module: 1 candidate [00000356] main interface debug: using interface module "screensaver" [00000356] main interface debug: TIMER module_Need() : 0.170 ms - Total 0.170 ms / 1 intvls (Avg 0.170 ms) [00000356] main interface debug: thread started [00000356] main interface debug: thread 3029318544 (interface) created at priority 0 (interface/interface.c:168) [00000358] main interface debug: looking for interface module: 18 candidates [00000358] main interface debug: using interface module "signals" [00000358] main interface debug: TIMER module_Need() : 0.185 ms - Total 0.185 ms / 1 intvls (Avg 0.185 ms) [00000358] main interface debug: thread 3008338832 (interface) created at priority 0 (interface/interface.c:168) [00000358] main interface debug: thread started [00000360] main interface debug: looking for interface module: 18 candidates [00000360] main interface debug: creating VLM [00000362] main vlm daemon debug: thread 2997848976 (vlm thread) created at priority 0 (input/vlm.c:112) [00000362] main vlm daemon debug: thread started [00000360] telnet interface: using the VLM interface plugin... [00000360] main interface debug: net: listening to port 4212 [00000360] telnet interface: telnet interface started on interface 4212 [00000360] main interface debug: using interface module "telnet" [00000360] main interface debug: TIMER module_Need() : 0.795 ms - Total 0.795 ms / 1 intvls (Avg 0.795 ms) [00000360] main interface debug: thread 2987359120 (interface) created at priority 0 (interface/interface.c:168) [00000360] main interface debug: thread started [00000360] main interface debug: accepted socket 5 (from socket 4) [00000363] main input debug: Creating an input for '(null)' [00000363] [Media: ch1] main input debug: waiting for thread initialization [00000363] [Media: ch1] main input debug: thread started [00000363] [Media: ch1] main input debug: thread 2976869264 (input) created at priority 10 (input/input.c:370) [00000364] [Media: ch1] main stream output debug: stream=`transcode' [00000365] [Media: ch1] main stream out debug: looking for sout stream module: 1 candidate [00000364] [Media: ch1] main stream output debug: stream=`std' [00000368] [Media: ch1] main stream out debug: looking for sout stream module: 1 candidate [00000368] [Media: ch1] main stream out debug: set config option: sout-standard-access to mmsh [00000368] [Media: ch1] main stream out debug: set config option: sout-standard-mux to asfh [00000368] [Media: ch1] main stream out debug: set config option: sout-standard-dst to :9080/ch1.asf [00000368] [Media: ch1] stream_out_standard stream out debug: creating `mmsh/asfh://:9080/ch1.asf' [00000368] [Media: ch1] stream_out_standard stream out debug: extension is asf [00000368] [Media: ch1] stream_out_standard stream out debug: extension -> mux=asf [00000368] [Media: ch1] stream_out_standard stream out debug: using `mmsh/asfh://:9080/ch1.asf' [00000370] [Media: ch1] main access out debug: looking for sout access module: 1 candidate [00000370] [Media: ch1] main access out: creating httpd [00000370] [Media: ch1] main access out debug: net: listening to port 9080 [00000373] main http server debug: thread 2966379408 (httpd host thread) created at priority 0 (network/httpd.c:1107) [00000373] main http server debug: thread started [00000370] [Media: ch1] main access out debug: using sout access module "access_output_http" [00000370] [Media: ch1] main access out debug: TIMER module_Need() : 0.954 ms - Total 0.954 ms / 1 intvls (Avg 0.954 ms) [00000368] [Media: ch1] stream_out_standard stream out debug: access opened [00000374] [Media: ch1] main mux debug: looking for sout mux module: 1 candidate [00000374] [Media: ch1] mux_asf mux debug: asf muxer opened [00000374] [Media: ch1] mux_asf mux debug: creating asf stream to be used with mmsh [00000374] [Media: ch1] mux_asf mux debug: Packet size 4096 [00000374] [Media: ch1] mux_asf mux debug: meta data: title='', author='', copyright='', comment='', rating='' [00000374] [Media: ch1] main mux debug: using sout mux module "mux_asf" [00000374] [Media: ch1] main mux debug: TIMER module_Need() : 0.700 ms - Total 0.700 ms / 1 intvls (Avg 0.700 ms) [00000364] [Media: ch1] main stream output debug: muxer support adding stream at any time [00000364] [Media: ch1] main stream output debug: muxer prefers to wait for all ES before starting to mux [00000368] [Media: ch1] stream_out_standard stream out debug: mux opened [00000368] [Media: ch1] main stream out debug: using sout stream module "stream_out_standard" [00000368] [Media: ch1] main stream out debug: TIMER module_Need() : 3.044 ms - Total 3.044 ms / 1 intvls (Avg 3.044 ms) [00000365] [Media: ch1] main stream out debug: set config option: sout-transcode-vcodec to WMV2 [00000365] [Media: ch1] main stream out debug: set config option: sout-transcode-vb to 1000 [00000365] [Media: ch1] main stream out debug: set config option: sout-transcode-scale to 1 [00000365] [Media: ch1] main stream out debug: set config option: sout-transcode-acodec to mp3 [00000365] [Media: ch1] main stream out debug: set config option: sout-transcode-ab to 96 [00000365] [Media: ch1] main stream out debug: set config option: sout-transcode-channels to 2 [00000365] [Media: ch1] main stream out debug: set config option: sout-transcode-deinterlace to (null) [00000365] [Media: ch1] stream_out_transcode stream out debug: codec audio=mp3 0Hz 2 channels 96Kb/s [00000365] [Media: ch1] stream_out_transcode stream out debug: codec video=WMV2 0x0 scaling: 1.000000 1000kb/s [00000365] [Media: ch1] main stream out debug: using sout stream module "stream_out_transcode" [00000365] [Media: ch1] main stream out debug: TIMER module_Need() : 5.802 ms - Total 5.802 ms / 1 intvls (Avg 5.802 ms) [00000363] [Media: ch1] main input debug: `pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000' gives access `' demux `' path `pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000' [00000363] [Media: ch1] main input debug: creating demux: access='' demux='' path='pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000' [00000376] [Media: ch1] main demux debug: looking for access_demux module: 1 candidate [00000376] [Media: ch1] main demux debug: TIMER module_Need() : 0.300 ms - Total 0.300 ms / 1 intvls (Avg 0.300 ms) [00000363] [Media: ch1] main input debug: creating access '' path='pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000' [00000379] [Media: ch1] main access debug: looking for access module: 5 candidates [00000379] [Media: ch1] access_directory access error: pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000: No such file or directory [00000379] [Media: ch1] access_mmap access debug: opening file pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000 [00000379] [Media: ch1] access_mmap access warning: cannot open pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000: No such file or directory [00000379] [Media: ch1] access_file access debug: opening file `pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000' [00000379] [Media: ch1] access_file access error: cannot open file pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000 (No such file or directory) [00000379] [Media: ch1] cdda access warning: could not open pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000 [00000379] [Media: ch1] main access debug: TIMER module_Need() : 0.467 ms - Total 0.467 ms / 1 intvls (Avg 0.467 ms) [00000363] [Media: ch1] main input error: open of `pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000' failed: could not create access: no suitable access module [00000365] main stream out debug: destroying chain... (name=transcode) [00000368] main stream out debug: destroying chain... (name=std) [00000374] mux_asf mux debug: Asf muxer closed [00000370] access_output_http access out warning: HTTP sout access cannot seek [00000374] main mux debug: removing module "mux_asf" [00000373] main http server debug: waitpipe: object killed [00000373] main http server debug: thread ended [00000373] main http server debug: thread 2966379408 joined (network/httpd.c:1164) [00000373] main http server debug: HTTP host removed [00000372] main http server debug: no host left, stopping httpd [00000370] access_output_http access out debug: Close [00000370] main access out debug: removing module "access_output_http" [00000368] main stream out debug: removing module "stream_out_standard" [00000368] main stream out debug: destroying chain done [00000365] main stream out debug: removing module "stream_out_transcode" [00000365] main stream out debug: destroying chain done [00000363] [Media: ch1] main input debug: thread ended [00000363] [Media: ch1] main input debug: thread 2976869264 joined (input/vlm.c:854) [00000363] [Media: ch1] main input debug: TIMER input launching for '(null)' : 108.442 ms - Total 108.442 ms / 1 intvls (Avg 108.442 ms) [00000383] main input debug: Creating an input for '(null)' [00000383] [Media: ch1] main input debug: waiting for thread initialization [00000383] [Media: ch1] main input debug: thread started [00000383] [Media: ch1] main input debug: thread 2976869264 (input) created at priority 10 (input/input.c:370) [00000384] [Media: ch1] main stream output debug: stream=`transcode' [00000385] [Media: ch1] main stream out debug: looking for sout stream module: 1 candidate [00000384] [Media: ch1] main stream output debug: stream=`std' [00000387] [Media: ch1] main stream out debug: looking for sout stream module: 1 candidate [00000387] [Media: ch1] main stream out debug: set config option: sout-standard-access to mmsh [00000387] [Media: ch1] main stream out debug: set config option: sout-standard-mux to asfh [00000387] [Media: ch1] main stream out debug: set config option: sout-standard-dst to :9080/ch1.asf [00000387] [Media: ch1] stream_out_standard stream out debug: creating `mmsh/asfh://:9080/ch1.asf' [00000387] [Media: ch1] stream_out_standard stream out debug: extension is asf [00000387] [Media: ch1] stream_out_standard stream out debug: extension -> mux=asf [00000387] [Media: ch1] stream_out_standard stream out debug: using `mmsh/asfh://:9080/ch1.asf' [00000388] [Media: ch1] main access out debug: looking for sout access module: 1 candidate [00000388] [Media: ch1] main access out: creating httpd [00000388] [Media: ch1] main access out debug: net: listening to port 9080 [00000390] main http server debug: thread 2966379408 (httpd host thread) created at priority 0 (network/httpd.c:1107) [00000390] main http server debug: thread started [00000388] [Media: ch1] main access out debug: using sout access module "access_output_http" [00000388] [Media: ch1] main access out debug: TIMER module_Need() : 0.930 ms - Total 0.930 ms / 1 intvls (Avg 0.930 ms) [00000387] [Media: ch1] stream_out_standard stream out debug: access opened [00000391] [Media: ch1] main mux debug: looking for sout mux module: 1 candidate [00000391] [Media: ch1] mux_asf mux debug: asf muxer opened [00000391] [Media: ch1] mux_asf mux debug: creating asf stream to be used with mmsh [00000391] [Media: ch1] mux_asf mux debug: Packet size 4096 [00000391] [Media: ch1] mux_asf mux debug: meta data: title='', author='', copyright='', comment='', rating='' [00000391] [Media: ch1] main mux debug: using sout mux module "mux_asf" [00000391] [Media: ch1] main mux debug: TIMER module_Need() : 0.713 ms - Total 0.713 ms / 1 intvls (Avg 0.713 ms) [00000384] [Media: ch1] main stream output debug: muxer support adding stream at any time [00000384] [Media: ch1] main stream output debug: muxer prefers to wait for all ES before starting to mux [00000387] [Media: ch1] stream_out_standard stream out debug: mux opened [00000387] [Media: ch1] main stream out debug: using sout stream module "stream_out_standard" [00000387] [Media: ch1] main stream out debug: TIMER module_Need() : 3.197 ms - Total 3.197 ms / 1 intvls (Avg 3.197 ms) [00000385] [Media: ch1] main stream out debug: set config option: sout-transcode-vcodec to WMV2 [00000385] [Media: ch1] main stream out debug: set config option: sout-transcode-vb to 1000 [00000385] [Media: ch1] main stream out debug: set config option: sout-transcode-scale to 1 [00000385] [Media: ch1] main stream out debug: set config option: sout-transcode-acodec to mp3 [00000385] [Media: ch1] main stream out debug: set config option: sout-transcode-ab to 96 [00000385] [Media: ch1] main stream out debug: set config option: sout-transcode-channels to 2 [00000385] [Media: ch1] main stream out debug: set config option: sout-transcode-deinterlace to (null) [00000385] [Media: ch1] stream_out_transcode stream out debug: codec audio=mp3 0Hz 2 channels 96Kb/s [00000385] [Media: ch1] stream_out_transcode stream out debug: codec video=WMV2 0x0 scaling: 1.000000 1000kb/s [00000385] [Media: ch1] main stream out debug: using sout stream module "stream_out_transcode" [00000385] [Media: ch1] main stream out debug: TIMER module_Need() : 5.801 ms - Total 5.801 ms / 1 intvls (Avg 5.801 ms) [00000383] [Media: ch1] main input debug: `pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000' gives access `' demux `' path `pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000' [00000383] [Media: ch1] main input debug: creating demux: access='' demux='' path='pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000' [00000392] [Media: ch1] main demux debug: looking for access_demux module: 1 candidate [00000392] [Media: ch1] main demux debug: TIMER module_Need() : 0.044 ms - Total 0.044 ms / 1 intvls (Avg 0.044 ms) [00000383] [Media: ch1] main input debug: creating access '' path='pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000' [00000393] [Media: ch1] main access debug: looking for access module: 5 candidates [00000393] [Media: ch1] access_directory access error: pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000: No such file or directory [00000393] [Media: ch1] access_mmap access debug: opening file pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000 [00000393] [Media: ch1] access_mmap access warning: cannot open pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000: No such file or directory [00000393] [Media: ch1] access_file access debug: opening file `pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000' [00000393] [Media: ch1] access_file access error: cannot open file pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000 (No such file or directory) [00000393] [Media: ch1] cdda access warning: could not open pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000 [00000393] [Media: ch1] main access debug: TIMER module_Need() : 0.218 ms - Total 0.218 ms / 1 intvls (Avg 0.218 ms) [00000383] [Media: ch1] main input error: open of `pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000' failed: could not create access: no suitable access module [00000385] main stream out debug: destroying chain... (name=transcode) [00000387] main stream out debug: destroying chain... (name=std) [00000391] mux_asf mux debug: Asf muxer closed [00000388] access_output_http access out warning: HTTP sout access cannot seek [00000391] main mux debug: removing module "mux_asf" [00000390] main http server debug: waitpipe: object killed [00000390] main http server debug: thread ended [00000390] main http server debug: thread 2966379408 joined (network/httpd.c:1164) [00000390] main http server debug: HTTP host removed [00000384] main stream output error: object is not attached [00000389] main http server debug: no host left, stopping httpd [00000388] access_output_http access out debug: Close [00000388] main access out debug: removing module "access_output_http" [00000387] main stream out debug: removing module "stream_out_standard" [00000387] main stream out debug: destroying chain done [00000385] main stream out debug: removing module "stream_out_transcode" [00000385] main stream out debug: destroying chain done [00000383] [Media: ch1] main input debug: thread ended [00000383] [Media: ch1] main input debug: thread 2976869264 joined (input/vlm.c:854) [00000383] [Media: ch1] main input debug: TIMER input launching for '(null)' : 325.657 ms - Total 325.657 ms / 1 intvls (Avg 325.657 ms) [00000385] main stream out debug: destroying chain... (name=(null)) [00000385] main stream out error: object is not attached Segmentation fault
Essentially it says:

Code: Select all

main input error: open of `pvr:/dev/video0:size=512x416:norm=pal:bitrate=7000000:maxbitrate=8000000' failed: could not create access: no suitable access module
What's wrong? It works quite well in vlc-0.8.6i but the reason I try to use it is because I hope the bitrate will be better controlled in the new version.
Many thanks,
aegyssus

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby Jean-Baptiste Kempf » 08 Oct 2008 10:42

vlc --list | grep pvr
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

aegyssus
Blank Cone
Blank Cone
Posts: 28
Joined: 21 Mar 2008 21:50
VLC version: latest
Operating System: Windows / Linux
Location: Montréal, Canada
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby aegyssus » 08 Oct 2008 15:16

Thank you very much for your answer J-B!
Here is the output:

Code: Select all

[stream@feed1 vlc-0.9.4]$ ./vlc --list | grep pvr VLC media player 0.9.4 Grishenko [00000001] main libvlc debug: VLC media player - version 0.9.4 Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--enable-pvr' '--disable-caca' '--disable-dbus' [00000001] main libvlc debug: translation test: code is "C" pvr IVTV MPEG Encoding cards input [stream@feed1 vlc-0.9.4]$
Many thanks for any suggestion!
aegyssus

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby Jean-Baptiste Kempf » 08 Oct 2008 15:24

I think you are forgetting spaces between options and ":"
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

aegyssus
Blank Cone
Blank Cone
Posts: 28
Joined: 21 Mar 2008 21:50
VLC version: latest
Operating System: Windows / Linux
Location: Montréal, Canada
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby aegyssus » 08 Oct 2008 15:54

Merci pour ton aide J-B!

Maybe it's worthy to mention that I am running on Fedora 9.
So, I launched VLC for VLM:

Code: Select all

./vlc -I telnet -vvv
and then I added spaces before colons:

Code: Select all

[stream@feed1 ~]$ telnet localhost 4212 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Password: Welcome, Master > > new ch3 broadcast enabled loop > setup ch3 input "pvr :/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000" > setup ch3 output #transcode{vcodec=WMV2,vb=1000,scale=1,acodec=mp3,ab=96,channels=2,deinterlace}:std{access=http,mux=mp4,dst=:9080/raw11.asf} > control ch3 play > Connection closed by foreign host. [stream@feed1 ~]$
I got "connection closed" due to this crash:

Code: Select all

...... [00000363] main input debug: Creating an input for '(null)' [00000363] [Media: ch3] main input debug: waiting for thread initialization [00000363] [Media: ch3] main input debug: thread started [00000363] [Media: ch3] main input debug: thread 2977930128 (input) created at priority 10 (input/input.c:370) [00000364] [Media: ch3] main stream output debug: stream=`transcode' [00000365] [Media: ch3] main stream out debug: looking for sout stream module: 1 candidate [00000364] [Media: ch3] main stream output debug: stream=`std' [00000368] [Media: ch3] main stream out debug: looking for sout stream module: 1 candidate [00000368] [Media: ch3] main stream out debug: set config option: sout-standard-access to http [00000368] [Media: ch3] main stream out debug: set config option: sout-standard-mux to mp4 [00000368] [Media: ch3] main stream out debug: set config option: sout-standard-dst to :9080/raw11.asf [00000368] [Media: ch3] stream_out_standard stream out debug: creating `http/mp4://:9080/raw11.asf' [00000368] [Media: ch3] stream_out_standard stream out debug: extension is asf [00000368] [Media: ch3] stream_out_standard stream out debug: extension -> mux=asf [00000368] [Media: ch3] stream_out_standard stream out error: mov and mp4 work only with file output [00000368] [Media: ch3] stream_out_standard stream out debug: using `http/mp4://:9080/raw11.asf' [00000370] [Media: ch3] main access out debug: looking for sout access module: 1 candidate [00000370] [Media: ch3] main access out: creating httpd [00000370] [Media: ch3] main access out debug: net: listening to port 9080 [00000373] main http server debug: thread started [00000373] main http server debug: thread 2967440272 (httpd host thread) created at priority 0 (network/httpd.c:1107) [00000370] [Media: ch3] main access out debug: using sout access module "access_output_http" [00000370] [Media: ch3] main access out debug: TIMER module_Need() : 11.167 ms - Total 11.167 ms / 1 intvls (Avg 11.167 ms) [00000368] [Media: ch3] stream_out_standard stream out debug: access opened [00000374] [Media: ch3] main mux debug: looking for sout mux module: 1 candidate [00000374] [Media: ch3] mux_mp4 mux debug: Mp4 muxer opened [00000374] [Media: ch3] main mux debug: using sout mux module "mux_mp4" [00000374] [Media: ch3] main mux debug: TIMER module_Need() : 4.363 ms - Total 4.363 ms / 1 intvls (Avg 4.363 ms) [00000368] [Media: ch3] stream_out_standard stream out debug: mux opened [00000368] [Media: ch3] main stream out debug: using sout stream module "stream_out_standard" [00000368] [Media: ch3] main stream out debug: TIMER module_Need() : 20.242 ms - Total 20.242 ms / 1 intvls (Avg 20.242 ms) [00000365] [Media: ch3] main stream out debug: set config option: sout-transcode-vcodec to WMV2 [00000365] [Media: ch3] main stream out debug: set config option: sout-transcode-vb to 1000 [00000365] [Media: ch3] main stream out debug: set config option: sout-transcode-scale to 1 [00000365] [Media: ch3] main stream out debug: set config option: sout-transcode-acodec to mp3 [00000365] [Media: ch3] main stream out debug: set config option: sout-transcode-ab to 96 [00000365] [Media: ch3] main stream out debug: set config option: sout-transcode-channels to 2 [00000365] [Media: ch3] main stream out debug: set config option: sout-transcode-deinterlace to (null) [00000365] [Media: ch3] stream_out_transcode stream out debug: codec audio=mp3 0Hz 2 channels 96Kb/s [00000365] [Media: ch3] stream_out_transcode stream out debug: codec video=WMV2 0x0 scaling: 1.000000 1000kb/s [00000365] [Media: ch3] main stream out debug: using sout stream module "stream_out_transcode" [00000365] [Media: ch3] main stream out debug: TIMER module_Need() : 35.540 ms - Total 35.540 ms / 1 intvls (Avg 35.540 ms) [00000363] [Media: ch3] main input debug: `pvr :/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000' gives access `' demux `' path `pvr :/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000' [00000363] [Media: ch3] main input debug: creating demux: access='' demux='' path='pvr :/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000' [00000376] [Media: ch3] main demux debug: looking for access_demux module: 1 candidate [00000376] [Media: ch3] main demux debug: TIMER module_Need() : 8.624 ms - Total 8.624 ms / 1 intvls (Avg 8.624 ms) [00000363] [Media: ch3] main input debug: creating access '' path='pvr :/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000' [00000379] [Media: ch3] main access debug: looking for access module: 5 candidates [00000379] [Media: ch3] access_directory access error: pvr :/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000: No such file or directory [00000379] [Media: ch3] access_mmap access debug: opening file pvr :/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000 [00000379] [Media: ch3] access_mmap access warning: cannot open pvr :/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000: No such file or directory [00000379] [Media: ch3] access_file access debug: opening file `pvr :/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000' [00000379] [Media: ch3] access_file access error: cannot open file pvr :/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000 (No such file or directory) [00000379] [Media: ch3] cdda access warning: could not open pvr :/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000 [00000379] [Media: ch3] main access debug: TIMER module_Need() : 17.557 ms - Total 17.557 ms / 1 intvls (Avg 17.557 ms) [00000363] [Media: ch3] main input error: open of `pvr :/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000' failed: could not create access: no suitable access module [00000365] main stream out debug: destroying chain... (name=transcode) [00000368] main stream out debug: destroying chain... (name=std) [00000374] mux_mp4 mux debug: Close [00000370] access_output_http access out warning: HTTP sout access cannot seek [00000374] mux_mp4 mux debug: movie duration 0s [00000370] access_output_http access out warning: HTTP sout access cannot seek [00000374] mux_mp4 mux warning: read() not supported by access output, won't create a fast start file [00000370] access_output_http access out warning: HTTP sout access cannot seek [00000374] main mux debug: removing module "mux_mp4" [00000373] main http server debug: waitpipe: object killed [00000364] main stream output error: object is not attached [00000373] main http server debug: thread ended [00000373] main http server debug: thread 2967440272 joined (network/httpd.c:1164) [00000373] main http server debug: HTTP host removed [00000372] main http server debug: no host left, stopping httpd [00000370] access_output_http access out debug: Close [00000370] main access out debug: removing module "access_output_http" [00000368] main stream out debug: removing module "stream_out_standard" [00000368] main stream out debug: destroying chain done [00000365] main stream out debug: removing module "stream_out_transcode" [00000365] main stream out debug: destroying chain done [00000363] [Media: ch3] main input debug: thread ended [00000363] [Media: ch3] main input debug: thread 2977930128 joined (input/vlm.c:854) [00000363] [Media: ch3] main input debug: TIMER input launching for '(null)' : 230.168 ms - Total 230.168 ms / 1 intvls (Avg 230.168 ms) Segmentation fault
I may understand I have errors in the syntax but I would expect an error message rather than "segmentation fault".

Again, many thanks for your help,
aegyssus

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby Jean-Baptiste Kempf » 08 Oct 2008 16:41

pvr://
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby Jean-Baptiste Kempf » 08 Oct 2008 16:42

pvr:///dev/video0
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

aegyssus
Blank Cone
Blank Cone
Posts: 28
Joined: 21 Mar 2008 21:50
VLC version: latest
Operating System: Windows / Linux
Location: Montréal, Canada
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby aegyssus » 08 Oct 2008 19:25

Thanks for your support!
Here is what I got:

[00000412] [Media: ch3] main input debug: `pvr:///dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000' gives access `pvr' demux `' path `/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000'
[00000412] [Media: ch3] main input debug: creating demux: access='pvr' demux='' path='/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000'
[00000421] [Media: ch3] main demux debug: looking for access_demux module: 0 candidates
[00000421] [Media: ch3] main demux warning: no access_demux module matched "pvr"
[00000421] [Media: ch3] main demux debug: TIMER module_Need() : 0.049 ms - Total 0.049 ms / 1 intvls (Avg 0.049 ms)
[00000412] [Media: ch3] main input debug: creating access 'pvr' path='/dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000'
[00000422] [Media: ch3] main access debug: looking for access module: 1 candidate
[00000422] [Media: ch3] pvr access error: Cannot open device (No such file or directory).
[00000422] [Media: ch3] main access warning: no access module matching "pvr" could be loaded
[00000422] [Media: ch3] main access debug: TIMER module_Need() : 0.642 ms - Total 0.642 ms / 1 intvls (Avg 0.642 ms)
[00000412] [Media: ch3] main input error: open of `pvr:///dev/video0 :norm=pal :bitrate=2500000 :maxbitrate=3000000' failed: could not create access
[00000414] main stream out debug: destroying chain... (name=transcode)
[00000416] main stream out debug: destroying chain... (name=std)
[00000420] mux_mp4 mux debug: Close
[00000417] access_output_http access out warning: HTTP sout access cannot seek
[00000420] mux_mp4 mux debug: movie duration 0s
[00000417] access_output_http access out warning: HTTP sout access cannot seek
[00000420] mux_mp4 mux warning: read() not supported by access output, won't create a fast start file
[00000417] access_output_http access out warning: HTTP sout access cannot seek
[00000420] main mux debug: removing module "mux_mp4"
[00000419] main http server debug: waitpipe: object killed
[00000413] main stream output error: object is not attached
[00000419] main http server debug: thread ended
[00000419] main http server debug: thread 2968492944 joined (network/httpd.c:1164)
[00000419] main http server debug: HTTP host removed
[00000418] main http server debug: no host left, stopping httpd
[00000417] access_output_http access out debug: Close
[00000417] main access out debug: removing module "access_output_http"
[00000416] main stream out debug: removing module "stream_out_standard"
[00000416] main stream out debug: destroying chain done
[00000414] main stream out debug: removing module "stream_out_transcode"
[00000414] main stream out debug: destroying chain done
[00000412] [Media: ch3] main input debug: thread ended
[00000412] [Media: ch3] main input debug: thread 2978982800 joined (input/vlm.c:854)
[00000412] [Media: ch3] main input debug: TIMER input launching for '(null)' : 204.223 ms - Total 204.223 ms / 1 intvls (Avg 204.223 ms)
[00000414] main stream out debug: destroying chain... (name=(null))
[00000414] main stream out error: object is not attached
[00000416] main stream out debug: destroying chain... (name=(null))
[00000416] main stream out error: object is not attached
Segmentation fault
[stream@feed1 vlc-0.9.4]$
Here is what I get in dmesg:

Code: Select all

lt-vlc[3247]: segfault at 6e6961a9 ip 00244418 sp b2cfafb0 error 4 in libstream_out_standard_plugin.so[243000+3000]
So it says

Code: Select all

pvr access error: Cannot open device (No such file or directory).
like it does not know what's that, despite the fact I configured with --enable-pvr. /dev/video0 has full access for the group the current user belongs to.

Thanks a lot for any idea!
aegyssus

aegyssus
Blank Cone
Blank Cone
Posts: 28
Joined: 21 Mar 2008 21:50
VLC version: latest
Operating System: Windows / Linux
Location: Montréal, Canada
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby aegyssus » 09 Oct 2008 14:10

Is it possible that this issue is related to access rights? I.e. should the current user be the owner of video devices?
Thanks,
aegyssus

aegyssus
Blank Cone
Blank Cone
Posts: 28
Joined: 21 Mar 2008 21:50
VLC version: latest
Operating System: Windows / Linux
Location: Montréal, Canada
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby aegyssus » 09 Oct 2008 16:21

I think it`s not related to that: I made that user the device owner but the problem is still there.
Many thanks for any suggestion,
aegyssus

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby Jean-Baptiste Kempf » 09 Oct 2008 16:38

cat /dev/video > temp.mpg
vlc temp.mpg.
Does it work?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

aegyssus
Blank Cone
Blank Cone
Posts: 28
Joined: 21 Mar 2008 21:50
VLC version: latest
Operating System: Windows / Linux
Location: Montréal, Canada
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby aegyssus » 09 Oct 2008 20:14

Yes, it works very nice. The capture works well.

Maybe it's important to mention that everything works without any issue with 0.8.6i. My problem is the bug that makes the stream to ignore the bitrate while transcoding. According to trac, it's been fixed in 0.9.x....
Many thanks,
aegyssus

aegyssus
Blank Cone
Blank Cone
Posts: 28
Joined: 21 Mar 2008 21:50
VLC version: latest
Operating System: Windows / Linux
Location: Montréal, Canada
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby aegyssus » 10 Oct 2008 15:26

Is this an issue specific to version 0.9.x? Anyone here is using it for streaming from IVTV cards?
I saw that LIVNA did not upgrade their packages VLC-0.9 (there are still at 0.8.6i).
Many thanks,
aegyssus

aegyssus
Blank Cone
Blank Cone
Posts: 28
Joined: 21 Mar 2008 21:50
VLC version: latest
Operating System: Windows / Linux
Location: Montréal, Canada
Contact:

Fixed: VLC 0.9.4 crashes when attempting to read from PVR

Postby aegyssus » 14 Oct 2008 18:31

Ok, so it was all because of FFMPEG package. Given that I've used VLC-0.8.6i in the past and it was installed with yum, several ffmpeg leftovers prevented the new ffmpeg (compiled from sources) to deploy correctly. However, I saw no warning or anything from ffmpeg.
So, I cleaned old FFMPEG and vlc-core packages (yum remove) then I recompiled ffmpeg and vlc and it's now working. I still get this error

Code: Select all

pvr access error: Failed to write 0 new capture card settings
but it does not prevent the streaming to work.
Many thanks for all your help!
aegyssus

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby Jean-Baptiste Kempf » 14 Oct 2008 22:38

If it works, discard the warning :D
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

aegyssus
Blank Cone
Blank Cone
Posts: 28
Joined: 21 Mar 2008 21:50
VLC version: latest
Operating System: Windows / Linux
Location: Montréal, Canada
Contact:

Re: VLC 0.9.4 crashes when attempting to read from PVR

Postby aegyssus » 20 Oct 2008 18:31

Thanks J-B!
Thanks to all the developers for all your support and for providing the community with such a miraculous streaming app!


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests