VLC cannot X11 forward

*nix specific usage questions
generic
New Cone
New Cone
Posts: 2
Joined: 14 Jan 2010 12:49

VLC cannot X11 forward

Postby generic » 14 Jan 2010 13:13

Hi all,

Here is what I'm trying to do and the problem I'm facing:

I try to run vlc on arm-linux headless platform and forward the video window to other X11 Linux PC with a display.
I set the DISPLAY variable on the arm-linux and also all allowed incomming tcp connections on 6000 X11 port at the PC.
I also have my camera recognized by the arm-linux board (as you can see from the lines below...).
When I run vlc it forwards and opens a video window on at the Linux PC but with just a black screen and nothing else.

vlc -I rc -vvv v4l:// :v4l-vdev="/dev/video0" :v4l-adev="" :v4l-norm=3 :v4l-frequency=-1

VLC media player 0.8.6h Janus
starting VLC root wrapper... using UID 0 (root)
***************************************
* Running VLC as root is discouraged. *
***************************************

It is potentially dangerous, and might not even work properly.
[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file /root/.vlc/cache/plugins-04041e.dat
[00000001] main private debug: recursively browsing `/usr/lib/vlc'
[00000001] main private debug: module bank initialized, found 216 modules
[00000001] main private debug: opening config file /root/.vlc/vlcrc
[00000001] main private warning: config file /root/.vlc/vlcrc does not exist yet
[00000001] main private debug: CPU has capabilities
[00000001] main private debug: looking for memcpy module: 1 candidate
[00000001] main private debug: using memcpy module "memcpy"
[00000281] main playlist debug: waiting for thread completion
[00000281] main playlist debug: thread 1095566560 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000282] main private debug: waiting for thread completion
[00000282] main private debug: thread 1103955168 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000283] main interface debug: looking for interface module: 1 candidate
[00000283] main interface debug: using interface module "hotkeys"
[00000283] main interface debug: thread 1112397024 (interface) created at priority 0 (interface/interface.c:231)
[00000285] main interface debug: looking for interface module: 1 candidate
[00000285] main interface debug: using interface module "screensaver"
[00000285] main interface debug: thread 1120822496 (interface) created at priority 0 (interface/interface.c:231)
[00000281] main playlist debug: adding playlist item `v4l://' ( v4l:// )
[00000287] main interface debug: looking for interface module: 5 candidates
Remote control interface initialized. Type `help' for help.
[00000287] main interface debug: using interface module "rc"
[00000281] main playlist debug: creating new input thread
[00000287] main interface debug: thread 1129288928 (manager) created at priority 0 (interface/interface.c:216)
[00000289] main input debug: waiting for thread completion
[00000289] main input debug: creating statistics handler
[00000289] main input debug: `v4l://' gives access `v4l' demux `' path `'
[00000289] main input debug: creating demux: access='v4l' demux='' path=''
[00000291] main demuxer debug: looking for access_demux module: 1 candidate
status change: ( new input: v4l:// )
status change: ( audio volume: 256 )
[00000289] main input debug: thread 1137677536 (input) created at priority 0 (input/input.c:265)
status change: ( play state: 1 )
[00000291] v4l demuxer debug: V4L device USB2.0 Web Camera 1 channels 0 audios 48 < w < 640 32 < h < 480
[00000291] v4l demuxer debug: invalid width 0
[00000291] v4l demuxer debug: invalid height 0
[00000291] v4l demuxer debug: setting channel vc032x(0) 0 tuners flags=0x0 type=0x2 norm=0x0
[00000291] v4l demuxer debug: will use 640x480
[00000291] v4l demuxer debug: v4l device uses brightness: 0
[00000291] v4l demuxer debug: v4l device uses colour: 0
[00000291] v4l demuxer debug: v4l device uses hue: 0
[00000291] v4l demuxer debug: v4l device uses contrast: 0
[00000291] v4l demuxer debug: v4l device uses frame size: 460800
[00000291] v4l demuxer debug: v4l device uses chroma: I420
[00000291] v4l demuxer error: cannot open audio device (No such file or directory)
[00000291] v4l demuxer debug: v4l grabbing started
[00000291] v4l demuxer debug: added new video es I420 640x480
[00000289] main input debug: selecting program id=0
[00000291] main demuxer debug: using access_demux module "v4l"
[00000293] main decoder debug: looking for decoder module: 25 candidates
[00000293] main decoder debug: using decoder module "rawvideo"
[00000293] main decoder debug: thread 1151087840 (decoder) created at priority 0 (input/decoder.c:159)
[00000289] main input debug: `v4l://' successfully opened
[00000293] main decoder debug: no usable vout present, spawning one
[00000291] v4l demuxer error: failed syncing new frame
[00000338] main video output debug: window size: 640x480
[00000339] main private debug: Registering subpicture channel, ID: 2
[00000339] main private debug: Registering subpicture channel, ID: 3
[00000339] main private debug: Registering subpicture channel, ID: 4
[00000339] main private debug: Registering subpicture channel, ID: 5
[00000338] main video output debug: looking for video output module: 6 candidates
[00000291] v4l demuxer error: failed capturing new frame
[00000291] v4l demuxer error: failed capturing new frame
........... (many lines with "failed capturing new frame") ..........
[00000338] xvideo video output debug: adaptor 0, port 57, format 0x32315659 (YV12) planar
[00000291] v4l demuxer error: failed capturing new frame
[00000291] v4l demuxer error: failed capturing new frame
........... (many lines with "failed capturing new frame") ..........
[00000338] xvideo video output debug: XShm video extension v1.1 (without pixmaps, opcode: 140)
[00000291] v4l demuxer error: failed capturing new frame
[00000291] v4l demuxer error: failed capturing new frame
[00000291] v4l demuxer error: failed capturing new frame
[00000338] xvideo video output debug: Window manager supports NetWM
[00000291] v4l demuxer error: failed capturing new frame
[00000338] xvideo video output debug: Window manager supports _NET_WM_STATE_FULLSCREEN
[00000338] xvideo video output debug: Window manager supports _NET_WM_STATE_ABOVE
[00000338] xvideo video output debug: Window manager supports _NET_WM_STATE_BELOW
[00000338] main video output debug: using video output module "xvideo"
[00000338] main video output debug: waiting for thread completion
[00000338] xvideo video output error: cannot attach shared memory to X server
[00000338] xvideo video output warning: couldn't create SHM image, disabling SHM
[00000291] v4l demuxer error: failed capturing new frame
[00000338] main video output debug: got 8 direct buffer(s)
[00000338] main video output debug: picture in 640x480 (0,0,640x480), chroma I420, ar 4:3, sar 1:1
[00000338] main video output debug: picture user 640x480 (0,0,640x480), chroma I420, ar 4:3, sar 1:1
[00000338] main video output debug: picture out 640x480 (0,0,640x480), chroma I420, ar 4:3, sar 1:1
[00000338] main video output debug: direct render, mapping render pictures 0-6 to system pictures 1-7
[00000291] v4l demuxer error: failed capturing new frame
[00000338] main video output debug: thread 1161733344 (video output) created at priority 0 (video_output/video_output.c:421)
[00000291] v4l demuxer error: failed capturing new frame
[00000291] v4l demuxer error: failed capturing new frame
[00000338] main video output warning: late picture skipped (1263595)
[00000291] v4l demuxer error: failed capturing new frame
[00000291] v4l demuxer error: failed capturing new frame

So any kind of ideas or help are more than welcome!

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: VLC cannot X11 forward

Postby xtophe » 14 Jan 2010 17:16

-V x11
Xtophe

Rémi Denis-Courmont
Developer
Developer
Posts: 15135
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: VLC cannot X11 forward

Postby Rémi Denis-Courmont » 14 Jan 2010 17:20

It looks like V4L is not working. This is not very surprising as VLC 0.8.6 is extremely old and had very incomplete V4L support in general.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

generic
New Cone
New Cone
Posts: 2
Joined: 14 Jan 2010 12:49

Re: VLC cannot X11 forward

Postby generic » 14 Jan 2010 21:39

The -V X11 option doesn't change the situation at all. Could you please explain in more details what it is supposed to do?

@Rémi Denis-Courmont

I have unupdated old version of Ubuntu 8.04 where I have the same 0.8.6h Janus version installed from the repos and it works perfectly with the same webcam, so I really doubt that the problem is with the version of the vlc application.

May be I'm missing some kernel modules or some kind of library, but I don,t know what I need to make things work properly :(

10X for the replies


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 14 guests