Re: Smart TV on WiFi as Extra Display

2021-04-30 Thread Ralph Katz

On 4/19/21 5:24 AM, Barak A. Pearlmutter wrote:

I have a smart TV which includes a browser. (An LG running WebOS, as
it happens.) It can, of course, display video streams from a given
URL. So I'm hoping someone has figured out a way to create a virtual
display on a Debian computer which streams its contents out as a live
video stream on some nice port, and which X or Wayland or whatever
sees as an extra display in xrandr or Gnome Settings>Displays or
whatever.

The dream:

- on Debian box, run /usr/local/bin/virtual-display -size 1920x1080 -port  &
- on TV, browse to http://192.168.0.246:
- go to Gnome Settings>Displays and enable/configure the new display
- enjoy extra screen without dog chewing HDMI cable

Bonus points for getting pulseaudio to have a new sink that sends
audio output to the outgoing stream.

Cheers,

--Barak A. Pearlmutter 



You may serve media files to the TV.  I also have an LG smart TV with 
webOS and used the debian gerbera  package to serve media files.  I was 
unable to use the tv remote for fast forward, etc, only mute audio and 
pause seemed to work.  gerbera won't provide the virtual display you seek.


Hope this helps.

Regards,
Ralph




Re: Smart TV on WiFi as Extra Display

2021-04-19 Thread Joe
On Mon, 19 Apr 2021 10:49:06 -0300
Eduardo M KALINOWSKI  wrote:

>
> 
> There are some wireless hdmi kits, you plug one in the computer, one
> in the display, and it works like a cable, but without the actual
> cable. You should be able to find them on Amazon and other stores.
> I've never tried them, though.
> 
> Naturally, you'll need an available HDMI port.
>

Many of them give excellent results over short distances, and this
application presumably will need to work only over such distances.

A possible drawback is that in my experience they will work only with
recognised TV standards, (1080p50/60, 720p50/60, PAL, NTSC and
sometimes 1080i50/60) which rules out many common monitor scan standards
but shouldn't be a problem with TV receivers. But I have a netbook which
has an HDMI output, which provides a second monitor facility. It is,
however, not capable of any resolution higher than the netbook's LCD,
which is similar to but not the same as 720p. 'Full HD', 1920 x 1080p,
should be OK.

-- 
Joe



Re: Re: Smart TV on WiFi as Extra Display

2021-04-19 Thread Dan Ritter
Barak A. Pearlmutter wrote: 
> I'd like to use the TV as an extra display for my laptop. Basically,
> as if it were connected with an HDMI cable, but over the network. And
> use both displays, the same way one usually uses two displays.
> 
> Unless there's a usage of x11vnc that I don't understand, there are
> two issues with using x11vnc for this purpose.
> 
> * First, WebOS does not have any available VNC client apps, so there's
> no straightforward way of getting the TV to display the VNCed display.
> 
> * Second, x11vnc allows remote viewing of an *existing* display. So if
> there were a vnc client for the TV, it would allow the display on my
> laptop to be mirrored to the TV, but would not make the TV into a
> second monitor.
> 
> But this does suggest a way to achieve the goal. (a) Set up a virtual
> frame buffer which X/Wayland/whatever can see/configure. (b) Use
> x11vnc -clip to get just the virtual thing. (c) Implement some simple
> VNC client which takes a VNC display and broadcasts it using a
> standard video codec that any web browser can stream.

Maybe your TV can play video from a URL? Maybe from an RTSP
stream? 

In which case something like this:

ffmpeg -video_size whateverxwhatever -framerate 30 -f x11grab -i :0 -f mpegts - 
\
 | vlc -I dummy - --sout='#std{access=http,mux=ts,dst=:8554}

might be what you want, producing http://yourmachinesip:8554 as
an RTSP video source.

Format would likely need to be adjusted, I have not tried this.

I have been told that WebOS tvs usually support miracast, in
which case:

https://github.com/albfan/miraclecast

and

https://01.org/wds

might be useful to you.


-dsr-



Re: Smart TV on WiFi as Extra Display

2021-04-19 Thread Stefan Monnier
> not support stretching your desktop to it) and it has a Java viewer 
> applet that can be used to connect to it from a web browser.

There's a good chance the browser hardcoded in the TV doesn't support
Java applets.


Stefan



Re: Smart TV on WiFi as Extra Display

2021-04-19 Thread Andrei POPESCU
On Lu, 19 apr 21, 14:17:05, Barak A. Pearlmutter wrote:
> I'd like to use the TV as an extra display for my laptop. Basically,
> as if it were connected with an HDMI cable, but over the network. And
> use both displays, the same way one usually uses two displays.
 
It seems you mean to expand your desktop to the TV. There are other 
possible uses for multiples displays, like running different X servers 
on each, or using one of them occasionally for specific purposes for 
which it's better suited, like using a TV for video ;)

> Unless there's a usage of x11vnc that I don't understand, there are
> two issues with using x11vnc for this purpose.
> 
> * First, WebOS does not have any available VNC client apps, so there's
> no straightforward way of getting the TV to display the VNCed display.
> 
> * Second, x11vnc allows remote viewing of an *existing* display. So if
> there were a vnc client for the TV, it would allow the display on my
> laptop to be mirrored to the TV, but would not make the TV into a
> second monitor.

As far as I can tell from the Wikipedia page x11vnc does have most of 
the features you are looking for: it can work with a virtual display 
(this appears to be similar to running two instances of X, so it might 
not support stretching your desktop to it) and it has a Java viewer 
applet that can be used to connect to it from a web browser.

> But this does suggest a way to achieve the goal. (a) Set up a virtual
> frame buffer which X/Wayland/whatever can see/configure. (b) Use
> x11vnc -clip to get just the virtual thing. (c) Implement some simple
> VNC client which takes a VNC display and broadcasts it using a
> standard video codec that any web browser can stream.
> 
> It seems like (c) shouldn't be too hard to hack up...

See above, as far as I can tell x11vnc can already do all of this.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature


Re: Re: Smart TV on WiFi as Extra Display

2021-04-19 Thread Barak A. Pearlmutter
> There are some wireless hdmi kits, you plug one in the computer, one in the 
> display, and it works like a cable, but without the actual cable. You should 
> be able to find them on Amazon and other stores. I've never tried them, 
> though.

Sure, that would work!

But it does seem a shame to not be able to do it in software, when the
two devices can already talk to each other over a nice local 5G
network.

I mean, when you think about it, what that "wireless hdmi kit" really
consists of is *software* living on a hardware substrate that
basically duplicates hardware that's already present. Proprietary
software! So I'd like to do the job on generic hardware, using free
software.

Cheers,

--Barak.



Re: Smart TV on WiFi as Extra Display

2021-04-19 Thread Darac Marjal

On 19/04/2021 12:24, Barak A. Pearlmutter wrote:
> I have a smart TV which includes a browser. (An LG running WebOS, as
> it happens.) It can, of course, display video streams from a given
> URL. So I'm hoping someone has figured out a way to create a virtual
> display on a Debian computer which streams its contents out as a live
> video stream on some nice port, and which X or Wayland or whatever
> sees as an extra display in xrandr or Gnome Settings>Displays or
> whatever.
>
> The dream:
>
> - on Debian box, run /usr/local/bin/virtual-display -size 1920x1080 -port 
>  &
> - on TV, browse to http://192.168.0.246:
> - go to Gnome Settings>Displays and enable/configure the new display
> - enjoy extra screen without dog chewing HDMI cable
>
> Bonus points for getting pulseaudio to have a new sink that sends
> audio output to the outgoing stream.

You might want to look at Apache Guacamole. It's a web application that
acts as a VNC/RDP/SSH client (that is, a web browser connects to
Guacamole, and Guacamole makes a separate connection to a VNC/RDP/SSH
server and renders the result in the browser).  There are instructions
in the manual for configuring audio with VNC and RDP.

I think the tricker part would be sending the appropriate Xinerama
notifications or whatever is required to tell the X server "A second
monitor has been plugged in", but perhaps someone better acquainted with
VNC or RDP can say if that's easily done.


>
> Cheers,
>
> --Barak A. Pearlmutter 
>



OpenPGP_signature
Description: OpenPGP digital signature


Re: Smart TV on WiFi as Extra Display

2021-04-19 Thread Eduardo M KALINOWSKI

On 19/04/2021 08:24, Barak A. Pearlmutter wrote:

I have a smart TV which includes a browser. (An LG running WebOS, as
it happens.) It can, of course, display video streams from a given
URL. So I'm hoping someone has figured out a way to create a virtual
display on a Debian computer which streams its contents out as a live
video stream on some nice port, and which X or Wayland or whatever
sees as an extra display in xrandr or Gnome Settings>Displays or
whatever.

The dream:

- on Debian box, run /usr/local/bin/virtual-display -size 1920x1080 -port  &
- on TV, browse to http://192.168.0.246:
- go to Gnome Settings>Displays and enable/configure the new display
- enjoy extra screen without dog chewing HDMI cable

Bonus points for getting pulseaudio to have a new sink that sends
audio output to the outgoing stream.


It seems you want to connect the TV to the computer as use it as a 
display, but wirelessly.


There are some wireless hdmi kits, you plug one in the computer, one in 
the display, and it works like a cable, but without the actual cable. 
You should be able to find them on Amazon and other stores. I've never 
tried them, though.


Naturally, you'll need an available HDMI port.


--
The faster we go, the rounder we get.
-- The Grateful Dead

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: Re: Smart TV on WiFi as Extra Display

2021-04-19 Thread Barak A. Pearlmutter
I'd like to use the TV as an extra display for my laptop. Basically,
as if it were connected with an HDMI cable, but over the network. And
use both displays, the same way one usually uses two displays.

Unless there's a usage of x11vnc that I don't understand, there are
two issues with using x11vnc for this purpose.

* First, WebOS does not have any available VNC client apps, so there's
no straightforward way of getting the TV to display the VNCed display.

* Second, x11vnc allows remote viewing of an *existing* display. So if
there were a vnc client for the TV, it would allow the display on my
laptop to be mirrored to the TV, but would not make the TV into a
second monitor.

But this does suggest a way to achieve the goal. (a) Set up a virtual
frame buffer which X/Wayland/whatever can see/configure. (b) Use
x11vnc -clip to get just the virtual thing. (c) Implement some simple
VNC client which takes a VNC display and broadcasts it using a
standard video codec that any web browser can stream.

It seems like (c) shouldn't be too hard to hack up...

Cheers,

--Barak.



Re: Smart TV on WiFi as Extra Display

2021-04-19 Thread Andrei POPESCU
On Lu, 19 apr 21, 12:24:21, Barak A. Pearlmutter wrote:
> I have a smart TV which includes a browser. (An LG running WebOS, as
> it happens.) It can, of course, display video streams from a given
> URL. So I'm hoping someone has figured out a way to create a virtual
> display on a Debian computer which streams its contents out as a live
> video stream on some nice port, and which X or Wayland or whatever
> sees as an extra display in xrandr or Gnome Settings>Displays or
> whatever.
> 
> The dream:
> 
> - on Debian box, run /usr/local/bin/virtual-display -size 1920x1080 -port 
>  &
> - on TV, browse to http://192.168.0.246:
> - go to Gnome Settings>Displays and enable/configure the new display
> - enjoy extra screen without dog chewing HDMI cable
> 
> Bonus points for getting pulseaudio to have a new sink that sends
> audio output to the outgoing stream.

Could you provide more details on your (desired) use case?

It seems x11vnc comes close to what you are looking for, though for 
audio / video content it might be simpler to just use DLNA / UPnP or 
Google Cast (depending on the source).

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser


signature.asc
Description: PGP signature


Smart TV on WiFi as Extra Display

2021-04-19 Thread Barak A. Pearlmutter
I have a smart TV which includes a browser. (An LG running WebOS, as
it happens.) It can, of course, display video streams from a given
URL. So I'm hoping someone has figured out a way to create a virtual
display on a Debian computer which streams its contents out as a live
video stream on some nice port, and which X or Wayland or whatever
sees as an extra display in xrandr or Gnome Settings>Displays or
whatever.

The dream:

- on Debian box, run /usr/local/bin/virtual-display -size 1920x1080 -port  &
- on TV, browse to http://192.168.0.246:
- go to Gnome Settings>Displays and enable/configure the new display
- enjoy extra screen without dog chewing HDMI cable

Bonus points for getting pulseaudio to have a new sink that sends
audio output to the outgoing stream.

Cheers,

--Barak A. Pearlmutter