Closed SigmaHX1 closed 12 years ago
OK, let's try a few things.
First: does the graph work with the current script, or does it crash? It should stay running after you hit OK on the last dialog.
If it crashes, could you change this:
GST_LAUNCH=something...
to this:
GST_LAUNCH=ffmpeg*:5,v4l*:5,soup*:5,videoflip:5
and then run the script and send me your feed.log file?
Also, please send me the outputs of:
apt-cache show v4l2loopback-dkms
gst-inspect-0.10 v4l2sink
gst-inspect-0.10 souphttpsrc
modinfo v4l2loopback
Once the graph works, we can move beyond gst-launch issues and look into why VLC might not be working :-).
I confirm that the script crashes when I hit the "OK" button with "you can now open your videochat app"... it moves to "Disconnected from IP webcam...". I changed my GSTLAUNCH=something to GSTLAUNCH=ffmpeg:5,v4l_:5,soup*:5,videoflip:5 by addind a line after the test for GST LAUNCH, and I get the following answer :
sudo ./prepare-videochat.sh [sudo] password for sigma: Starting: Intent { act=android.intent.action.MAIN cmp=com.pas.webcam/.Rolling } Setting pipeline to PAUSED ... libv4l2: error getting pixformat: Invalid argument Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock ERROR: from element /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc1: Connection terminated unexpectedly Additional debug info: gstsouphttpsrc.c(920): gst_soup_http_src_finished_cb (): /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc1: libsoup status code 7 Execution ended after 72478631 ns. Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ...
More to come with the outputs of what you asked, in two minutes.
And thanks a lot for your support anyway !
Sigma
apt-cache show v4l2loopback-dkms Package: v4l2loopback-dkms Status: install ok installed Priority: extra Section: graphics Installed-Size: 95 Maintainer: IOhannes m zmoelnig (gpg-key at iem) zmoelnig@iem.at Architecture: all Source: v4l2loopback Version: 0.5.0-1 Depends: dkms (>= 2.1.0.0) Description: Source for the v4l2loopback driver (DKMS) This module allows you to create "virtual video devices". Normal (v4l2) applications will read these devices as if they were ordinary video devices, but the video will not be read from e.g. a capture card but instead it is generated by another application. . This package provides the source code for the v4l2loopback kernel modules to be build with dkms. Homepage: http://github.com/umlaeute/v4l2loopback
gst-inspect-0.10 v4l2sink Factory Details: Long name: Video (video4linux2) Sink Class: Sink/Video Description: Displays frames on a video4linux2 device Author(s): Rob Clark rob@ti.com, Rank: none (0)
Plugin Details: Name: video4linux2 Description: elements for Video 4 Linux Filename: /usr/lib/gstreamer-0.10/libgstvideo4linux2.so Version: 0.10.28 License: LGPL Source module: gst-plugins-good Source release date: 2011-03-08 Binary package: GStreamer Good Plugins (Ubuntu) Origin URL: https://launchpad.net/distros/ubuntu/+source/gst-plugins-good0.10
GObject +----GstObject +----GstElement +----GstBaseSink +----GstVideoSink +----GstV4l2Sink
Implemented Interfaces: GstImplementsInterface GstXOverlay GstNavigation GstColorBalance GstVideoOrientation GstPropertyProbe
Pad Templates: SINK template: 'sink' Availability: Always Capabilities: video/x-raw-rgb bpp: 8 depth: 8 red_mask: 224 green_mask: 28 blue_mask: 3 endianness: 1234 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-rgb bpp: 16 depth: 15 red_mask: 31744 green_mask: 992 blue_mask: 31 endianness: 1234 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-rgb bpp: 16 depth: 16 red_mask: 63488 green_mask: 2016 blue_mask: 31 endianness: 1234 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-rgb bpp: 16 depth: 15 red_mask: 31744 green_mask: 992 blue_mask: 31 endianness: 4321 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-rgb bpp: 16 depth: 16 red_mask: 63488 green_mask: 2016 blue_mask: 31 endianness: 4321 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-rgb bpp: 24 depth: 24 red_mask: 255 green_mask: 65280 blue_mask: 16711680 endianness: 4321 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-rgb bpp: 24 depth: 24 red_mask: 16711680 green_mask: 65280 blue_mask: 255 endianness: 4321 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-rgb bpp: 32 depth: 32 red_mask: 255 green_mask: 65280 blue_mask: 16711680 endianness: 4321 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-rgb bpp: 32 depth: 32 red_mask: -16777216 green_mask: 16711680 blue_mask: 65280 endianness: 4321 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-gray bpp: 8 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-yuv format: YVU9 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-yuv format: YV12 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-yuv format: YUY2 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-yuv format: UYVY width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-yuv format: Y42B width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-yuv format: Y41B width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-yuv format: Y41P width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-yuv format: NV12 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-yuv format: NV21 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-yuv format: YUV9 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-yuv format: I420 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-bayer width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] image/jpeg width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] image/jpeg width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-dv systemstream: true width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/mpegts video/x-sonix width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-pwc1 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-pwc2 width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ] video/x-raw-yuv format: YVYU width: [ 1, 32768 ] height: [ 1, 32768 ] framerate: [ 0/1, 100/1 ]
Element Flags: no flags set
Element Implementation: Has change_state() function: 0x7f04e97c4a90 Has custom save_thyself() function: gst_element_save_thyself Has custom restore_thyself() function: gst_element_restore_thyself
Element has no clocking capabilities. Element has no indexing capabilities. Element has no URI handling capabilities.
Pads: SINK: 'sink' Implementation: Has chainfunc(): gst_base_sink_chain Has custom eventfunc(): gst_base_sink_event Has custom queryfunc(): gst_pad_query_default Has custom iterintlinkfunc(): gst_pad_iterate_internal_links_default Has bufferallocfunc(): gst_base_sink_pad_buffer_alloc Has getcapsfunc(): gst_base_sink_pad_getcaps Has setcapsfunc(): gst_base_sink_pad_setcaps Has acceptcapsfunc(): gst_pad_acceptcaps_default Has fixatecapsfunc(): gst_base_sink_pad_fixate Pad Template: 'sink'
Element Properties: name : The name of the object flags: readable, writable String. Default: null Current: "v4l2sink0" preroll-queue-len : Number of buffers to queue during preroll flags: readable, writable Unsigned Integer. Range: 0 - 4294967295 Default: 0 Current: 0 sync : Sync on the clock flags: readable, writable Boolean. Default: true Current: true max-lateness : Maximum number of nanoseconds that a buffer can be late before it is dropped (-1 unlimited) flags: readable, writable Integer64. Range: -1 - 9223372036854775807 Default: -1 Current: 20000000 qos : Generate Quality-of-Service events upstream flags: readable, writable Boolean. Default: false Current: true async : Go asynchronously to PAUSED flags: readable, writable Boolean. Default: true Current: true ts-offset : Timestamp offset in nanoseconds flags: readable, writable Integer64. Range: -9223372036854775808 - 9223372036854775807 Default: 0 Current: 0 enable-last-buffer : Enable the last-buffer property flags: readable, writable Boolean. Default: true Current: true last-buffer : The last buffer received in the sink flags: readable MiniObject of type "GstBuffer" blocksize : Size in bytes to pull per buffer (0 = default) flags: readable, writable Unsigned Integer. Range: 0 - 4294967295 Default: 4096 Current: 4096 render-delay : Additional render delay of the sink in nanoseconds flags: readable, writable Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 0 Current: 0 show-preroll-frame : Whether to render video frames during preroll flags: readable, writable Boolean. Default: true Current: true device : Device location flags: readable, writable String. Default: "/dev/video1" Current: "/dev/video1" device-name : Name of the device flags: readable String. Default: null Current: null device-fd : File descriptor of the device flags: readable Integer. Range: -1 - 2147483647 Default: -1 Current: -1 flags : Device type flags flags: readable Flags "GstV4l2DeviceTypeFlags" Default: 0x00000000, "(none)" Current: 0x00000000, "(none)" (0x00000001): capture - Device supports video capture (0x00000002): output - Device supports video playback (0x00000004): overlay - Device supports video overlay (0x00000010): vbi-capture - Device supports the VBI capture (0x00000020): vbi-output - Device supports the VBI output (0x00010000): tuner - Device has a tuner or modulator (0x00020000): audio - Device has audio inputs or outputs brightness : Picture brightness, or more precisely, the black level flags: readable, writable, controllable Integer. Range: -2147483648 - 2147483647 Default: 0 Current: 0 contrast : Picture contrast or luma gain flags: readable, writable, controllable Integer. Range: -2147483648 - 2147483647 Default: 0 Current: 0 saturation : Picture color saturation or chroma gain flags: readable, writable, controllable Integer. Range: -2147483648 - 2147483647 Default: 0 Current: 0 hue : Hue or color balance flags: readable, writable, controllable Integer. Range: -2147483648 - 2147483647 Default: 0 Current: 0 queue-size : Number of buffers to be enqueud in the driver in streaming mode flags: readable, writable Unsigned Integer. Range: 1 - 16 Default: 12 Current: 12 min-queued-bufs : Minimum number of queued bufs; v4l2sink won't dqbuf if the driver doesn't have more than this number (which normally you shouldn't change) flags: readable, writable Unsigned Integer. Range: 0 - 16 Default: 1 Current: 1 overlay-top : The topmost (y) coordinate of the video overlay; top left corner of screen is 0,0 flags: readable, writable Integer. Range: -2147483648 - 2147483647 Default: 0 Current: 0 overlay-left : The leftmost (x) coordinate of the video overlay; top left corner of screen is 0,0 flags: readable, writable Integer. Range: -2147483648 - 2147483647 Default: 0 Current: 0 overlay-width : The width of the video overlay; default is equal to negotiated image width flags: readable, writable Unsigned Integer. Range: 0 - 4294967295 Default: 0 Current: 0 overlay-height : The height of the video overlay; default is equal to negotiated image height flags: readable, writable Unsigned Integer. Range: 0 - 4294967295 Default: 0 Current: 0 crop-top : The topmost (y) coordinate of the video crop; top left corner of image is 0,0 flags: readable, writable Integer. Range: -2147483648 - 2147483647 Default: 0 Current: 0 crop-left : The leftmost (x) coordinate of the video crop; top left corner of image is 0,0 flags: readable, writable Integer. Range: -2147483648 - 2147483647 Default: 0 Current: 0 crop-width : The width of the video crop; default is equal to negotiated image width flags: readable, writable Unsigned Integer. Range: 0 - 4294967295 Default: 0 Current: 0 crop-height : The height of the video crop; default is equal to negotiated image height flags: readable, writable Unsigned Integer. Range: 0 - 4294967295 Default: 0 Current: 0
gst-inspect-0.10 souphttpsrc Factory Details: Long name: HTTP client source Class: Source/Network Description: Receive data as a client over the network via HTTP using SOUP Author(s): Wouter Cloetens wouter@mind.be Rank: primary (256)
Plugin Details: Name: soup Description: libsoup HTTP client src Filename: /usr/lib/gstreamer-0.10/libgstsouphttpsrc.so Version: 0.10.28 License: LGPL Source module: gst-plugins-good Source release date: 2011-03-08 Binary package: GStreamer Good Plugins (Ubuntu) Origin URL: https://launchpad.net/distros/ubuntu/+source/gst-plugins-good0.10
GObject +----GstObject +----GstElement +----GstBaseSrc +----GstPushSrc +----GstSoupHTTPSrc
Implemented Interfaces: GstURIHandler
Pad Templates: SRC template: 'src' Availability: Always Capabilities: ANY
Element Flags: no flags set
Element Implementation: Has change_state() function: gst_base_src_change_state Has custom save_thyself() function: gst_element_save_thyself Has custom restore_thyself() function: gst_element_restore_thyself
Element has no clocking capabilities. Element has no indexing capabilities.
URI handling capabilities: Element can act as source. Supported URI protocols: http https
Pads: SRC: 'src' Implementation: Has getrangefunc(): gst_base_src_pad_get_range Has custom eventfunc(): gst_base_src_event_handler Has custom queryfunc(): gst_base_src_query Has custom iterintlinkfunc(): gst_pad_iterate_internal_links_default Has getcapsfunc(): gst_base_src_getcaps Has setcapsfunc(): gst_base_src_setcaps Has acceptcapsfunc(): gst_pad_acceptcaps_default Has fixatecapsfunc(): gst_base_src_fixate Pad Template: 'src'
Element Properties: name : The name of the object flags: readable, writable String. Default: null Current: "souphttpsrc0" blocksize : Size in bytes to read per buffer (-1 = default) flags: readable, writable Unsigned Long. Range: 0 - 18446744073709551615 Default: 4096 Current: 4096 num-buffers : Number of buffers to output before sending EOS (-1 = unlimited) flags: readable, writable Integer. Range: -1 - 2147483647 Default: -1 Current: -1 typefind : Run typefind before negotiating flags: readable, writable Boolean. Default: false Current: false do-timestamp : Apply current stream time to buffers flags: readable, writable Boolean. Default: false Current: false location : Location to read from flags: readable, writable String. Default: "" Current: null is-live : Act like a live source flags: readable, writable Boolean. Default: false Current: false user-agent : Value of the User-Agent HTTP request header field flags: readable, writable String. Default: "GStreamer souphttpsrc " Current: "GStreamer souphttpsrc " automatic-redirect : Automatically follow HTTP redirects (HTTP Status Code 3xx) flags: readable, writable Boolean. Default: true Current: true proxy : HTTP proxy server URI flags: readable, writable String. Default: "" Current: "" user-id : HTTP location URI user id for authentication flags: readable, writable String. Default: "" Current: null user-pw : HTTP location URI user password for authentication flags: readable, writable String. Default: "" Current: null proxy-id : HTTP proxy URI user id for authentication flags: readable, writable String. Default: "" Current: null proxy-pw : HTTP proxy URI user password for authentication flags: readable, writable String. Default: "" Current: null cookies : HTTP request cookies flags: readable, writable Boxed pointer of type "GStrv" iradio-mode : Enable internet radio mode (extraction of shoutcast/icecast metadata) flags: readable, writable Boolean. Default: false Current: false iradio-name : Name of the stream flags: readable String. Default: null Current: null iradio-genre : Genre of the stream flags: readable String. Default: null Current: null iradio-url : Homepage URL for radio stream flags: readable String. Default: null Current: null iradio-title : Name of currently playing song flags: readable String. Default: null Current: null timeout : Value in seconds to timeout a blocking I/O (0 = No timeout). flags: readable, writable Unsigned Integer. Range: 0 - 3600 Default: 0 Current: 0 extra-headers : Extra headers to append to the HTTP request flags: readable, writable Boxed pointer of type "GstStructure"
v4l2loopback filename: /lib/modules/2.6.38-14-generic/updates/dkms/v4l2loopback.ko license: GPL author: Vasily Levin, IOhannes m zmoelnig zmoelnig@iem.at, Stefan Diewald stefan.diewald@mytum.de description: V4L2 loopback video device srcversion: D2240C2BC72C65FA4D74CD3 depends: videodev vermagic: 2.6.38-14-generic SMP mod_unload modversions parm: debug:if debug output is enabled, values are 0, 1 or 2 (int) parm: max_buffers:how many buffers should be allocated (int) parm: max_openers:how many users can open loopback device (int) parm: devices:how many devices should be created (int) parm: video_nr:video device numbers (-1=auto, 0=/dev/video0, etc.) (array of int)
Allright. I guess I am done now... What do you think ?
Sigma.
Oops, I messed up my instructions, it seems. Please change GST_DEBUG instead of GST_LAUNCH. From this:
GST_DEBUG=soup*:0,videoflip:0,ffmpegcolorspace:0
to this:
GST_DEBUG=soup*:5,videoflip:5,ffmpegcolorspace:5
Run the script again and send me the feed.log file. In any case, this line bothers me:
ERROR: from element /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc1: Connection terminated unexpectedly
It looks like we can't properly connect to the /videofeed URL for some reason. Enabling debugging info should clear this up a bit, I hope.
Allright Antonio.
Here is what I have in feed.log :
./prepare-videochat.sh: line 211: ffmpeg:5,v4l:5,soup*:5,videoflip:5: command not found
My script now reads :
#
#
#
#
set -e
if [ -n "$1" ]; then FLIP_METHOD=$1 else FLIP_METHOD=none fi
ADB_PATH=/home/sigma/android-sdk-linux/platform-tools/adb if which adb; then ADB=$(which adb) else ADB=$ADB_PATH fi
WIFI_IP=192.168.2.122
PORT=8080
GST_DEBUG=soup*:5,videoflip:5,ffmpegcolorspace:5
V4L2LOOPBACK_DEB_URL=http://ftp.us.debian.org/debian/pool/main/v/v4l2loopback/v4l2loopback-dkms_0.5.0-1_all.deb
V4L2LOOPBACK_DEB_PATH=/tmp/v4l2loopback-dkms.deb
has_kernel_module() { sudo modprobe -q "$1" }
error() { zenity --error --text "$@" exit 1 }
warning() { zenity --warning --text "$@" }
info() { zenity --info --text "$@" }
confirm() { zenity --question --text "$@" }
can_run() {
(test -x "$1" || which "$1") &>/dev/null
}
start_adb() { can_run "$ADB" && "$ADB" start-server }
phone_plugged() { start_adb && test "$("$ADB" get-state)" == "device" }
url_reachable() { curl -sI "$1" >/dev/null }
send_intent() { start_adb && "$ADB" shell am start -a android.intent.action.MAIN -n $@ }
iw_server_is_started() { url_reachable "$VIDEO_URL" }
start_iw_server() { send_intent com.pas.webcam/.Rolling sleep 2s }
if ! has_kernel_module v4l2loopback; then info "The v4l2loopback kernel module is not installed or could not be loaded. I will try to install the kernel module using your distro's package manager. If that doesn't work, please install v4l2loopback manually from github.com/umlaeute/v4l2loopback." if can_run apt-get; then sudo apt-get install dkms wget "$V4L2LOOPBACK_DEB_URL" -O "$V4L2LOOPBACK_DEB_PATH" sudo dpkg -i "$V4L2LOOPBACK_DEB_PATH" elif can_run yaourt; then yaourt -S gst-v4l2loopback yaourt -S v4l2loopback-git fi
if has_kernel_module v4l2loopback; then info "The v4l2loopback kernel module was installed successfully." else error "Could not install the v4l2loopback kernel module through apt-get or yaourt." fi fi
DEVICE=$(ls -1t /dev/video* | head -1)
IP=$WIFI_IP if ! can_run "$ADB"; then warning "adb is not available: you'll have to use Wi-Fi, which will be slower. Next time, please install the Android SDK from developer.android.com/sdk." else while ! phone_plugged && ! confirm "adb is available, but the phone is not plugged in. Are you sure you want to use Wi-Fi (slower)? If you don't, please connect your phone to USB."; do true done if phone_plugged; then "$ADB" forward tcp:$PORT tcp:$PORT IP=127.0.0.1 fi fi
BASE_URL=http://$IP:$PORT VIDEO_URL=$BASE_URL/videofeed AUDIO_URL=$BASE_URL/audio.wav if phone_plugged && ! iw_server_is_started; then
start_iw_server
fi while ! iw_server_is_started; do info "The IP Webcam video feed is not reachable at $VIDEO_URL. Please open IP Webcam in your phone and start the server." done
if !(pactl list | grep -q module-null-sink); then pactl load-module module-null-sink fi
if ! can_run pavucontrol; then info "You don't have pavucontrol. I'll try to install its Debian/Ubuntu package." sudo apt-get install pavucontrol fi if ! pgrep pavucontrol; then info "We will open now pavucontrol. You should leave it open to change the recording device of your video chat program to 'Monitor Null Output'. NOTE: make sure that in 'Output Devices' all devices are listed." pavucontrol & fi
GSTLAUNCH=gst-launch if can_run apt-get; then
GSTLAUNCH=gst-launch
if ! can_run "$GSTLAUNCH"; then
info "You don't have gst-launch. I'll try to install its Debian/Ubuntu package." sudo apt-get install gstreamer-tools fi elif can_run pacman; then
GSTLAUNCH=gst-launch-0.10
if ! can_run "$GSTLAUNCH"; then
info "You don't have gst-launch. I'll try to install its Arch package." sudo pacman -S gstreamer0.10 gstreamer0.10-good-plugins fi fi if ! can_run "$GSTLAUNCH"; then error "Could not find gst-launch. Exiting." exit 1 fi
set +e info "Using IP Webcam as webcam/microphone. You can now open your videochat app." "$GSTLAUNCH" -vt --gst-plugin-spew --gst-debug="$GST_DEBUG" \ souphttpsrc location="http://$IP:$PORT/videofeed" do-timestamp=true is-live=true \ ! multipartdemux \ ! jpegdec \ ! ffmpegcolorspace ! "video/x-raw-yuv, format=(fourcc)YV12" \ ! videoflip method="$FLIP_METHOD" ! videorate \ ! v4l2sink device="$DEVICE" \ souphttpsrc location="http://$IP:$PORT/audio.wav" do-timestamp=true is-live=true \ ! wavparse ! audioconvert \ ! volume volume=3 ! rglimiter \ ! pulsesink device=null sync=false \ 2>&1 | tee feed.log
info "Disconnected from IP Webcam. Have a nice day!"
And I had the following messages in the command line :
Starting: Intent { act=android.intent.action.MAIN cmp=com.pas.webcam/.Rolling }
2235
0:00:00.017278103 [332m 2761[00m 0x1417080 [36mDEBUG [00m [00m souphttpsrc gstsouphttpsrc.c:1476:plugin_init:[00m binding text domain gst-plugins-good-0.10 to locale dir /usr/share/locale
0:00:00.036864741 [332m 2761[00m 0x1417080 [36mDEBUG [00m [00m ffmpegcolorspace gstffmpegcolorspace.c:197:gst_ffmpegcsp_transform_caps:
I am not very sure my first message arrived OK, so I post it again here :
Allright Antonio.
Here is what I have in feed.log :
./prepare-videochat.sh: line 211: ffmpeg:5,v4l:5,soup*:5,videoflip:5: command not found
My script now reads :
#
#
#
#
set -e
if [ -n "$1" ]; then FLIP_METHOD=$1 else FLIP_METHOD=none fi
ADB_PATH=/home/sigma/android-sdk-linux/platform-tools/adb if which adb; then ADB=$(which adb) else ADB=$ADB_PATH fi
WIFI_IP=192.168.2.122
PORT=8080
GST_DEBUG=soup*:5,videoflip:5,ffmpegcolorspace:5
V4L2LOOPBACK_DEB_URL=http://ftp.us.debian.org/debian/pool/main/v/v4l2loopback/v4l2loopback-dkms_0.5.0-1_all.deb
V4L2LOOPBACK_DEB_PATH=/tmp/v4l2loopback-dkms.deb
has_kernel_module() { sudo modprobe -q "$1" }
error() { zenity --error --text "$@" exit 1 }
warning() { zenity --warning --text "$@" }
info() { zenity --info --text "$@" }
confirm() { zenity --question --text "$@" }
can_run() {
(test -x "$1" || which "$1") &>/dev/null
}
start_adb() { can_run "$ADB" && "$ADB" start-server }
phone_plugged() { start_adb && test "$("$ADB" get-state)" == "device" }
url_reachable() { curl -sI "$1" >/dev/null }
send_intent() { start_adb && "$ADB" shell am start -a android.intent.action.MAIN -n $@ }
iw_server_is_started() { url_reachable "$VIDEO_URL" }
start_iw_server() { send_intent com.pas.webcam/.Rolling sleep 2s }
if ! has_kernel_module v4l2loopback; then info "The v4l2loopback kernel module is not installed or could not be loaded. I will try to install the kernel module using your distro's package manager. If that doesn't work, please install v4l2loopback manually from github.com/umlaeute/v4l2loopback." if can_run apt-get; then sudo apt-get install dkms wget "$V4L2LOOPBACK_DEB_URL" -O "$V4L2LOOPBACK_DEB_PATH" sudo dpkg -i "$V4L2LOOPBACK_DEB_PATH" elif can_run yaourt; then yaourt -S gst-v4l2loopback yaourt -S v4l2loopback-git fi
if has_kernel_module v4l2loopback; then info "The v4l2loopback kernel module was installed successfully." else error "Could not install the v4l2loopback kernel module through apt-get or yaourt." fi fi
DEVICE=$(ls -1t /dev/video* | head -1)
IP=$WIFI_IP if ! can_run "$ADB"; then warning "adb is not available: you'll have to use Wi-Fi, which will be slower. Next time, please install the Android SDK from developer.android.com/sdk." else while ! phone_plugged && ! confirm "adb is available, but the phone is not plugged in. Are you sure you want to use Wi-Fi (slower)? If you don't, please connect your phone to USB."; do true done if phone_plugged; then "$ADB" forward tcp:$PORT tcp:$PORT IP=127.0.0.1 fi fi
BASE_URL=http://$IP:$PORT VIDEO_URL=$BASE_URL/videofeed AUDIO_URL=$BASE_URL/audio.wav if phone_plugged && ! iw_server_is_started; then
start_iw_server
fi while ! iw_server_is_started; do info "The IP Webcam video feed is not reachable at $VIDEO_URL. Please open IP Webcam in your phone and start the server." done
if !(pactl list | grep -q module-null-sink); then pactl load-module module-null-sink fi
if ! can_run pavucontrol; then info "You don't have pavucontrol. I'll try to install its Debian/Ubuntu package." sudo apt-get install pavucontrol fi if ! pgrep pavucontrol; then info "We will open now pavucontrol. You should leave it open to change the recording device of your video chat program to 'Monitor Null Output'. NOTE: make sure that in 'Output Devices' all devices are listed." pavucontrol & fi
GSTLAUNCH=gst-launch if can_run apt-get; then
GSTLAUNCH=gst-launch
if ! can_run "$GSTLAUNCH"; then
info "You don't have gst-launch. I'll try to install its Debian/Ubuntu package." sudo apt-get install gstreamer-tools fi elif can_run pacman; then
GSTLAUNCH=gst-launch-0.10
if ! can_run "$GSTLAUNCH"; then
info "You don't have gst-launch. I'll try to install its Arch package." sudo pacman -S gstreamer0.10 gstreamer0.10-good-plugins fi fi if ! can_run "$GSTLAUNCH"; then error "Could not find gst-launch. Exiting." exit 1 fi
set +e info "Using IP Webcam as webcam/microphone. You can now open your videochat app." "$GSTLAUNCH" -vt --gst-plugin-spew --gst-debug="$GST_DEBUG" \ souphttpsrc location="http://$IP:$PORT/videofeed" do-timestamp=true is-live=true \ ! multipartdemux \ ! jpegdec \ ! ffmpegcolorspace ! "video/x-raw-yuv, format=(fourcc)YV12" \ ! videoflip method="$FLIP_METHOD" ! videorate \ ! v4l2sink device="$DEVICE" \ souphttpsrc location="http://$IP:$PORT/audio.wav" do-timestamp=true is-live=true \ ! wavparse ! audioconvert \ ! volume volume=3 ! rglimiter \ ! pulsesink device=null sync=false \ 2>&1 | tee feed.log
info "Disconnected from IP Webcam. Have a nice day!"
And I had the following messages in the command line :
Starting: Intent { act=android.intent.action.MAIN cmp=com.pas.webcam/.Rolling }
2235
0:00:00.017278103 [332m 2761[00m 0x1417080 [36mDEBUG [00m [00m souphttpsrc gstsouphttpsrc.c:1476:plugin_init:[00m binding text domain gst-plugins-good-0.10 to locale dir /usr/share/locale
0:00:00.036864741 [332m 2761[00m 0x1417080 [36mDEBUG [00m [00m ffmpegcolorspace gstffmpegcolorspace.c:197:gst_ffmpegcsp_transform_caps:
Allright... I think it is too long, I am going to cut my message in 2 pieces :
Allright Antonio.
Here is what I have in feed.log :
./prepare-videochat.sh: line 211: ffmpeg:5,v4l:5,soup*:5,videoflip:5: command not found
My script now reads :
#
#
#
#
set -e
if [ -n "$1" ]; then FLIP_METHOD=$1 else FLIP_METHOD=none fi
ADB_PATH=/home/sigma/android-sdk-linux/platform-tools/adb if which adb; then ADB=$(which adb) else ADB=$ADB_PATH fi
WIFI_IP=192.168.2.122
PORT=8080
GST_DEBUG=soup*:5,videoflip:5,ffmpegcolorspace:5
V4L2LOOPBACK_DEB_URL=http://ftp.us.debian.org/debian/pool/main/v/v4l2loopback/v4l2loopback-dkms_0.5.0-1_all.deb
V4L2LOOPBACK_DEB_PATH=/tmp/v4l2loopback-dkms.deb
has_kernel_module() { sudo modprobe -q "$1" }
error() { zenity --error --text "$@" exit 1 }
warning() { zenity --warning --text "$@" }
info() { zenity --info --text "$@" }
confirm() { zenity --question --text "$@" }
can_run() {
(test -x "$1" || which "$1") &>/dev/null
}
start_adb() { can_run "$ADB" && "$ADB" start-server }
phone_plugged() { start_adb && test "$("$ADB" get-state)" == "device" }
url_reachable() { curl -sI "$1" >/dev/null }
send_intent() { start_adb && "$ADB" shell am start -a android.intent.action.MAIN -n $@ }
iw_server_is_started() { url_reachable "$VIDEO_URL" }
start_iw_server() { send_intent com.pas.webcam/.Rolling sleep 2s }
if ! has_kernel_module v4l2loopback; then info "The v4l2loopback kernel module is not installed or could not be loaded. I will try to install the kernel module using your distro's package manager. If that doesn't work, please install v4l2loopback manually from github.com/umlaeute/v4l2loopback." if can_run apt-get; then sudo apt-get install dkms wget "$V4L2LOOPBACK_DEB_URL" -O "$V4L2LOOPBACK_DEB_PATH" sudo dpkg -i "$V4L2LOOPBACK_DEB_PATH" elif can_run yaourt; then yaourt -S gst-v4l2loopback yaourt -S v4l2loopback-git fi
if has_kernel_module v4l2loopback; then info "The v4l2loopback kernel module was installed successfully." else error "Could not install the v4l2loopback kernel module through apt-get or yaourt." fi fi
DEVICE=$(ls -1t /dev/video* | head -1)
IP=$WIFI_IP if ! can_run "$ADB"; then warning "adb is not available: you'll have to use Wi-Fi, which will be slower. Next time, please install the Android SDK from developer.android.com/sdk." else while ! phone_plugged && ! confirm "adb is available, but the phone is not plugged in. Are you sure you want to use Wi-Fi (slower)? If you don't, please connect your phone to USB."; do true done if phone_plugged; then "$ADB" forward tcp:$PORT tcp:$PORT IP=127.0.0.1 fi fi
BASE_URL=http://$IP:$PORT VIDEO_URL=$BASE_URL/videofeed AUDIO_URL=$BASE_URL/audio.wav if phone_plugged && ! iw_server_is_started; then
start_iw_server
fi while ! iw_server_is_started; do info "The IP Webcam video feed is not reachable at $VIDEO_URL. Please open IP Webcam in your phone and start the server." done
if !(pactl list | grep -q module-null-sink); then pactl load-module module-null-sink fi
if ! can_run pavucontrol; then info "You don't have pavucontrol. I'll try to install its Debian/Ubuntu package." sudo apt-get install pavucontrol fi if ! pgrep pavucontrol; then info "We will open now pavucontrol. You should leave it open to change the recording device of your video chat program to 'Monitor Null Output'. NOTE: make sure that in 'Output Devices' all devices are listed." pavucontrol & fi
GSTLAUNCH=gst-launch if can_run apt-get; then
GSTLAUNCH=gst-launch
if ! can_run "$GSTLAUNCH"; then
info "You don't have gst-launch. I'll try to install its Debian/Ubuntu package." sudo apt-get install gstreamer-tools fi elif can_run pacman; then
GSTLAUNCH=gst-launch-0.10
if ! can_run "$GSTLAUNCH"; then
info "You don't have gst-launch. I'll try to install its Arch package." sudo pacman -S gstreamer0.10 gstreamer0.10-good-plugins fi fi if ! can_run "$GSTLAUNCH"; then error "Could not find gst-launch. Exiting." exit 1 fi
set +e info "Using IP Webcam as webcam/microphone. You can now open your videochat app." "$GSTLAUNCH" -vt --gst-plugin-spew --gst-debug="$GST_DEBUG" \ souphttpsrc location="http://$IP:$PORT/videofeed" do-timestamp=true is-live=true \ ! multipartdemux \ ! jpegdec \ ! ffmpegcolorspace ! "video/x-raw-yuv, format=(fourcc)YV12" \ ! videoflip method="$FLIP_METHOD" ! videorate \ ! v4l2sink device="$DEVICE" \ souphttpsrc location="http://$IP:$PORT/audio.wav" do-timestamp=true is-live=true \ ! wavparse ! audioconvert \ ! volume volume=3 ! rglimiter \ ! pulsesink device=null sync=false \ 2>&1 | tee feed.log
info "Disconnected from IP Webcam. Have a nice day!"
And here is the second part of my message :
And I had the following messages in the command line :
Starting: Intent { act=android.intent.action.MAIN cmp=com.pas.webcam/.Rolling }
2235
0:00:00.017278103 [332m 2761[00m 0x1417080 [36mDEBUG [00m [00m souphttpsrc gstsouphttpsrc.c:1476:plugin_init:[00m binding text domain gst-plugins-good-0.10 to locale dir /usr/share/locale
0:00:00.036864741 [332m 2761[00m 0x1417080 [36mDEBUG [00m [00m ffmpegcolorspace gstffmpegcolorspace.c:197:gst_ffmpegcsp_transform_caps:
Allright... I am sorry the second part is 2 long... It contains the content of the file result.txt created with : ./prepare-videochat.sh > result,txt
In case you need it, you can leave me an email address... but maybe it is useless to you.
Do you think there is any hope having it working here ?
Anyway thank you very much for your support and your time.
Sigma.
Dear Antonio,
please find enclosed the file result.txt created with ./prepare-videochat.sh > result.txt
I hope that helps.
Best,
Sigma.
Le 17 avril 2012 11:22, Antonio García-Domínguez < reply@reply.github.com
a écrit :
Oops, I messed up my instructions, it seems. Please change GST_DEBUG instead of GST_LAUNCH. From this:
GST_DEBUG=soup*:0,videoflip:0,ffmpegcolorspace:0
to this:
GST_DEBUG=soup*:5,videoflip:5,ffmpegcolorspace:5
Run the script again and send me the feed.log file. In any case, this line bothers me:
ERROR: from element /GstPipeline:pipeline0/GstSoupHTTPSrc:souphttpsrc1: Connection terminated unexpectedly
It looks like we can't properly connect to the /videofeed URL for some reason. Enabling debugging info should clear this up a bit, I hope.
Reply to this email directly or view it on GitHub: https://github.com/bluezio/ipwebcam-gst/issues/4#issuecomment-5171224
Guillaume DUJARDIN
11 rue Florimond Delemer
59370 MONS-EN-BAROEUL
FRANCE
mobile : +33 (0) 6 61 48 48 46
Starting: Intent { act=android.intent.action.MAIN cmp=com.pas.webcam/.Rolling }
2235
0:00:00.017278103 [332m 2761[00m 0x1417080 [36mDEBUG [00m [00m souphttpsrc gstsouphttpsrc.c:1476:plugin_init:[00m binding text domain gst-plugins-good-0.10 to locale dir /usr/share/locale
0:00:00.036864741 [332m 2761[00m 0x1417080 [36mDEBUG [00m [00m ffmpegcolorspace gstffmpegcolorspace.c:197:gst_ffmpegcsp_transform_caps:
Allright... Now, I think you are actually expecting to read what the script writes in the command window... the only thing I can put in here is the very end of it (it is way too long for my command window and for such a dialog box). It reads :
0:00:00.731589467 2228 0xb51080 DEBUG ffmpegcolorspace gstffmpegcolorspace.c:197:gst_ffmpegcsp_transform_caps:
In case you did not get the file, the end of it reads :
0:00:00.731589467 2228 0xb51080 DEBUG ffmpegcolorspace gstffmpegcolorspace.c:197:gst_ffmpegcsp_transform_caps:
Next time we need to post some file, I think it would be better if you pasted it on pastebin.org and then sent the link over here. It's a bit hard to read when formatted as Markdown and split over several posts.
Have you enabled audio in IP Webcam? I think the script expects that.
Please paste the log to pastebin.org and post the link here, so I can read it properly.
Allright.
First of all : I had audio turned off in IPWebcam and I turned it on. Now, the script does not crash anymore when I hit the "OK" button telling me that I can open my videochat software.
Unfortunately, VLC still does not open properly /dev/video2 :(, while /dev/video1 (integrated webcam) works fine.
Second, the fact is that the result.txt file I get now for 5 seconds (that I end manually typing Ctrl+C) turns out to be 24 Mo large. I tried pastebin, but I am afraid it is too big for that. I sent it using a (French) webpage allowing sending big files over the internet. Here is the link for you to download the file and have at least a global overview : http://dl.free.fr/hU9YqDP88. If there is anything specific you are interested in, you can just tell me and I can run the test again and have a look at what you need in the juge file and send what you need to you (no need that you waste more of your time).
I am very sorry if my previous posts were unclear. I am kind of a beginner...
Another option would be to turn some debugging options off to have smaller files to send, I guess.
Just let me know what I can send to you and I will do.
Thanks again for your support and your time.
Sigma
Le 17 avril 2012 16:03, Antonio García-Domínguez < reply@reply.github.com
a écrit :
Next time we need to post some file, I think it would be better if you pasted it on pastebin.org and then sent the link over here. It's a bit hard to read when formatted as Markdown and split over several posts.
Have you enabled audio in IP Webcam? I think the script expects that.
Please paste the log to pastebin.org and post the link here, so I can read it properly.
Reply to this email directly or view it on GitHub: https://github.com/bluezio/ipwebcam-gst/issues/4#issuecomment-5175702
In case you experience difficulties using the French website, please tell me how I can send you the 10-20 Mo result file since I think pastebin cannot handle it.
Pas de problème! :-) Je peux lire un peu de français. (disclaimer: my writing is quite bad, and I pretty much can't speak it :-D)
Well, it seems that it works properly now. You can change GST_DEBUG back to the default value, which won't produce that huge amount of information. With the graph working, we can now focus on why VLC isn't opening it.
I have pushed a new version warning future users to leave audio enabled. I have also improved the way in which the v4l2loopback device is detected: it should say exactly which device is going to be used in the last dialog. You should try to open v4l2:///(that device) then. Perhaps the script used the wrong device for some reason.
I am very glad you know some French :). But anyway, sorry for using a french-speaking website without even checking for that :).
I tried the new version of the script, with my personnal ADB_PATH. I had to install the package v4l-utils so that the script can use v4l-ctl. Then, I started the script again and I got his :
./prepare-videochat.sh
Starting: Intent { act=android.intent.action.MAIN cmp=com.pas.webcam/.Rolling }
2220
Setting pipeline to PAUSED ...
libv4l2: error getting pixformat: Invalid argument
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:sink: caps = image/jpeg
/GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)480, height=(int)640, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)640, interlaced=(boolean)false
/GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)480, height=(int)640, framerate=(fraction)0/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)640, interlaced=(boolean)false
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)640, interlaced=(boolean)false
/GstPipeline:pipeline0/GstVideoFlip:videoflip0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)640, interlaced=(boolean)false
/GstPipeline:pipeline0/GstVideoFlip:videoflip0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)640, interlaced=(boolean)false
/GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)640, interlaced=(boolean)false
/GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)640, interlaced=(boolean)false
/GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)640, interlaced=(boolean)false
/GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)640, interlaced=(boolean)false
FOUND TAG : found by element "wavparse0".
audio codec: Uncompressed 16-bit PCM audio
/GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:src: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, rate=(int)44100, channels=(int)1
/GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:sink: caps = audio/x-raw-int, endianness=(int)1234, channels=(int)1, width=(int)16, depth=(int)16, signed=(boolean)true, rate=(int)44100
/GstPipeline:pipeline0/GstVolume:volume0.GstPad:src: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, rate=(int)44100, channels=(int)1
/GstPipeline:pipeline0/GstVolume:volume0.GstPad:sink: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, rate=(int)44100, channels=(int)1
/GstPipeline:pipeline0/GstRgLimiter:rglimiter0.GstPad:src: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, rate=(int)44100, channels=(int)1
/GstPipeline:pipeline0/GstRgLimiter:rglimiter0.GstPad:sink: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, rate=(int)44100, channels=(int)1
/GstPipeline:pipeline0/GstPulseSink:pulsesink0.GstPad:sink: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, rate=(int)44100, channels=(int)1
/GstPipeline:pipeline0/GstPulseSink:pulsesink0: volume = 1.000000
/GstPipeline:pipeline0/GstPulseSink:pulsesink0: mute = FALSE
Then, I opened VLC and I got the following :
vlc -vvv
VLC media player 1.1.9 The Luggage (revision exported)
[0xa29120] main libvlc debug: VLC media player - 1.1.9 The Luggage
[0xa29120] main libvlc debug: Copyright © 1996-2011 the VideoLAN team
[0xa29120] main libvlc debug: revision exported
[0xa29120] main libvlc debug: configured with ./configure '--enable-static' '--build=x86_64-linux-gnu' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=1ubuntu1.3' '--enable-a52' '--enable-aa' '--enable-bonjour' '--enable-caca' '--enable-dca' '--enable-dirac' '--enable-dvb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-ggi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mozilla' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--with-mozilla-pkg=libxul' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-osso_screensaver' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-libva' '--enable-pvr' '--enable-udev' '--enable-v4l2' '--enable-svgalib' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2' 'LDFLAGS=-Wl,--as-needed' 'CPPFLAGS=' 'CXXFLAGS=-g -O2'
[0xa29120] main libvlc debug: translation test: code is "en_GB"
[0xa29120] main libvlc debug: checking plugin modules
[0xa29120] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins-04081e-7e8.dat
[0xa29120] main libvlc debug: recursively browsing /usr/lib/vlc/plugins' [0xa29120] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins-04081e-7e8.dat [0xa29120] main libvlc debug: module bank initialized (394 modules) [0xa29120] main libvlc debug: opening config file (/home/sigma/.config/vlc/vlcrc) [0xa29120] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 FPU [0xa29120] main libvlc debug: looking for memcpy module: 3 candidates [0xa29120] main libvlc debug: using memcpy module "memcpymmxext" [0xb41420] main input debug: Creating an input for 'Media Library' [0xb41420] main input debug: Input is a meta file: disabling unneeded options [0xb41420] main input debug: using timeshift granularity of 50 MiB [0xb41420] main input debug: using timeshift path '/tmp' [0xb41420] main input debug:
file/xspf-open:///home/sigma/.local/share/vlc/ml.xspf' gives access file' demux
xspf-open' path /home/sigma/.local/share/vlc/ml.xspf' [0xb41420] main input debug: creating demux: access='file' demux='xspf-open' path='/home/sigma/.local/share/vlc/ml.xspf' [0xb47c70] main demux debug: looking for access_demux module: 2 candidates [0xb47c70] main demux debug: no access_demux module matching "file" could be loaded [0xb47c70] main demux debug: TIMER module_need() : 0.487 ms - Total 0.487 ms / 1 intvls (Avg 0.487 ms) [0xb41420] main input debug: creating access 'file' path='/home/sigma/.local/share/vlc/ml.xspf' [0xb577f0] main access debug: looking for access module: 2 candidates [0xb577f0] filesystem access debug: opening file
/home/sigma/.local/share/vlc/ml.xspf'
[0xb577f0] main access debug: using access module "filesystem"
[0xb577f0] main access debug: TIMER module_need() : 0.238 ms - Total 0.238 ms / 1 intvls (Avg 0.238 ms)
[0xb493a0] main stream debug: Using AStream*Stream
[0xb493a0] main stream debug: pre buffering
[0xb493a0] main stream debug: received first data after 0 ms
[0xb493a0] main stream debug: pre-buffering done 296 bytes in 0s - 24088 KiB/s
[0xb496e0] main stream debug: looking for stream_filter module: 5 candidates
[0xb496e0] main stream debug: no stream_filter module matching "any" could be loaded
[0xb496e0] main stream debug: TIMER module_need() : 0.339 ms - Total 0.339 ms / 1 intvls (Avg 0.339 ms)
[0xb58570] main stream debug: looking for stream_filter module: 1 candidate
[0xb58570] main stream debug: using stream_filter module "stream_filter_record"
[0xb58570] main stream debug: TIMER module_need() : 0.093 ms - Total 0.093 ms / 1 intvls (Avg 0.093 ms)
[0xb41420] main input debug: creating demux: access='file' demux='xspf-open' path='/home/sigma/.local/share/vlc/ml.xspf'
[0xb58c70] main demux debug: looking for demux module: 1 candidate
[0xb58c70] playlist demux debug: using XSPF playlist reader
[0xb58c70] main demux debug: using demux module "playlist"
[0xb58c70] main demux debug: TIMER module_need() : 0.400 ms - Total 0.400 ms / 1 intvls (Avg 0.400 ms)
[0xb5d4f0] main demux meta debug: looking for meta reader module: 2 candidates
[0xb5d4f0] lua demux meta debug: Trying Lua scripts in /home/sigma/.local/share/vlc/lua/meta/reader
[0xb5d4f0] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0xb5d4f0] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0xb5d4f0] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0xb5d4f0] main demux meta debug: no meta reader module matching "any" could be loaded
[0xb5d4f0] main demux meta debug: TIMER module_need() : 2.035 ms - Total 2.035 ms / 1 intvls (Avg 2.035 ms)
[0xb41420] main input debug: file/xspf-open:///home/sigma/.local/share/vlc/ml.xspf' successfully opened [0xb5d4f0] main xml debug: looking for xml module: 2 candidates [0xb5d4f0] main xml debug: using xml module "xml" [0xb5d4f0] main xml debug: TIMER module_need() : 0.353 ms - Total 0.353 ms / 1 intvls (Avg 0.353 ms) Warning: call to srand(1334696396) Warning: call to rand() [0xb58c70] playlist demux debug: parsed 0 tracks successfully [0xb5d4f0] main xml debug: removing module "xml" [0xb41420] main input debug: EOF reached [0xb58c70] main demux debug: removing module "playlist" [0xb58570] main stream debug: removing module "stream_filter_record" [0xb577f0] main access debug: removing module "filesystem" [0xb41420] main input debug: TIMER input launching for 'Media Library' : 3.898 ms - Total 3.898 ms / 1 intvls (Avg 3.898 ms) [0xb471f0] main interface debug: looking for interface module: 1 candidate [0xb471f0] main interface debug: using interface module "hotkeys" [0xb471f0] main interface debug: TIMER module_need() : 0.122 ms - Total 0.122 ms / 1 intvls (Avg 0.122 ms) [0xb45b60] main interface debug: looking for interface module: 1 candidate Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0xa3b5a0] main playlist debug: Activated [0xb45b60] main interface debug: using interface module "inhibit" [0xb45b60] main interface debug: TIMER module_need() : 2.166 ms - Total 2.166 ms / 1 intvls (Avg 2.166 ms) [0xa3b5a0] main playlist debug: rebuilding array of current - root Playlist [0xa3b5a0] main playlist debug: rebuild done - 0 items, index -1 [0xb46270] main interface debug: looking for interface module: 1 candidate [0xb46270] logger interface: using logger. [0xb46270] logger interface warning: no log filename provided, using
vlc-log.txt'
[0xb46270] logger interface debug: opening logfile `vlc-log.txt'
[0xb46270] main interface debug: using interface module "logger"
[0xb46270] main interface debug: TIMER module_need() : 0.287 ms - Total 0.287 ms / 1 intvls (Avg 0.287 ms)
[0xb46ce0] main interface debug: looking for interface module: 1 candidate
[0xb46ce0] main interface debug: using interface module "signals"
[0xb46ce0] main interface debug: TIMER module_need() : 0.151 ms - Total 0.151 ms / 1 intvls (Avg 0.151 ms)
[0xb43bd0] main interface debug: looking for interface module: 1 candidate
[0xb43bd0] main interface debug: using interface module "globalhotkeys"
[0xb43bd0] main interface debug: TIMER module_need() : 0.762 ms - Total 0.762 ms / 1 intvls (Avg 0.762 ms)
[0xa29120] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0xb68d40] main interface debug: looking for interface module: 5 candidates
Blocked: call to setlocale(6, "")
Warning: call to srand(1334609172)
Warning: call to rand()
Blocked: call to setlocale(6, "")
(process:2678): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
[0xddf540] main generic debug: looking for extension module: 1 candidate
[0xddf540] lua generic debug: Opening EXPERIMENTAL Lua Extension module
[0xddf540] lua generic debug: Trying Lua scripts in /home/sigma/.local/share/vlc/lua/extensions
[0xddf540] lua generic debug: Trying Lua scripts in /usr/lib/vlc/lua/extensions
[0xddf540] lua generic debug: Trying Lua playlist script /usr/lib/vlc/lua/extensions/allocine-fr.luac
[0xddf540] lua generic debug: Scanning Lua script /usr/lib/vlc/lua/extensions/allocine-fr.luac
[0xddf540] lua generic debug: Script /usr/lib/vlc/lua/extensions/allocine-fr.luac has the following capability flags: 0xc
[0xddf540] lua generic debug: Trying Lua scripts in /usr/share/vlc/lua/extensions
[0xddf540] main generic debug: using extension module "lua"
[0xddf540] main generic debug: TIMER module_need() : 0.701 ms - Total 0.701 ms / 1 intvls (Avg 0.701 ms)
Blocked: call to setlocale(6, "")
[0xb68d40] main interface debug: using interface module "qt4"
[0xb68d40] main interface debug: TIMER module_need() : 157.858 ms - Total 157.858 ms / 1 intvls (Avg 157.858 ms)
[0xb68d40] qt4 interface debug: Initialization of Capture device panel
Warning: call to rand()
Warning: call to rand()
Warning: call to rand()
[0xb68d40] qt4 interface warning: Input option: input-slave=alsa://
[0xb68d40] qt4 interface warning: Input option: v4l2-standard=0
[0xb68d40] qt4 interface warning: Input option: file-caching=300
[0xa3b5a0] main playlist debug: adding item v4l2:///dev/video2' ( v4l2:///dev/video2 ) [0xa3b5a0] main playlist debug: rebuilding array of current - root Playlist [0xb68d40] qt4 interface debug: Adding a new MRL to recent ones: v4l2:///dev/video2 [0xa3b5a0] main playlist debug: rebuild done - 1 items, index -1 [0xa3b5a0] main playlist debug: processing request item v4l2:///dev/video2 node null skip 0 [0xa3b5a0] main playlist debug: resyncing on v4l2:///dev/video2 [0xa3b5a0] main playlist debug: v4l2:///dev/video2 is at 0 [0xa3b5a0] main playlist debug: starting new item [0xa3b5a0] main playlist debug: creating new input thread [0x7fcf8c000b80] main input debug: Creating an input for 'v4l2:///dev/video2' [0x7fcf8c000b80] main input debug: thread (input) created at priority 10 (input/input.c:220) [0x7fcf8c000b80] main input debug: thread started [0x7fcf8c000b80] main input debug: using timeshift granularity of 50 MiB [0x7fcf8c000b80] main input debug: using timeshift path '/tmp' [0x7fcf8c000b80] main input debug:
v4l2:///dev/video2' gives access v4l2' demux
' path /dev/video2' [0x7fcf8c000b80] main input debug: creating demux: access='v4l2' demux='' path='/dev/video2' [0xb68d40] qt4 interface debug: IM: Setting an input [0x7fcf8c0014c0] main demux debug: looking for access_demux module: 1 candidate [0x7fcf8c0014c0] v4l2 demux debug: Trying direct kernel v4l2 [0x7fcf8c0014c0] v4l2 demux debug: opening device '/dev/video2' [0x7fcf8c0014c0] v4l2 demux debug: V4L2 device: Dummy video device using driver: v4l2 loopback (version: 0.5.0) on [0x7fcf8c0014c0] v4l2 demux debug: the device has the capabilities: (X) Video Capture, ( ) Audio, ( ) Tuner, ( ) Radio [0x7fcf8c0014c0] v4l2 demux debug: supported I/O methods are: (X) Read/Write, (X) Streaming, ( ) Asynchronous [0x7fcf8c0014c0] v4l2 demux debug: video standard 0 is: NTSC [0x7fcf8c0014c0] v4l2 demux debug: video standard 1 is: NTSC-M [0x7fcf8c0014c0] v4l2 demux debug: video standard 2 is: NTSC-M-JP [0x7fcf8c0014c0] v4l2 demux debug: video standard 3 is: NTSC-M-KR [0x7fcf8c0014c0] v4l2 demux debug: video standard 4 is: NTSC-443 [0x7fcf8c0014c0] v4l2 demux debug: video standard 5 is: PAL [0x7fcf8c0014c0] v4l2 demux debug: video standard 6 is: PAL-BG [0x7fcf8c0014c0] v4l2 demux debug: video standard 7 is: PAL-H [0x7fcf8c0014c0] v4l2 demux debug: video standard 8 is: PAL-I [0x7fcf8c0014c0] v4l2 demux debug: video standard 9 is: PAL-DK [0x7fcf8c0014c0] v4l2 demux debug: video standard 10 is: PAL-M [0x7fcf8c0014c0] v4l2 demux debug: video standard 11 is: PAL-N [0x7fcf8c0014c0] v4l2 demux debug: video standard 12 is: PAL-Nc [0x7fcf8c0014c0] v4l2 demux debug: video standard 13 is: PAL-60 [0x7fcf8c0014c0] v4l2 demux debug: video standard 14 is: SECAM [0x7fcf8c0014c0] v4l2 demux debug: video standard 15 is: SECAM-B [0x7fcf8c0014c0] v4l2 demux debug: video standard 16 is: SECAM-G [0x7fcf8c0014c0] v4l2 demux debug: video standard 17 is: SECAM-H [0x7fcf8c0014c0] v4l2 demux debug: video standard 18 is: SECAM-DK [0x7fcf8c0014c0] v4l2 demux debug: video standard 19 is: SECAM-L [0x7fcf8c0014c0] v4l2 demux debug: video standard 20 is: SECAM-Lc [0x7fcf8c0014c0] v4l2 demux debug: '/dev/video2' is a video device [0x7fcf8c0014c0] v4l2 demux warning: invalid input. Using the default one [0x7fcf8c0014c0] v4l2 demux error: cannot set input (Invalid argument) [0x7fcf8c0014c0] v4l2 demux debug: Trying libv4l2 wrapper [0x7fcf8c0014c0] v4l2 demux debug: opening device '/dev/video2' libv4l2: error getting pixformat: Invalid argument [0x7fcf8c0014c0] v4l2 demux error: cannot open video device '/dev/video2' (Invalid argument) [0x7fcf8c0014c0] main demux debug: no access_demux module matching "v4l2" could be loaded [0x7fcf8c0014c0] main demux debug: TIMER module_need() : 2.729 ms - Total 2.729 ms / 1 intvls (Avg 2.729 ms) [0x7fcf8c000b80] main input debug: creating access 'v4l2' path='/dev/video2' [0x11d5670] main access debug: looking for access module: 1 candidate [0x11d5670] v4l2 access debug: Trying direct kernel v4l2 [0x11d5670] v4l2 access debug: opening device '/dev/video2' [0x11d5670] v4l2 access debug: V4L2 device: Dummy video device using driver: v4l2 loopback (version: 0.5.0) on [0x11d5670] v4l2 access debug: the device has the capabilities: (X) Video Capture, ( ) Audio, ( ) Tuner, ( ) Radio [0x11d5670] v4l2 access debug: supported I/O methods are: (X) Read/Write, (X) Streaming, ( ) Asynchronous [0x11d5670] v4l2 access debug: video standard 0 is: NTSC [0x11d5670] v4l2 access debug: video standard 1 is: NTSC-M [0x11d5670] v4l2 access debug: video standard 2 is: NTSC-M-JP [0x11d5670] v4l2 access debug: video standard 3 is: NTSC-M-KR [0x11d5670] v4l2 access debug: video standard 4 is: NTSC-443 [0x11d5670] v4l2 access debug: video standard 5 is: PAL [0x11d5670] v4l2 access debug: video standard 6 is: PAL-BG [0x11d5670] v4l2 access debug: video standard 7 is: PAL-H [0x11d5670] v4l2 access debug: video standard 8 is: PAL-I [0x11d5670] v4l2 access debug: video standard 9 is: PAL-DK [0x11d5670] v4l2 access debug: video standard 10 is: PAL-M [0x11d5670] v4l2 access debug: video standard 11 is: PAL-N [0x11d5670] v4l2 access debug: video standard 12 is: PAL-Nc [0x11d5670] v4l2 access debug: video standard 13 is: PAL-60 [0x11d5670] v4l2 access debug: video standard 14 is: SECAM [0x11d5670] v4l2 access debug: video standard 15 is: SECAM-B [0x11d5670] v4l2 access debug: video standard 16 is: SECAM-G [0x11d5670] v4l2 access debug: video standard 17 is: SECAM-H [0x11d5670] v4l2 access debug: video standard 18 is: SECAM-DK [0x11d5670] v4l2 access debug: video standard 19 is: SECAM-L [0x11d5670] v4l2 access debug: video standard 20 is: SECAM-Lc [0x11d5670] v4l2 access debug: '/dev/video2' is a video device [0x11d5670] v4l2 access warning: invalid input. Using the default one [0x11d5670] v4l2 access error: cannot set input (Invalid argument) [0x11d5670] v4l2 access debug: Trying libv4l2 wrapper [0x11d5670] v4l2 access debug: opening device '/dev/video2' libv4l2: error getting pixformat: Invalid argument [0x11d5670] v4l2 access error: cannot open video device '/dev/video2' (Invalid argument) [0x11d5670] main access debug: no access module matching "v4l2" could be loaded [0x11d5670] main access debug: TIMER module_need() : 44.653 ms - Total 44.653 ms / 1 intvls (Avg 44.653 ms) [0x7fcf8c000b80] main input error: open of
v4l2:///dev/video2' failed: (null)
[0xa3b5a0] main playlist debug: finished input
[0xa3b5a0] main playlist debug: dead input
[0x7fcf8c000b80] main input debug: thread ended
[0xa3b5a0] main playlist debug: changing item without a request (current 0/1)
[0xa3b5a0] main playlist debug: nothing to play
[0xb68d40] qt4 interface debug: IM: Deleting the input
[0xa29120] main libvlc debug: deactivating the playlist
[0xa3b5a0] main playlist debug: Deactivate
[0x11e5d50] main playlist export debug: saving Media Library to file /home/sigma/.local/share/vlc/ml.xspf
[0x11e5d50] main playlist export debug: looking for playlist export module: 1 candidate
[0x11e5d50] main playlist export debug: using playlist export module "export"
[0x11e5d50] main playlist export debug: TIMER module_need() : 0.381 ms - Total 0.381 ms / 1 intvls (Avg 0.381 ms)
[0x11e5d50] main playlist export debug: removing module "export"
[0xa3b5a0] main playlist debug: Deactivated
[0xa29120] main libvlc debug: removing all services discovery tasks
[0xa29120] main libvlc debug: removing all interfaces
[0xb68d40] qt4 interface debug: requesting exit...
[0xb68d40] qt4 interface debug: waiting for UI thread...
[0xb68d40] qt4 interface debug: Exec finished()
[0xb68d40] qt4 interface debug: Video is not needed anymore
[0xb68d40] qt4 interface debug: Killing extension dialog provider
[0xb68d40] qt4 interface debug: ExtensionsDialogProvider is quitting...
[0xddf540] lua generic debug: Deactivating all loaded extensions
[0xddf540] lua generic debug: All extensions are now deactivated
[0xddf540] main generic debug: removing module "lua"
[0xb68d40] main interface debug: removing module "qt4"
[0xb43bd0] main interface debug: removing module "globalhotkeys"
[0xb46ce0] main interface debug: removing module "signals"
[0xb46270] main interface debug: removing module "logger"
[0x7fcf8c000b80] main input debug: TIMER input launching for 'v4l2:///dev/video2' : 3940.757 ms - Total 3940.757 ms / 1 intvls (Avg 3940.757 ms)
[0xb45b60] main interface debug: removing module "inhibit"
[0xb471f0] main interface debug: removing module "hotkeys"
[0xa3b5a0] main playlist debug: destroying
[0xa29120] main libvlc debug: TIMER ML Load : Total 4.531 ms / 1 intvls (Avg 4.531 ms)
[0xa29120] main libvlc debug: TIMER Items array build : Total 18.915 ms / 2 intvls (Avg 9.458 ms)
[0xa29120] main libvlc debug: TIMER ML Dump : Total 0.517 ms / 1 intvls (Avg 0.517 ms)
[0xa29120] main libvlc debug: removing stats
[0xa29120] main libvlc debug: removing module "memcpymmxext"
As you can see, it is still not working, and I still do not really know why...
Sigma.
Thanks for the tip! I've pushed a new version that installs the v4l-utils package on Ubuntu and Arch if necessary.
If the graph is working, but is not being opened by VLC, it could be due to the way the device is setup or some problem in VLC. Which version of VLC are you using? I'm using VLC 2.0.1 and v4l2:///dev/video0 works for me.
Also, make sure that this command prints "is readable". Run it after starting the videochat script, please.
test -r /dev/video2 && echo "is readable"
Could you also try opening the device with mplayer instead of VLC? This should work:
mplayer tv:// -tv device=/dev/video2
My VLC version is 1.1.9
The test prints "is readable" : no problem with that at all.
Here is the result of the try with mplayer :
$ mplayer tv:// -tv device=/dev/video2 mplayer: Symbol `ff_codec_bmp_tags' has different size in shared object, consider re-linking MPlayer 1.0rc4-4.5.2 (C) 2000-2010 MPlayer Team mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control.
Playing tv://. TV file format detected. Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski olschewski@zpr.uni-koeln.de comment: first try, more to come ;-) v4l2: ioctl get format failed: Invalid argument v4l2: ioctl set mute failed: Invalid argument v4l2: 0 frames successfully processed, 0 frames dropped.
Exiting... (End of file)
Do you think I should upgrade my VLC version ? Or maybe I should try to erase the droidcam (see : http://www.dev47apps.com/droidcam/linuxx/) that I installed in the first place and did not manage to have working (and which creates /dev/video0, I think) ? Or maybe another suggestion ?
I must confess that :
You can use Synaptic: you'll just have to set up an additional package source that has VLC 2.0. Could you try this PPA?
sudo add-apt-repository ppa:videolan/stable-daily
sudo apt-get update
sudo apt-get install vlc
That should get you an up-to-date version of VLC, I think.
Allright. I just tried it, and when I launch VLC after that, it is stille the same old version (1.1.9) running. Here is what I got :
sudo add-apt-repository ppa:videolan/stable-daily
[sudo] password for sigma:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver hkp://keyserver.ubuntu.com:80/ --recv 3361E59FF5029E6B90A9A80D09589874801DF724
gpg: requesting key 801DF724 from hkp server keyserver.ubuntu.com
gpg: key 801DF724: public key "Launchpad Daily Build of master branch" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
sigma@193-49-212-144:~$ sudo apt-get update
Ign http://archive.canonical.com natty InRelease
Ign http://ppa.launchpad.net natty InRelease
Ign http://extras.ubuntu.com natty InRelease
Ign http://security.ubuntu.com natty-security InRelease
Ign http://dl.google.com stable InRelease
Ign http://archive.ubuntu.com natty InRelease
Ign http://archive.ubuntu.com natty-updates InRelease
Hit http://archive.canonical.com natty Release.gpg
Ign http://ppa.launchpad.net natty Release.gpg
Get:1 http://extras.ubuntu.com natty Release.gpg [72 B]
Hit http://security.ubuntu.com natty-security Release.gpg
Hit http://archive.ubuntu.com natty Release.gpg
Hit http://archive.canonical.com natty Release
Hit http://security.ubuntu.com natty-security Release
Hit http://extras.ubuntu.com natty Release
Get:2 http://dl.google.com stable Release.gpg [198 B]
Ign http://ppa.launchpad.net natty Release
Hit http://archive.ubuntu.com natty-updates Release.gpg
Hit http://archive.ubuntu.com natty Release
Get:3 http://dl.google.com stable Release [1,347 B]
Ign http://ppa.launchpad.net natty/main TranslationIndex
Hit http://archive.ubuntu.com natty-updates Release
Hit http://archive.canonical.com natty/partner amd64 Packages
Hit http://security.ubuntu.com natty-security/main Sources
Hit http://extras.ubuntu.com natty/main amd64 Packages
Hit http://archive.ubuntu.com natty/main Sources
Hit http://archive.ubuntu.com natty/restricted Sources
Hit http://archive.ubuntu.com natty/universe Sources
Hit http://archive.ubuntu.com natty/multiverse Sources
Hit http://archive.ubuntu.com natty/main amd64 Packages
Get:4 http://dl.google.com stable/main amd64 Packages [765 B]
Ign http://archive.canonical.com natty/partner TranslationIndex
Hit http://security.ubuntu.com natty-security/restricted Sources
Hit http://security.ubuntu.com natty-security/universe Sources
Hit http://security.ubuntu.com natty-security/multiverse Sources
Hit http://security.ubuntu.com natty-security/main amd64 Packages
Hit http://security.ubuntu.com natty-security/restricted amd64 Packages
Ign http://extras.ubuntu.com natty/main TranslationIndex
Hit http://archive.ubuntu.com natty/restricted amd64 Packages
Hit http://archive.ubuntu.com natty/universe amd64 Packages
Hit http://archive.ubuntu.com natty/multiverse amd64 Packages
Ign http://archive.ubuntu.com natty/main TranslationIndex
Ign http://archive.ubuntu.com natty/multiverse TranslationIndex
Hit http://security.ubuntu.com natty-security/universe amd64 Packages
Hit http://security.ubuntu.com natty-security/multiverse amd64 Packages
Ign http://security.ubuntu.com natty-security/main TranslationIndex
Ign http://security.ubuntu.com natty-security/multiverse TranslationIndex
Ign http://security.ubuntu.com natty-security/restricted TranslationIndex
Ign http://dl.google.com stable/main TranslationIndex
Ign http://archive.ubuntu.com natty/restricted TranslationIndex
Ign http://archive.ubuntu.com natty/universe TranslationIndex
Hit http://archive.ubuntu.com natty-updates/main Sources
Hit http://archive.ubuntu.com natty-updates/restricted Sources
Hit http://archive.ubuntu.com natty-updates/universe Sources
Ign http://security.ubuntu.com natty-security/universe TranslationIndex
Hit http://archive.ubuntu.com natty-updates/multiverse Sources
Hit http://archive.ubuntu.com natty-updates/main amd64 Packages
Hit http://archive.ubuntu.com natty-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com natty-updates/universe amd64 Packages
Hit http://archive.ubuntu.com natty-updates/multiverse amd64 Packages
Ign http://archive.ubuntu.com natty-updates/main TranslationIndex
Ign http://archive.ubuntu.com natty-updates/multiverse TranslationIndex
Ign http://archive.ubuntu.com natty-updates/restricted TranslationIndex
Ign http://archive.ubuntu.com natty-updates/universe TranslationIndex
Hit http://archive.ubuntu.com natty/main Translation-en_GB
Hit http://archive.ubuntu.com natty/multiverse Translation-en_GB
Hit http://archive.ubuntu.com natty/restricted Translation-en_GB
Hit http://archive.ubuntu.com natty/universe Translation-en_GB
Err http://ppa.launchpad.net natty/main Sources
404 Not Found
Err http://ppa.launchpad.net natty/main amd64 Packages
404 Not Found
Ign http://archive.canonical.com natty/partner Translation-en_GB
Ign http://extras.ubuntu.com natty/main Translation-en_GB
Ign http://archive.canonical.com natty/partner Translation-en
Ign http://extras.ubuntu.com natty/main Translation-en
Ign http://ppa.launchpad.net natty/main Translation-en_GB
Ign http://ppa.launchpad.net natty/main Translation-en
Ign http://security.ubuntu.com natty-security/main Translation-en_GB
Ign http://security.ubuntu.com natty-security/main Translation-en
Ign http://security.ubuntu.com natty-security/multiverse Translation-en_GB
Ign http://security.ubuntu.com natty-security/multiverse Translation-en
Ign http://security.ubuntu.com natty-security/restricted Translation-en_GB
Ign http://security.ubuntu.com natty-security/restricted Translation-en
Ign http://security.ubuntu.com natty-security/universe Translation-en_GB
Ign http://security.ubuntu.com natty-security/universe Translation-en
Ign http://archive.ubuntu.com natty/main Translation-en
Ign http://archive.ubuntu.com natty/multiverse Translation-en
Ign http://archive.ubuntu.com natty/restricted Translation-en
Ign http://archive.ubuntu.com natty/universe Translation-en
Ign http://archive.ubuntu.com natty-updates/main Translation-en_GB
Ign http://archive.ubuntu.com natty-updates/main Translation-en
Ign http://archive.ubuntu.com natty-updates/multiverse Translation-en_GB
Ign http://archive.ubuntu.com natty-updates/multiverse Translation-en
Ign http://archive.ubuntu.com natty-updates/restricted Translation-en_GB
Ign http://dl.google.com stable/main Translation-en_GB
Ign http://archive.ubuntu.com natty-updates/restricted Translation-en
Ign http://archive.ubuntu.com natty-updates/universe Translation-en_GB
Ign http://archive.ubuntu.com natty-updates/universe Translation-en
Ign http://dl.google.com stable/main Translation-en
Fetched 2,382 B in 1s (1,629 B/s)
W: Failed to fetch http://ppa.launchpad.net/videolan/stable-daily/ubuntu/dists/natty/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/videolan/stable-daily/ubuntu/dists/natty/main/binary-amd64/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
sigma@193-49-212-144:~$ sudo apt-get install vlc
Reading package lists... Done
Building dependency tree
Reading state information... Done
vlc is already the newest version.
The following packages were automatically installed and are no longer required:
libkresources4 libkldap4 libknewstuff2-4 libboost-program-options1.42.0 libakonadi-kmime4 libakonadiprotocolinternals1 mysql-server-core-5.1 kdesudo akonadi-server libmicroblog4
python-qt4 libkabc4 python-sip mysql-client-core-5.1 libkcal4 libkimap4 libqtassistantclient4 libmailtransport4 update-manager-kde libkmime4 kdepimlibs-kio-plugins libakonadi-kabc4
libkpimutils4 kdepim-runtime libakonadi-kcal4 libakonadi-kde4 python-kde4
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
I just read on the Nota Bene on the official website of VLC (http://www.videolan.org/vlc/download-ubuntu.html) that I should not expect a newer version with my Ubuntu...
I am now following this post to try to get a newer version of VLC : http://askubuntu.com/questions/105671/how-to-update-vlc-to-the-latest-version-on-ubuntu-11-04
Allright. I now have a newer version of VLC (2.1.0), but it still does not work. Here is what I get :
vlc -vvv
VLC media player 2.1.0-git Rincewind (revision 2.1.0~~git20120418+r1416)
[0x2094108] main libvlc debug: VLC media player - 2.1.0-git Rincewind
[0x2094108] main libvlc debug: Copyright © 1996-2012 the VideoLAN team
[0x2094108] main libvlc debug: revision 2.1.0~~git20120418+r1416
[0x2094108] main libvlc debug: configured with ./configure '--enable-static' '--build=x86_64-linux-gnu' 'CFLAGS=-g -O2' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=0~r77~natty1' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-dbus' '--enable-dca' '--enable-dirac' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-oss' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-libva' '--enable-linsys' '--enable-pvr' '--enable-udev' '--enable-v4l2' 'build_alias=x86_64-linux-gnu'
[0x2094108] main libvlc debug: searching plug-in modules
[0x2094108] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0x2094108] main libvlc debug: recursively browsing /usr/lib/vlc/plugins' [0x2094108] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat [0x2094108] main libvlc debug: plug-ins loaded: 416 modules [0x2094108] main libvlc debug: opening config file (/home/sigma/.config/vlc/vlcrc) [0x2094108] main libvlc debug: translation test: code is "en_GB" [0x2094108] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 FPU [0x2094108] main libvlc debug: looking for memcpy module: 4 candidates [0x2094108] main libvlc debug: using memcpy module "memcpymmxext" [0x20d2938] main input debug: Creating an input for 'Media Library' [0x20d2938] main input debug: Input is a meta file: disabling unneeded options [0x20d2938] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0x20d2938] main input debug:
file/xspf-open:///home/sigma/.local/share/vlc/ml.xspf' gives access file' demux
xspf-open' path /home/sigma/.local/share/vlc/ml.xspf' [0x20d2938] main input debug: creating demux: access='file' demux='xspf-open' location='/home/sigma/.local/share/vlc/ml.xspf' file='/home/sigma/.local/share/vlc/ml.xspf' [0x20d87d8] main demux debug: looking for access_demux module: 3 candidates [0x20d87d8] main demux debug: no access_demux module matching "file" could be loaded [0x20d2938] main input debug: creating access 'file' location='/home/sigma/.local/share/vlc/ml.xspf', path='/home/sigma/.local/share/vlc/ml.xspf' [0x20dca48] main access debug: looking for access module: 2 candidates [0x20dca48] filesystem access debug: opening file
/home/sigma/.local/share/vlc/ml.xspf'
[0x20dca48] main access debug: using access module "filesystem"
[0x20da3a8] main stream debug: Using stream method for AStream*
[0x20da3a8] main stream debug: starting pre-buffering
[0x20da3a8] main stream debug: received first data after 0 ms
[0x20da3a8] main stream debug: pre-buffering done 296 bytes in 0s - 11562 KiB/s
[0x20dae08] main stream debug: looking for stream_filter module: 7 candidates
[0x20dae08] main stream debug: no stream_filter module matching "any" could be loaded
[0x20dae08] main stream debug: looking for stream_filter module: 1 candidate
[0x20dae08] main stream debug: using stream_filter module "stream_filter_record"
[0x20d2938] main input debug: creating demux: access='file' demux='xspf-open' location='/home/sigma/.local/share/vlc/ml.xspf' file='/home/sigma/.local/share/vlc/ml.xspf'
[0x20deec8] main demux debug: looking for demux module: 1 candidate
[0x20deec8] playlist demux debug: using XSPF playlist reader
[0x20deec8] main demux debug: using demux module "playlist"
[0x20df838] main demux meta debug: looking for meta reader module: 2 candidates
[0x20df838] lua demux meta debug: Trying Lua scripts in /home/sigma/.local/share/vlc/lua/meta/reader
[0x20df838] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x20df838] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x20df838] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x20df838] main demux meta debug: no meta reader module matching "any" could be loaded
[0x20d2938] main input debug: file/xspf-open:///home/sigma/.local/share/vlc/ml.xspf' successfully opened [0x20edc68] main xml reader debug: looking for xml reader module: 1 candidate [0x20edc68] main xml reader debug: using xml reader module "xml" [0x20deec8] playlist demux debug: parsed 0 tracks successfully [0x20d2938] main input debug: EOF reached [0x20deec8] main demux debug: removing module "playlist" [0x20dae08] main stream debug: removing module "stream_filter_record" [0x20dca48] main access debug: removing module "filesystem" [0x20d8288] main interface debug: looking for interface module: 1 candidate [0x20d8288] main interface debug: using interface module "hotkeys" [0x20d2d68] main interface debug: looking for interface module: 1 candidate [0x20d2d68] logger interface: using logger. [0x20d2d68] logger interface warning: no log filename provided, using
vlc-log.txt'
[0x20d2d68] logger interface debug: opening logfile vlc-log.txt' [0x20d2d68] main interface debug: using interface module "logger" [0x20d7688] main interface debug: looking for interface module: 1 candidate [0x20d7688] main interface debug: using interface module "globalhotkeys" [0x20d7948] main interface debug: looking for interface module: 1 candidate [0x20d7948] dbus interface debug: listening on dbus as: org.mpris.MediaPlayer2.vlc.instance4141 [0x20d0208] main playlist debug: playlist threads correctly activated [0x20d0208] main playlist debug: rebuilding array of current - root Playlist [0x20d7948] main interface debug: using interface module "dbus" [0x20d0208] main playlist debug: rebuild done - 0 items, index -1 [0x20e95e8] main interface debug: looking for interface module: 1 candidate [0x20e95e8] main interface debug: using interface module "inhibit" [0x2094108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [0x20eab08] main interface debug: looking for interface module: 5 candidates [0x24aee78] main generic debug: looking for extension module: 1 candidate [0x24aee78] lua generic debug: Opening Lua Extension module [0x24aee78] lua generic debug: Trying Lua scripts in /home/sigma/.local/share/vlc/lua/extensions [0x24aee78] lua generic debug: Trying Lua scripts in /usr/lib/vlc/lua/extensions [0x24aee78] lua generic debug: Trying Lua scripts in /usr/share/vlc/lua/extensions [0x24aee78] main generic debug: using extension module "lua" [0x20eab08] main interface debug: using interface module "qt4" [0x20d0208] main playlist debug: adding item
v4l2:///dev/video2' ( v4l2:///dev/video2 )
[0x20d0208] main playlist debug: rebuilding array of current - root Playlist
[0x20d0208] main playlist debug: rebuild done - 1 items, index -1
[0x20d0208] main playlist debug: processing request item: v4l2:///dev/video2, node: null, skip: 0
[0x20d0208] main playlist debug: resyncing on v4l2:///dev/video2
[0x20d0208] main playlist debug: v4l2:///dev/video2 is at 0
[0x20d0208] main playlist debug: starting playback of the new playlist item
[0x20d0208] main playlist debug: creating new input thread
[0x28e3778] main input debug: Creating an input for 'v4l2:///dev/video2'
[0x20d7948] dbus interface debug: Getting All properties
[0x20eab08] qt4 interface debug: Adding a new MRL to recent ones: v4l2:///dev/video2
[0x20eab08] qt4 interface debug: IM: Setting an input
[0x28e3778] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x28e3778] main input debug: v4l2:///dev/video2' gives access
v4l2' demux ' path
/dev/video2'
[0x28e3778] main input debug: creating demux: access='v4l2' demux='' location='/dev/video2' file='/dev/video2'
[0x24752a8] main demux debug: looking for access_demux module: 1 candidate
[0x24752a8] v4l2 demux debug: opening device '/dev/video2'
libv4l2: error getting pixformat: Invalid argument
[0x24752a8] v4l2 demux warning: cannot initialize user-space library: Invalid argument
[0x24752a8] v4l2 demux debug: device Dummy video device using driver v4l2 loopback (version 0.5.0) on
[0x24752a8] v4l2 demux debug: with unknown capabilities (overall 0x05000003)
[0x24752a8] v4l2 demux error: invalid video input 0: Invalid argument
[0x24752a8] main demux debug: no access_demux module matching "v4l2" could be loaded
[0x28e3778] main input debug: creating access 'v4l2' location='/dev/video2', path='/dev/video2'
[0x28ecc08] main access debug: looking for access module: 1 candidate
[0x28ecc08] v4l2 access debug: opening device '/dev/video2'
libv4l2: error getting pixformat: Invalid argument
[0x28ecc08] v4l2 access warning: cannot initialize user-space library: Invalid argument
[0x28ecc08] v4l2 access debug: device Dummy video device using driver v4l2 loopback (version 0.5.0) on
[0x28ecc08] v4l2 access debug: the device has the capabilities: 0x05000003
[0x28ecc08] v4l2 access debug: (X) Video Capture, ( ) Audio, ( ) Tuner, ( ) Radio
[0x28ecc08] v4l2 access debug: (X) Read/Write, (X) Streaming, ( ) Asynchronous
[0x28ecc08] v4l2 access error: invalid video input 0: Invalid argument
[0x28ecc08] main access debug: no access module matching "v4l2" could be loaded
[0x28e3778] main input error: open of `v4l2:///dev/video2' failed
[0x20d0208] main playlist debug: no fetch required for (null) (art currently (null))
[0x20d0208] main playlist debug: dead input
[0x20d0208] main playlist debug: changing item without a request (current 0/1)
[0x20d0208] main playlist debug: nothing to play
[0x20eab08] qt4 interface debug: IM: Deleting the input
[0x2094108] main libvlc debug: exiting
[0x2094108] main libvlc debug: deactivating the playlist
[0x20d0208] main playlist debug: deactivating the playlist
[0x29003d8] main playlist export debug: saving Media Library to file /home/sigma/.local/share/vlc/ml.xspf
[0x29003d8] main playlist export debug: looking for playlist export module: 1 candidate
[0x29003d8] main playlist export debug: using playlist export module "export"
[0x29003d8] main playlist export debug: removing module "export"
[0x20d0208] main playlist debug: playlist correctly deactivated
[0x2094108] main libvlc debug: removing all services discovery tasks
[0x2094108] main libvlc debug: removing all interfaces
[0x20eab08] main interface debug: removing module "qt4"
[0x20eab08] qt4 interface debug: requesting exit...
[0x20eab08] qt4 interface debug: waiting for UI thread...
[0x20eab08] qt4 interface debug: QApp exec() finished
[0x20eab08] qt4 interface debug: Video is not needed anymore
[0x20eab08] qt4 interface debug: Killing extension dialog provider
[0x20eab08] qt4 interface debug: ExtensionsDialogProvider is quitting...
[0x24aee78] main generic debug: removing module "lua"
[0x24aee78] lua generic debug: Deactivating all loaded extensions
[0x24aee78] lua generic debug: All extensions are now deactivated
Application asked to unregister timer 0x1f000008 which is not registered in this thread. Fix application.
[0x20e95e8] main interface debug: removing module "inhibit"
[0x20d7948] main interface debug: removing module "dbus"
[0x20d7688] main interface debug: removing module "globalhotkeys"
[0x20d2d68] main interface debug: removing module "logger"
[0x20d8288] main interface debug: removing module "hotkeys"
[0x20d0208] main playlist debug: destroying
[0x2094108] main libvlc debug: removing stats
[0x2094108] main libvlc debug: removing module "memcpymmxext"
I just removed completely droidcam (which was not working anyway), to be sure there is no negative interference between droidcam and IPwebcam and your script in any sense. I followed the instructions here : http://www.dev47apps.com/droidcam/linuxx/ ("Removal" paragraph)
I restarted the computer twice, and now, the results were the following the two times:
I am sorry if this is a bit beyond the scope of your script, but a bit of help would be much appreciated if you have some time to spend.
I am now going to post the VLC results corresponding to trying to open the integrated webcam first and then the android phone cam using your script.
Sigma.
Trying to open the integrated webcam on /dev/video0 with the newer version of VLC returns :
VLC media player 2.1.0-git Rincewind (revision 2.1.0~~git20120418+r1416)
[0xfe4108] main libvlc debug: VLC media player - 2.1.0-git Rincewind
[0xfe4108] main libvlc debug: Copyright © 1996-2012 the VideoLAN team
[0xfe4108] main libvlc debug: revision 2.1.0~~git20120418+r1416
[0xfe4108] main libvlc debug: configured with ./configure '--enable-static' '--build=x86_64-linux-gnu' 'CFLAGS=-g -O2' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=0~r77~natty1' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-dbus' '--enable-dca' '--enable-dirac' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-oss' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-libva' '--enable-linsys' '--enable-pvr' '--enable-udev' '--enable-v4l2' 'build_alias=x86_64-linux-gnu'
[0xfe4108] main libvlc debug: searching plug-in modules
[0xfe4108] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0xfe4108] main libvlc debug: recursively browsing /usr/lib/vlc/plugins' [0xfe4108] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat [0xfe4108] main libvlc debug: plug-ins loaded: 416 modules [0xfe4108] main libvlc debug: opening config file (/home/sigma/.config/vlc/vlcrc) [0xfe4108] main libvlc debug: translation test: code is "en_GB" [0xfe4108] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 FPU [0xfe4108] main libvlc debug: looking for memcpy module: 4 candidates [0xfe4108] main libvlc debug: using memcpy module "memcpymmxext" [0x1022938] main input debug: Creating an input for 'Media Library' [0x1022938] main input debug: Input is a meta file: disabling unneeded options [0x1022938] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0x1022938] main input debug:
file/xspf-open:///home/sigma/.local/share/vlc/ml.xspf' gives access file' demux
xspf-open' path /home/sigma/.local/share/vlc/ml.xspf' [0x1022938] main input debug: creating demux: access='file' demux='xspf-open' location='/home/sigma/.local/share/vlc/ml.xspf' file='/home/sigma/.local/share/vlc/ml.xspf' [0x10287d8] main demux debug: looking for access_demux module: 3 candidates [0x10287d8] main demux debug: no access_demux module matching "file" could be loaded [0x1022938] main input debug: creating access 'file' location='/home/sigma/.local/share/vlc/ml.xspf', path='/home/sigma/.local/share/vlc/ml.xspf' [0x102ca48] main access debug: looking for access module: 2 candidates [0x102ca48] filesystem access debug: opening file
/home/sigma/.local/share/vlc/ml.xspf'
[0x102ca48] main access debug: using access module "filesystem"
[0x102a3a8] main stream debug: Using stream method for AStream*
[0x102a3a8] main stream debug: starting pre-buffering
[0x102a3a8] main stream debug: received first data after 0 ms
[0x102a3a8] main stream debug: pre-buffering done 296 bytes in 0s - 22235 KiB/s
[0x102ae08] main stream debug: looking for stream_filter module: 7 candidates
[0x102ae08] main stream debug: no stream_filter module matching "any" could be loaded
[0x102ae08] main stream debug: looking for stream_filter module: 1 candidate
[0x102ae08] main stream debug: using stream_filter module "stream_filter_record"
[0x1022938] main input debug: creating demux: access='file' demux='xspf-open' location='/home/sigma/.local/share/vlc/ml.xspf' file='/home/sigma/.local/share/vlc/ml.xspf'
[0x102eec8] main demux debug: looking for demux module: 1 candidate
[0x102eec8] playlist demux debug: using XSPF playlist reader
[0x102eec8] main demux debug: using demux module "playlist"
[0x102f838] main demux meta debug: looking for meta reader module: 2 candidates
[0x102f838] lua demux meta debug: Trying Lua scripts in /home/sigma/.local/share/vlc/lua/meta/reader
[0x102f838] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0x102f838] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0x102f838] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0x102f838] main demux meta debug: no meta reader module matching "any" could be loaded
[0x1022938] main input debug: file/xspf-open:///home/sigma/.local/share/vlc/ml.xspf' successfully opened [0x103dc68] main xml reader debug: looking for xml reader module: 1 candidate [0x103dc68] main xml reader debug: using xml reader module "xml" [0x102eec8] playlist demux debug: parsed 0 tracks successfully [0x1022938] main input debug: EOF reached [0x102eec8] main demux debug: removing module "playlist" [0x102ae08] main stream debug: removing module "stream_filter_record" [0x102ca48] main access debug: removing module "filesystem" [0x1028288] main interface debug: looking for interface module: 1 candidate [0x1028288] main interface debug: using interface module "hotkeys" [0x1022d68] main interface debug: looking for interface module: 1 candidate [0x1022d68] logger interface: using logger. [0x1022d68] logger interface warning: no log filename provided, using
vlc-log.txt'
[0x1022d68] logger interface debug: opening logfile vlc-log.txt' [0x1022d68] main interface debug: using interface module "logger" [0x1027688] main interface debug: looking for interface module: 1 candidate [0x1027688] main interface debug: using interface module "globalhotkeys" [0x1027948] main interface debug: looking for interface module: 1 candidate [0x1027948] dbus interface debug: listening on dbus as: org.mpris.MediaPlayer2.vlc.instance2342 [0x1020208] main playlist debug: playlist threads correctly activated [0x1027948] main interface debug: using interface module "dbus" [0x10395e8] main interface debug: looking for interface module: 1 candidate [0x10395e8] main interface debug: using interface module "inhibit" [0xfe4108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [0x103a7b8] main interface debug: looking for interface module: 5 candidates [0x1027948] dbus interface debug: Getting All properties [0x1027948] dbus interface debug: Getting All properties [0x1020208] main playlist debug: rebuilding array of current - root Playlist [0x1020208] main playlist debug: rebuild done - 0 items, index -1 [0x1027948] dbus interface debug: Getting property PlaybackStatus [0x1027948] dbus interface debug: Getting property PlaybackStatus [0x1027948] dbus interface debug: Getting property Metadata [0x1027948] dbus interface debug: Getting property Metadata [0x1027948] dbus interface debug: Getting All properties [0x1027948] dbus interface debug: Getting All properties [0x1027948] dbus interface debug: Getting property PlaybackStatus [0x1027948] dbus interface debug: Getting property PlaybackStatus [0x1027948] dbus interface debug: Getting property Metadata [0x1027948] dbus interface debug: Getting property Metadata [0x141d918] main generic debug: looking for extension module: 1 candidate [0x141d918] lua generic debug: Opening Lua Extension module [0x141d918] lua generic debug: Trying Lua scripts in /home/sigma/.local/share/vlc/lua/extensions [0x141d918] lua generic debug: Trying Lua scripts in /usr/lib/vlc/lua/extensions [0x141d918] lua generic debug: Trying Lua scripts in /usr/share/vlc/lua/extensions [0x141d918] main generic debug: using extension module "lua" [0x103a7b8] main interface debug: using interface module "qt4" [0x103a7b8] qt4 interface error: v4l2-chroma [0x103a7b8] qt4 interface error: v4l2-input [0x103a7b8] qt4 interface error: v4l2-audio-input [0x103a7b8] qt4 interface error: v4l2-width [0x103a7b8] qt4 interface error: v4l2-height [0x103a7b8] qt4 interface error: v4l2-aspect-ratio [0x103a7b8] qt4 interface error: v4l2-fps [0x103a7b8] qt4 interface error: v4l2-tuner-frequency [0x103a7b8] qt4 interface error: v4l2-tuner-audio-mode [0x103a7b8] qt4 interface error: v4l2-controls-reset [0x103a7b8] qt4 interface error: v4l2-brightness [0x103a7b8] qt4 interface error: v4l2-brightness-auto [0x103a7b8] qt4 interface error: v4l2-contrast [0x103a7b8] qt4 interface error: v4l2-saturation [0x103a7b8] qt4 interface error: v4l2-hue [0x103a7b8] qt4 interface error: v4l2-hue-auto [0x103a7b8] qt4 interface error: v4l2-white-balance-temperature [0x103a7b8] qt4 interface error: v4l2-auto-white-balance [0x103a7b8] qt4 interface error: v4l2-red-balance [0x103a7b8] qt4 interface error: v4l2-blue-balance [0x103a7b8] qt4 interface error: v4l2-gamma [0x103a7b8] qt4 interface error: v4l2-autogain [0x103a7b8] qt4 interface error: v4l2-gain [0x103a7b8] qt4 interface error: v4l2-sharpness [0x103a7b8] qt4 interface error: v4l2-chroma-gain [0x103a7b8] qt4 interface error: v4l2-chroma-gain-auto [0x103a7b8] qt4 interface error: v4l2-power-line-frequency [0x103a7b8] qt4 interface error: v4l2-backlight-compensation [0x103a7b8] qt4 interface error: v4l2-band-stop-filter [0x103a7b8] qt4 interface error: v4l2-hflip [0x103a7b8] qt4 interface error: v4l2-vflip [0x103a7b8] qt4 interface error: v4l2-rotate [0x103a7b8] qt4 interface error: v4l2-color-killer [0x103a7b8] qt4 interface error: v4l2-color-effect [0x103a7b8] qt4 interface error: v4l2-audio-volume [0x103a7b8] qt4 interface error: v4l2-audio-balance [0x103a7b8] qt4 interface error: v4l2-audio-mute [0x103a7b8] qt4 interface error: v4l2-audio-bass [0x103a7b8] qt4 interface error: v4l2-audio-treble [0x103a7b8] qt4 interface error: v4l2-audio-loudness [0x103a7b8] qt4 interface error: v4l2-set-ctrls [0x1020208] main playlist debug: adding item
v4l2:///dev/video0' ( v4l2:///dev/video0 )
[0x1020208] main playlist debug: rebuilding array of current - root Playlist
[0x1020208] main playlist debug: rebuild done - 1 items, index -1
[0x1020208] main playlist debug: processing request item: v4l2:///dev/video0, node: null, skip: 0
[0x1020208] main playlist debug: resyncing on v4l2:///dev/video0
[0x1020208] main playlist debug: v4l2:///dev/video0 is at 0
[0x1020208] main playlist debug: starting playback of the new playlist item
[0x1020208] main playlist debug: creating new input thread
[0x1879b98] main input debug: Creating an input for 'v4l2:///dev/video0'
[0x103a7b8] qt4 interface debug: Adding a new MRL to recent ones: v4l2:///dev/video0
[0x103a7b8] qt4 interface debug: IM: Setting an input
[0x1879b98] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x1027948] dbus interface debug: Getting property PlaybackStatus
[0x1879b98] main input debug: v4l2:///dev/video0' gives access
v4l2' demux ' path
/dev/video0'
[0x1879b98] main input debug: creating demux: access='v4l2' demux='' location='/dev/video0' file='/dev/video0'
[0x181b978] main demux debug: looking for access_demux module: 1 candidate
[0x181b978] v4l2 demux debug: opening device '/dev/video0'
[0x1020208] main playlist debug: no fetch required for (null) (art currently (null))
[0x181b978] v4l2 demux debug: device Integrated_Webcam_2M using driver uvcvideo (version 1.0.0) on usb-0000:00:1a.7-6
[0x181b978] v4l2 demux debug: with unknown capabilities (overall 0x05000001)
[0x181b978] v4l2 demux debug: video input Camera 1 (0) is camera
[0x181b978] v4l2 demux debug: selected input 0
[0x181b978] v4l2 demux debug: no video standard selection
[0x181b978] v4l2 demux debug: no tuning required (analog baseband input)
[0x181b978] v4l2 demux debug: no audio input available
[0x181b978] v4l2 demux debug: supports raw format YUYV (YUY2): YUV 4:2:2 (YUYV)
[0x181b978] v4l2 demux debug: supports compressed format MJPG (MJPG): MJPEG
[0x181b978] v4l2 demux debug: emulates raw format RGB3 (RV24): RGB3
[0x181b978] v4l2 demux debug: emulates raw format BGR3 (RV24): BGR3
[0x181b978] v4l2 demux debug: emulates raw format YU12 (I420): YU12
[0x181b978] v4l2 demux debug: emulates raw format YV12 (YV12): YV12
[0x181b978] v4l2 demux debug: selected format YUYV (YUY2)
[0x181b978] v4l2 demux debug: frame size 640x480
[0x181b978] v4l2 demux debug: discrete frame interval: 1/20
[0x181b978] v4l2 demux debug: frame size 352x288
[0x181b978] v4l2 demux debug: discrete frame interval: 1/30
[0x181b978] v4l2 demux debug: frame size 320x240
[0x181b978] v4l2 demux debug: discrete frame interval: 1/30
[0x181b978] v4l2 demux debug: frame size 176x144
[0x181b978] v4l2 demux debug: discrete frame interval: 1/30
[0x181b978] v4l2 demux debug: frame size 160x120
[0x181b978] v4l2 demux debug: discrete frame interval: 1/30
[0x181b978] v4l2 demux debug: frame size 800x600
[0x181b978] v4l2 demux debug: discrete frame interval: 1/30
[0x181b978] v4l2 demux debug: frame size 1024x768
[0x181b978] v4l2 demux debug: discrete frame interval: 1/20
[0x181b978] v4l2 demux debug: frame size 1280x1024
[0x181b978] v4l2 demux debug: discrete frame interval: 1/20
[0x181b978] v4l2 demux debug: frame size 1600x1200
[0x181b978] v4l2 demux debug: discrete frame interval: 1/20
[0x181b978] v4l2 demux debug: best discrete frame size: 800x600
[0x181b978] v4l2 demux warning: cannot reset cropping limits: Invalid argument
[0x181b978] v4l2 demux debug: 960000 bytes maximum for complete image
[0x181b978] v4l2 demux debug: Interlacing setting: progressive
[0x181b978] v4l2 demux debug: added new video ES YUY2 800x600
[0x181b978] v4l2 demux debug: frame rate: 20/1
[0x181b978] v4l2 demux debug: aspect ratio: 1/1
[0x1879b98] main input debug: selecting program id=0
[0x181b978] v4l2 demux debug: cannot reserve user buffers: Invalid argument
[0x181b978] v4l2 demux debug: streaming with 4 memory-mapped buffers
[0x181b978] v4l2 demux debug: integer Brightness (00980900)
[0x181b978] v4l2 demux debug: current: 0, default: 0
[0x181b978] v4l2 demux debug: integer Contrast (00980901)
[0x181b978] v4l2 demux debug: current: 0, default: 0
[0x181b978] v4l2 demux debug: integer Saturation (00980902)
[0x181b978] v4l2 demux debug: current: 64, default: 64
[0x181b978] v4l2 demux debug: integer Hue (00980903)
[0x181b978] v4l2 demux debug: current: 0, default: 0
[0x181b978] v4l2 demux debug: boolean White Balance Temperature, Auto (0098090C)
[0x181b978] v4l2 demux debug: current: true, default: true
[0x181b978] v4l2 demux debug: integer Gamma (00980910)
[0x181b978] v4l2 demux debug: current: 100, default: 100
[0x181b978] v4l2 demux debug: integer Gain (00980913)
[0x181b978] v4l2 demux debug: current: 0, default: 0
[0x181b978] v4l2 demux debug: menu Power Line Frequency (00980918)
[0x181b978] v4l2 demux debug: current: 0, default: 0
[0x181b978] v4l2 demux debug: choice 0) Disabled
[0x181b978] v4l2 demux debug: choice 1) 50 Hz
[0x181b978] v4l2 demux debug: choice 2) 60 Hz
[0x181b978] v4l2 demux debug: integer White Balance Temperature (0098091A)
[0x181b978] v4l2 demux debug: current: 4600, default: 4600
[0x181b978] v4l2 demux debug: integer Sharpness (0098091B)
[0x181b978] v4l2 demux debug: current: 2, default: 2
[0x181b978] v4l2 demux debug: integer Backlight Compensation (0098091C)
[0x181b978] v4l2 demux debug: current: 3, default: 3
[0x181b978] main demux debug: using access_demux module "v4l2"
[0x1879b98] main input debug: adding slave input 'alsa://'
[0x1879b98] main input debug: alsa://' gives access
alsa' demux ' path
'
[0x1879b98] main input debug: creating demux: access='alsa' demux='' location='' file='(null)'
[0x7f32e402aa98] main demux debug: looking for access_demux module: 1 candidate
[0x7f32e402aa98] access_alsa demux debug: Available alsa capture devices:
[0x7f32e402aa98] access_alsa demux debug: Intel (HDA Intel)
[0x7f32e402aa98] access_alsa demux debug: hw:0,0 : STAC92xx Analog (STAC92xx Analog)
[0x7f32e402aa98] access_alsa demux error: cannot open device hw for ALSA audio (Device or resource busy)
[0x7f32e402aa98] access_alsa demux error: cannot open device hw:0,0 for ALSA audio (Device or resource busy)
[0x7f32e402aa98] main demux debug: no access_demux module matching "alsa" could be loaded
[0x1879b98] main input debug: creating access 'alsa' location='', path='(null)'
[0x7f32e4042648] main access debug: looking for access module: 0 candidates
[0x7f32e4042648] main access debug: no access module matched "alsa"
[0x1879b98] main input error: open of alsa://' failed [0x7f32e4042648] main decoder debug: looking for decoder module: 29 candidates [0x7f32e4042648] main decoder debug: using decoder module "rawvideo" [0x7f32e4044188] main demux meta debug: looking for meta reader module: 2 candidates [0x7f32e4044188] lua demux meta debug: Trying Lua scripts in /home/sigma/.local/share/vlc/lua/meta/reader [0x7f32e4044188] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x7f32e4044188] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x7f32e4044188] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x7f32e4044188] main demux meta debug: no meta reader module matching "any" could be loaded [0x1879b98] main input debug:
v4l2:///dev/video0' successfully opened
[0x1879b98] main input debug: Buffering 0%
[0x7f32e4042648] rawvideo decoder warning: invalid frame size (8168 < 960000)
[0x1879b98] main input debug: Buffering 17%
[0x1865f88] main spu text debug: looking for text renderer module: 2 candidates
[0x1865f88] freetype spu text debug: Building font databases.
[0x1865f88] freetype spu text debug: Took 1 microseconds
[0x1865f88] freetype spu text debug: Using Serif Bold as font from file /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
[0x1865f88] freetype spu text debug: using fontsize: 2
[0x1865f88] main spu text debug: using text renderer module "freetype"
[0x1864d48] main scale debug: looking for video filter2 module: 18 candidates
[0x1864d48] swscale scale debug: 32x32 chroma: YUVA -> 16x16 chroma: RGBA with scaling using Bicubic (good quality)
[0x1864d48] main scale debug: using video filter2 module "swscale"
[0x1833d28] main scale debug: looking for video filter2 module: 18 candidates
[0x1833d28] yuvp scale debug: YUVP to YUVA converter
[0x1833d28] main scale debug: using video filter2 module "yuvp"
[0x1848c28] main video output debug: Deinterlacing available
[0x1848c28] main video output debug: deinterlace 0, mode blend, is_needed 0
[0x1848c28] main video output debug: Opening vout display wrapper
[0x1825818] main vout display debug: looking for vout display module: 6 candidates
[0x1867238] main window debug: looking for vout window xid module: 4 candidates
[0x1867238] qt4 window debug: requesting video...
[0x103a7b8] qt4 interface debug: Video was requested 0, 0
[0x1867238] main window debug: using vout window xid module "qt4"
[0x18335b8] main inhibit debug: looking for inhibit module: 2 candidates
[0x18335b8] main inhibit debug: using inhibit module "xdg_screensaver"
It looks as if the lack of audio stream causes VLC to stop. On the older version, it realised that audio stream was missing, but kept playing things OK.
Trying to open /dev/video1 with the newer version of VLC (and the script running) returns :
VLC media player 2.1.0-git Rincewind (revision 2.1.0~~git20120418+r1416)
[0xeb4108] main libvlc debug: VLC media player - 2.1.0-git Rincewind
[0xeb4108] main libvlc debug: Copyright © 1996-2012 the VideoLAN team
[0xeb4108] main libvlc debug: revision 2.1.0~~git20120418+r1416
[0xeb4108] main libvlc debug: configured with ./configure '--enable-static' '--build=x86_64-linux-gnu' 'CFLAGS=-g -O2' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=0~r77~natty1' '--enable-a52' '--enable-aa' '--enable-bluray' '--enable-bonjour' '--enable-caca' '--enable-dbus' '--enable-dca' '--enable-dirac' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-oss' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-samplerate' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-libva' '--enable-linsys' '--enable-pvr' '--enable-udev' '--enable-v4l2' 'build_alias=x86_64-linux-gnu'
[0xeb4108] main libvlc debug: searching plug-in modules
[0xeb4108] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins.dat
[0xeb4108] main libvlc debug: recursively browsing /usr/lib/vlc/plugins' [0xeb4108] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins.dat [0xeb4108] main libvlc debug: plug-ins loaded: 416 modules [0xeb4108] main libvlc debug: opening config file (/home/sigma/.config/vlc/vlcrc) [0xeb4108] main libvlc debug: translation test: code is "en_GB" [0xeb4108] main libvlc debug: CPU has capabilities MMX MMXEXT SSE SSE2 SSE3 SSSE3 SSE4.1 FPU [0xeb4108] main libvlc debug: looking for memcpy module: 4 candidates [0xeb4108] main libvlc debug: using memcpy module "memcpymmxext" [0xef2938] main input debug: Creating an input for 'Media Library' [0xef2938] main input debug: Input is a meta file: disabling unneeded options [0xef2938] main input debug: using timeshift granularity of 50 MiB, in path '/tmp' [0xef2938] main input debug:
file/xspf-open:///home/sigma/.local/share/vlc/ml.xspf' gives access file' demux
xspf-open' path /home/sigma/.local/share/vlc/ml.xspf' [0xef2938] main input debug: creating demux: access='file' demux='xspf-open' location='/home/sigma/.local/share/vlc/ml.xspf' file='/home/sigma/.local/share/vlc/ml.xspf' [0xef87d8] main demux debug: looking for access_demux module: 3 candidates [0xef87d8] main demux debug: no access_demux module matching "file" could be loaded [0xef2938] main input debug: creating access 'file' location='/home/sigma/.local/share/vlc/ml.xspf', path='/home/sigma/.local/share/vlc/ml.xspf' [0xefca48] main access debug: looking for access module: 2 candidates [0xefca48] filesystem access debug: opening file
/home/sigma/.local/share/vlc/ml.xspf'
[0xefca48] main access debug: using access module "filesystem"
[0xefa3a8] main stream debug: Using stream method for AStream*
[0xefa3a8] main stream debug: starting pre-buffering
[0xefa3a8] main stream debug: received first data after 0 ms
[0xefa3a8] main stream debug: pre-buffering done 296 bytes in 0s - 22235 KiB/s
[0xefae08] main stream debug: looking for stream_filter module: 7 candidates
[0xefae08] main stream debug: no stream_filter module matching "any" could be loaded
[0xefae08] main stream debug: looking for stream_filter module: 1 candidate
[0xefae08] main stream debug: using stream_filter module "stream_filter_record"
[0xef2938] main input debug: creating demux: access='file' demux='xspf-open' location='/home/sigma/.local/share/vlc/ml.xspf' file='/home/sigma/.local/share/vlc/ml.xspf'
[0xefeec8] main demux debug: looking for demux module: 1 candidate
[0xefeec8] playlist demux debug: using XSPF playlist reader
[0xefeec8] main demux debug: using demux module "playlist"
[0xeff838] main demux meta debug: looking for meta reader module: 2 candidates
[0xeff838] lua demux meta debug: Trying Lua scripts in /home/sigma/.local/share/vlc/lua/meta/reader
[0xeff838] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader
[0xeff838] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac
[0xeff838] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[0xeff838] main demux meta debug: no meta reader module matching "any" could be loaded
[0xef2938] main input debug: file/xspf-open:///home/sigma/.local/share/vlc/ml.xspf' successfully opened [0xf0dc68] main xml reader debug: looking for xml reader module: 1 candidate [0xf0dc68] main xml reader debug: using xml reader module "xml" [0xefeec8] playlist demux debug: parsed 0 tracks successfully [0xef2938] main input debug: EOF reached [0xefeec8] main demux debug: removing module "playlist" [0xefae08] main stream debug: removing module "stream_filter_record" [0xefca48] main access debug: removing module "filesystem" [0xef8288] main interface debug: looking for interface module: 1 candidate [0xef8288] main interface debug: using interface module "hotkeys" [0xef2d68] main interface debug: looking for interface module: 1 candidate [0xef2d68] logger interface: using logger. [0xef2d68] logger interface warning: no log filename provided, using
vlc-log.txt'
[0xef2d68] logger interface debug: opening logfile vlc-log.txt' [0xef2d68] main interface debug: using interface module "logger" [0xef7688] main interface debug: looking for interface module: 1 candidate [0xef7688] main interface debug: using interface module "globalhotkeys" [0xef7948] main interface debug: looking for interface module: 1 candidate [0xef7948] dbus interface debug: listening on dbus as: org.mpris.MediaPlayer2.vlc.instance2416 [0xef0208] main playlist debug: playlist threads correctly activated [0xef7948] main interface debug: using interface module "dbus" [0xf095e8] main interface debug: looking for interface module: 1 candidate [0xf095e8] main interface debug: using interface module "inhibit" [0xeb4108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [0xf0ab08] main interface debug: looking for interface module: 5 candidates [0xef0208] main playlist debug: rebuilding array of current - root Playlist [0xef0208] main playlist debug: rebuild done - 0 items, index -1 [0x12b8248] main generic debug: looking for extension module: 1 candidate [0x12b8248] lua generic debug: Opening Lua Extension module [0x12b8248] lua generic debug: Trying Lua scripts in /home/sigma/.local/share/vlc/lua/extensions [0x12b8248] lua generic debug: Trying Lua scripts in /usr/lib/vlc/lua/extensions [0x12b8248] lua generic debug: Trying Lua scripts in /usr/share/vlc/lua/extensions [0x12b8248] main generic debug: using extension module "lua" [0xf0ab08] main interface debug: using interface module "qt4" [0xef0208] main playlist debug: adding item
v4l2:///dev/video1' ( v4l2:///dev/video1 )
[0xef0208] main playlist debug: no fetch required for (null) (art currently (null))
[0xef0208] main playlist debug: rebuilding array of current - root Playlist
[0xef0208] main playlist debug: rebuild done - 1 items, index -1
[0xef0208] main playlist debug: processing request item: v4l2:///dev/video1, node: null, skip: 0
[0xef0208] main playlist debug: resyncing on v4l2:///dev/video1
[0xef0208] main playlist debug: v4l2:///dev/video1 is at 0
[0xef0208] main playlist debug: starting playback of the new playlist item
[0xef0208] main playlist debug: creating new input thread
[0x16febd8] main input debug: Creating an input for 'v4l2:///dev/video1'
[0x16febd8] main input debug: using timeshift granularity of 50 MiB, in path '/tmp'
[0x16febd8] main input debug: v4l2:///dev/video1' gives access
v4l2' demux ' path
/dev/video1'
[0x16febd8] main input debug: creating demux: access='v4l2' demux='' location='/dev/video1' file='/dev/video1'
[0x7f6e100145b8] main demux debug: looking for access_demux module: 1 candidate
[0x7f6e100145b8] v4l2 demux debug: opening device '/dev/video1'
[0xef7948] dbus interface debug: Getting All properties
[0xf0ab08] qt4 interface debug: Adding a new MRL to recent ones: v4l2:///dev/video1
[0xf0ab08] qt4 interface debug: IM: Setting an input
libv4l2: error getting pixformat: Invalid argument
[0x7f6e100145b8] v4l2 demux warning: cannot initialize user-space library: Invalid argument
[0x7f6e100145b8] v4l2 demux debug: device Dummy video device using driver v4l2 loopback (version 0.5.0) on
[0x7f6e100145b8] v4l2 demux debug: with unknown capabilities (overall 0x05000003)
[0x7f6e100145b8] v4l2 demux error: invalid video input 0: Invalid argument
[0x7f6e100145b8] main demux debug: no access_demux module matching "v4l2" could be loaded
[0x16febd8] main input debug: creating access 'v4l2' location='/dev/video1', path='/dev/video1'
[0x7f6e10019458] main access debug: looking for access module: 1 candidate
[0x7f6e10019458] v4l2 access debug: opening device '/dev/video1'
libv4l2: error getting pixformat: Invalid argument
[0x7f6e10019458] v4l2 access warning: cannot initialize user-space library: Invalid argument
[0x7f6e10019458] v4l2 access debug: device Dummy video device using driver v4l2 loopback (version 0.5.0) on
[0xef7948] dbus interface debug: Getting All properties
[0x7f6e10019458] v4l2 access debug: the device has the capabilities: 0x05000003
[0x7f6e10019458] v4l2 access debug: (X) Video Capture, ( ) Audio, ( ) Tuner, ( ) Radio
[0x7f6e10019458] v4l2 access debug: (X) Read/Write, (X) Streaming, ( ) Asynchronous
[0x7f6e10019458] v4l2 access error: invalid video input 0: Invalid argument
[0x7f6e10019458] main access debug: no access module matching "v4l2" could be loaded
[0x16febd8] main input error: open of `v4l2:///dev/video1' failed
[0xef0208] main playlist debug: finished input
[0xef0208] main playlist debug: dead input
[0xef0208] main playlist debug: changing item without a request (current 0/1)
[0xef0208] main playlist debug: nothing to play
[0xef7948] dbus interface debug: Getting property PlaybackStatus
[0xef7948] dbus interface debug: Getting property PlaybackStatus
[0xef7948] dbus interface debug: Getting property Metadata
[0xef7948] dbus interface debug: Getting property Metadata
[0xef7948] dbus interface debug: Getting All properties
[0xf0ab08] qt4 interface debug: IM: Deleting the input
[0xef7948] dbus interface debug: Getting All properties
[0xef7948] dbus interface debug: Getting property PlaybackStatus
[0xef7948] dbus interface debug: Getting property PlaybackStatus
[0xef7948] dbus interface debug: Getting property Metadata
[0xef7948] dbus interface debug: Getting property Metadata
[0xeb4108] main libvlc debug: exiting
[0xeb4108] main libvlc debug: deactivating the playlist
[0xef0208] main playlist debug: deactivating the playlist
[0x7f6e10018fb8] main playlist export debug: saving Media Library to file /home/sigma/.local/share/vlc/ml.xspf
[0x7f6e10018fb8] main playlist export debug: looking for playlist export module: 1 candidate
[0x7f6e10018fb8] main playlist export debug: using playlist export module "export"
[0x7f6e10018fb8] main playlist export debug: removing module "export"
[0xef0208] main playlist debug: playlist correctly deactivated
[0xeb4108] main libvlc debug: removing all services discovery tasks
[0xeb4108] main libvlc debug: removing all interfaces
[0xf0ab08] main interface debug: removing module "qt4"
[0xf0ab08] qt4 interface debug: requesting exit...
[0xf0ab08] qt4 interface debug: waiting for UI thread...
[0xf0ab08] qt4 interface debug: QApp exec() finished
[0xf0ab08] qt4 interface debug: Video is not needed anymore
[0xf0ab08] qt4 interface debug: Killing extension dialog provider
[0xf0ab08] qt4 interface debug: ExtensionsDialogProvider is quitting...
[0x12b8248] main generic debug: removing module "lua"
[0x12b8248] lua generic debug: Deactivating all loaded extensions
[0x12b8248] lua generic debug: All extensions are now deactivated
[0xf095e8] main interface debug: removing module "inhibit"
[0xef7948] main interface debug: removing module "dbus"
[0xef7688] main interface debug: removing module "globalhotkeys"
[0xef2d68] main interface debug: removing module "logger"
[0xef8288] main interface debug: removing module "hotkeys"
[0xef0208] main playlist debug: destroying
[0xeb4108] main libvlc debug: removing stats
[0xeb4108] main libvlc debug: removing module "memcpymmxext"
So I think it is pretty much the same problem as before... and I still do not have any clue what it is or what to do about it.
Sigma.
Hmm, let's see. If the graph works, then we're writing properly to the v4l2loopback device. However, we can't play it back using neither mplayer nor VLC, even though we've updated VLC.
Let's look into the v4l2loopback device a bit. I believe you have v4l2loopback version 0.5.0. First, what's your kernel version? Check it with
uname -r
According to the author, 2.6.27 and older does not work, 2.6.28 - 2.6.31 are untested, and anything newer than 2.6.32 should work.
You should also run the prepare-videochat.sh script and post the results of this command:
v4l-ctl -d1 --all
There might be some differences in the image format that confuse mplayer and VLC, perhaps.
Allright.
My version of v4l2loopback-dkms is indeed 0.5.0-1.
My version of the kernel is : 2.6.38-14-generic
Finally, v4l-ctl was not found on my laptop :
v4l-ctl -d1 --all No command 'v4l-ctl' found, did you mean: Command 'v4l2-ctl' from package 'ivtv-utils' (multiverse) Command 'v4lctl' from package 'xawtv' (universe) v4l-ctl: command not found
I tested the second (xawtv) first and it did not work, so I tried the first one second (ivtv-utils). I finally got (while prepare-videochat was running in another command window) :
v4l2-ctl -d1 --all Driver Info: Driver name : v4l2 loopback Card type : Dummy video device Bus info : Driver version: 1280 Capabilities : 0x05000003 Video Capture Video Output Read/Write Streaming Format Video Output: Width/Height : 0/0 Pixel Format : 'BGR4' Field : None Bytes per Line: 480 Size Image : 460800 Colorspace : SRGB Video output: 0 (loopback in) Video Standard = 0x00ffffff PAL-B/B1/G/H/I/D/D1/K/M/N/Nc/60 NTSC-M/M-JP/443/M-KR SECAM-B/D/G/H/K/K1/L/Lc
Is that OK ?
Oops, sorry, it should have been v4l2-ctl instead. The kernel version should be fine, then.
Just for fun, I tried : $v4l2-ctl --list-devices Dummy video device (): /dev/video1
Integrated_Webcam_2M (usb-0000:00:1a.7-6): /dev/video0
allright. I installed the correct package and I ran the test. The results are in one of my previous posts. Le 18 avr. 2012 16:36, "Antonio García-Domínguez" < reply@reply.github.com> a écrit :
Oops, sorry, it should have been v4l2-ctl instead. The kernel version should be fine, then.
Reply to this email directly or view it on GitHub: https://github.com/bluezio/ipwebcam-gst/issues/4#issuecomment-5199967
These are my results from "v4l2-ctl --all":
Driver Info (not using libv4l2): Driver name : v4l2 loopback Card type : Dummy video device Bus info : Driver version: 0.5.0 Capabilities : 0x05000003 Video Capture Video Output Read/Write Streaming Format Video Capture: Width/Height : 720/480 Pixel Format : 'YV12' Field : None Bytes per Line: 720 Size Image : 518400 Colorspace : SRGB Format Video Output: Width/Height : 720/480 Pixel Format : 'YV12' Field : None Bytes per Line: 720 Size Image : 518400 Colorspace : SRGB Video input : 0 (loopback: ok) Video output: 0 (loopback in) Video Standard = 0x00ffffff PAL-B/B1/G/H/I/D/D1/K/M/N/Nc/60 NTSC-M/M-JP/443/M-KR SECAM-B/D/G/H/K/K1/L/Lc Streaming Parameters Video Capture: Frames per second: 30.000 (30/1) Read buffers : 8 Streaming Parameters Video Output: Frames per second: 30.000 (30/1) Write buffers : 8
There are quite a few differences here and there. The most worrying part is that the driver version is different, you don't have any "Format Video Capture" section, and the "Format Video Output" section is clearly wrong: it reports that the image has 0x0 size and that it uses SRGB4, while the right value would be to use 720/480 and the YV12 colorspace.
Which resolution and quality setting are you using? I'm using 720x480 at 50% quality.
Have you set up some username or password? I haven't.
I moved my resolution in IPwebcam to 720*480 with 50% quality, and I have never set any kind of password/username with this software...
I also removed v4l2-loopback-dkms using Synaptic, then I downloaded it from the github project page, I compiled and installed it and the result is still the same : $v4l2-ctl -d1 --all Driver Info: Driver name : v4l2 loopback Card type : Dummy video device Bus info : Driver version: 1280 Capabilities : 0x05000003 Video Capture Video Output Read/Write Streaming Format Video Output: Width/Height : 0/0 Pixel Format : 'BGR4' Field : None Bytes per Line: 480 Size Image : 518400 Colorspace : SRGB Video output: 0 (loopback in) Video Standard = 0x00ffffff PAL-B/B1/G/H/I/D/D1/K/M/N/Nc/60 NTSC-M/M-JP/443/M-KR SECAM-B/D/G/H/K/K1/L/Lc
I don't know at all why the driver version is not correct (to start with something !)...
Do you have any clue ?
(and, once again, thank you for your time and energy)
Sigma
Just to be sure : when you execute the script, do you also get a libv4l2 error getting pixformat, as I do :
$./prepare-videochat.sh Starting: Intent { act=android.intent.action.MAIN cmp=com.pas.webcam/.Rolling } 2246 Setting pipeline to PAUSED ... libv4l2: error getting pixformat: Invalid argument Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: GstSystemClock /GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:sink: caps = image/jpeg /GstPipeline:pipeline0/GstJpegDec:jpegdec0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)480, height=(int)720, framerate=(fraction)0/1 /GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)720, interlaced=(boolean)false /GstPipeline:pipeline0/GstFFMpegCsp:ffmpegcsp0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)I420, width=(int)480, height=(int)720, framerate=(fraction)0/1 /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)720, interlaced=(boolean)false /GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)720, interlaced=(boolean)false /GstPipeline:pipeline0/GstVideoFlip:videoflip0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)720, interlaced=(boolean)false /GstPipeline:pipeline0/GstVideoFlip:videoflip0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)720, interlaced=(boolean)false /GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)720, interlaced=(boolean)false /GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)720, interlaced=(boolean)false /GstPipeline:pipeline0/GstVideoRate:videorate0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)720, interlaced=(boolean)false /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)YV12, framerate=(fraction)0/1, width=(int)480, height=(int)720, interlaced=(boolean)false FOUND TAG : found by element "wavparse0". audio codec: Uncompressed 16-bit PCM audio /GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:src: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, rate=(int)44100, channels=(int)1 /GstPipeline:pipeline0/GstAudioConvert:audioconvert0.GstPad:sink: caps = audio/x-raw-int, endianness=(int)1234, channels=(int)1, width=(int)16, depth=(int)16, signed=(boolean)true, rate=(int)44100 /GstPipeline:pipeline0/GstVolume:volume0.GstPad:src: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, rate=(int)44100, channels=(int)1 /GstPipeline:pipeline0/GstVolume:volume0.GstPad:sink: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, rate=(int)44100, channels=(int)1 /GstPipeline:pipeline0/GstRgLimiter:rglimiter0.GstPad:src: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, rate=(int)44100, channels=(int)1 /GstPipeline:pipeline0/GstRgLimiter:rglimiter0.GstPad:sink: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, rate=(int)44100, channels=(int)1 /GstPipeline:pipeline0/GstPulseSink:pulsesink0.GstPad:sink: caps = audio/x-raw-float, endianness=(int)1234, width=(int)32, rate=(int)44100, channels=(int)1 /GstPipeline:pipeline0/GstPulseSink:pulsesink0: volume = 1.000000 /GstPipeline:pipeline0/GstPulseSink:pulsesink0: mute = FALSE
Allright. Apparently, there was a problem with my v4l2-ctl... I was using the one of ivtv-utils. I installed v4l-utils again with Synaptic, and Synaptic removed ivtv utils. So, now, I get :
$v4l2-ctl -d1 --all Driver Info (not using libv4l2): Driver name : v4l2 loopback Card type : Dummy video device Bus info : Driver version: 0.5.0 Capabilities : 0x05000003 Video Capture Video Output Read/Write Streaming Format Video Output: Width/Height : 0/0 Pixel Format : 'BGR4' Field : None Bytes per Line: 480 Size Image : 518400 Colorspace : SRGB Video output: 0 (loopback in) Video Standard = 0x00ffffff PAL-B/B1/G/H/I/D/D1/K/M/N/Nc/60 NTSC-M/M-JP/443/M-KR SECAM-B/D/G/H/K/K1/L/Lc Streaming Parameters Video Capture: Frames per second: 30.000 (30/1) Read buffers : 8 Streaming Parameters Video Output: Frames per second: 30.000 (30/1) Write buffers : 8
I guess it is much better : the driver version is good, at least :). However, it still does not work, and for example the output video format is not yet good. Maybe there is a link with libv4l2 having problem getting pixformat while using prepare-videochat.sh (see one of my previous posts) ?
Do you have any idea of what I could do next ?
In order to try to move forward, I tried using gst-launch direclty with $gst-launch-0.10 videotestsrc ! v4l2sink device=/dev/video1
and viewing the result with mplayer $mplayer tv:// -tv device=/dev/video1
and it turns out that this worked ! My v4l2-ctl gave me with this example : v4l2-ctl -d1 --all Driver Info (not using libv4l2): Driver name : v4l2 loopback Card type : Dummy video device Bus info : Driver version: 0.5.0 Capabilities : 0x05000003 Video Capture Video Output Read/Write Streaming Format Video Capture: Width/Height : 320/240 Pixel Format : 'YUYV' Field : None Bytes per Line: 640 Size Image : 153600 Colorspace : SRGB Format Video Output: Width/Height : 320/240 Pixel Format : 'YUYV' Field : None Bytes per Line: 640 Size Image : 153600 Colorspace : SRGB Video input : 0 (loopback: ok) Video output: 0 (loopback in) Video Standard = 0x00ffffff PAL-B/B1/G/H/I/D/D1/K/M/N/Nc/60 NTSC-M/M-JP/443/M-KR SECAM-B/D/G/H/K/K1/L/Lc Streaming Parameters Video Capture: Frames per second: 30.000 (30/1) Read buffers : 8 Streaming Parameters Video Output: Frames per second: 30.000 (30/1) Write buffers : 8
So I think that maybe v4l2loopback is indeed working well, and the problem is before v4l2loopback, in the way gst-launch gets the video feed from the android phone and sends it to v4l2loopback (if I understood correctly). One of my questions is then : when adb is doing port forwarding (adb forward tcp:8080 tcp:8080), should I be able to open the videofeed in a web-browser at http://127.0.0.1:8080/videofeed ? Because this does not work on my laptop (but maybe this is normal).
Any idea or suggestion ?
Sigma.
ERRATUM : after forwarding the port with adb, opening http://127.0.0.1:8080/videofeed in firefox indeed works. Sorry for the mistake (I had forgotten the port number when I tried for the first time)... so I guess the problem is AFTER adb abd BEFORE v4l2loopback...
Here is something funny I found (I think I am getting close to the answer to my question) : when I type in a terminal window : $gst-launch souphttpsrc location="http://127.0.0.1:8080/videofeed" ! multipartdemux ! jpegdec ! ffmpegcolorspace ! "video/x-raw-yuv, format=(fourcc)YV12" ! v4l2sink device=/dev/video1 which is more or less the video-part of your script using gst-launch, EVERYTHING WORKS perfectly fine (meaning : I can open /dev/video1 with mplayer and get my phone's video). When I add the "videorate" option, it no longer works : I get a green video (with the good size). I am going to see what I should modify in the sound-part of your script to have something runnin properly :).
Sorry for the wait: I was on yet another trip :-).
I'm glad you got it (partially) working. I'm afraid the GStreamer graph is a bit finicky, depending on your version. I had to add videorate to get it working in my current setup, for some reason. However, it clearly breaks the process in your case :-/.
Did you get anything working on the sound part?
Well, it's been a while since the last comment. I'll close it for now. If anything else happens, please feel free to open another issue :-).
Hi Antonio,
Here I am after tweeting with you. Please let me know what information you need to (try to) help me solving my problem :).
Best,
Sigma.