FAQ  •  Register  •  Login

streaming desk top to tv

<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Fri Mar 30, 2012 1:12 pm

Re: streaming desk top to tv

You first need to get Serviio to play other files off your PC. This requires a profile customized to the file types your BR player supports over DLNA. I cannot help you with that, but perhaps others can. You should post in the LG forum seeking help with that. Once you have a profile that works and plays files transcoded to mpeg2video, then the desktop stream will also play correctly.
<<

eigle001

Serviio newbie

Posts: 5

Joined: Thu Mar 29, 2012 3:14 pm

Post Sat Mar 31, 2012 12:11 am

Re: streaming desk top to tv

Serviio has played all my other file types correctly on the TV, but not sure if they are mpeg2, most are avi/divx. Any link to a mpeg2 file I could test?
Thanks.
<<

netyang

Serviio newbie

Posts: 17

Joined: Wed Jan 25, 2012 5:55 pm

Post Fri Apr 13, 2012 10:20 pm

Re: streaming desk top to tv

from the VLC document, "This allows to set the encoder to use to encode the videos stream. Available options are:

ffmpeg: this is the libavcodec encoding module. It handles a large variety of different codecs (the list can be found on the streaming features page.

Item options are: keyint=<number of frames> allows to set the maximal amount of frames between 2 key frames, hurry-up allows the encoder to decrease the quality of the stream if the CPU can't keep up with the encoding rate, interlace allows to improve the quality of the encoding of interlaced streams, noise-reduction=<noise reduction factor> enables a noise reduction algorithm (will decrease required bitrate at the cost of details in the image), vt=<bitrate tolerance in kbit/s> allows to set a tolerance for the bitrate of the outputted video stream, bframes=<amount of frames> allows to set the amount of B frames between 2 key frames, qmin=<quantizer> allows to set the minimum quantizer scale, qmax=<quantizer> allows to set the maximum quantizer scale, qscale=<quantizer scale> allows to specify a fixed quantizer scale for VBR encodings, i-quant-factor=<quantization factor> allows to set the quantization factor of I frames, compared to P frames, hq=<quality> allows to choose the quality level for the encoding of the motion vectors (arguments are simple, rd or bits, default is simple *FIXME*), strict=<level of compliance> allows to force a stricter standard compliance (possible values are -1, 0 and 1, default is 0), strict-rc enables a strict rate control algorithm, rc-buffer-size=<size of the buffer in bits> allows to choose the size of the buffer used for rate control (bigger means more efficient rate control), rc-buffer-aggressivity=<float representing the aggressiveness> allows to set the rate control buffer aggressiveness *FIXME*, pre-me allows to enable pre motion estimation, mpeg4-matrix enable use of the MPEG4 quantization matrix with MPEG2 streams, improving quality while keeping compatibility with MPEG2 decoders, trellis enables trelli quantization (better quality, but slower processing)."

did somebody try this to improve the picture?
TV: Samsung PN51D550 Tablet: Samsung Galaxy Tab P1000, Cellphone: Samsung Galaxy Ace
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Fri Apr 13, 2012 10:34 pm

Re: streaming desk top to tv

There is nothing the matter with the picture, and as previously documented transcoding tp mpeg4 is contrary to the goals of streaming the desktop.
<<

jesper

Serviio newbie

Posts: 1

Joined: Fri Apr 27, 2012 10:54 pm

Post Fri Apr 27, 2012 11:24 pm

Re: streaming desk top to tv

I currently have the below working on Ubuntu linux, but input is microphone. Does anyone know how to capture the desktop sound instead?

vlc screen:// :screen-fps=24.000000 :input-slave=alsa://pulse :screen-follow-mouse :screen-mouse-image="~/Pictures/mousepointerimage.png" :sout="#transcode{vcodec=h264,vb=0,scale=0,acodec=mp4a,ab=128,channels=2,samplerate=44100}:http{mux=ffmpeg{mux=flv},dst=:10000/}" :sout-keep
<<

jhb50

DLNA master

Posts: 2843

Joined: Thu Jun 30, 2011 9:32 pm

Post Fri Apr 27, 2012 11:27 pm

Re: streaming desk top to tv

Its documented in the wiki for windows http://wiki.serviio.org/doku.php?id=stream_pc Perhaps the same will work for you.
<<

jk50

Serviio lover

Posts: 57

Joined: Mon Jan 09, 2012 9:53 am

Post Sat Apr 28, 2012 4:30 am

Re: streaming desk top to tv

Jesper,
If you don't already have it, install a program called pavucontrol and start it (type "pavucontrol" in console). Click on
the Recording tab. Start your vlc desktop streaming commandline and leave it running. Go back to the Recording tab, you
should see a new entry called "ALSA plug-in [vlc]". Click the first button to the right of that title, you'll get a drop
down list of your available recording inputs, pick the one that works for you.
<<

paniko

User avatar

Streaming enthusiast

Posts: 38

Joined: Fri Sep 07, 2012 7:29 am

Post Fri Sep 07, 2012 7:30 am

Re: streaming desk top to tv

Hey I have the following error, anyone can help me??



C:\Program Files\Serviio\lib>ffmpeg.exe -i "http://192.168.178.20:8081/desk.ts"
ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
built on Jul 10 2012 03:40:45 with gcc 4.6.3
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pk
g-config
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 33.100 / 54. 33.100
libavformat 54. 15.102 / 54. 15.102
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 1.100 / 3. 1.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
[mpegts @ 0030BBC0] max_analyze_duration 5000000 reached at 5000000
[mpegts @ 0030BBC0] Estimating duration from bitrate, this may be inaccurate
Input #0, mpegts, from 'http://192.168.178.20:8081/desk.ts':
Duration: N/A, start: 3983.311767, bitrate: 1024 kb/s
Program 1
Stream #0:0[0x44]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p
, 1280x1024 [SAR 1:1 DAR 5:4], 1024 kb/s, 24 fps, 24 tbr, 90k tbn, 48 tbc
At least one output file must be specified
Paniko
Sumsung EU46D6500 | XBox 360 | Samsung Galaxy S 6 Edge | Windows 10 - i7 64bit | Serviio 1.5.2 Pro
Beta Tester
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Fri Sep 07, 2012 10:22 am

Re: streaming desk top to tv

paniko wrote:Hey I have the following error, anyone can help me??


No errors, seems good for me...
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

technolog

Serviio newbie

Posts: 12

Joined: Mon Sep 17, 2012 6:07 pm

Post Mon Sep 17, 2012 6:49 pm

Re: streaming desk top to tv

Hello.

I'm attempting to follow the method in the wiki to stream my desktop to my Samsung UE46C7000WKXXU, as yet with no luck.

I'm concerned that my 4 year old laptop won't be capable enough for the task. It's an Acer Travelmate 5623WSMi. Processor is Intel Core 2 Duo T5500 @ 1.67GHz with 2GB RAM running Win 7 Home Premium SP1 (32-bit). Any chance?

My partner's laptop is an Acer Aspire 5742, Intel Core i3 M380 @2.53GHz with 4GB RAM running Win 7 Home Premium SP1 (64-bit). Would that fare any better?

I believe I can use ffmpeg.exe (included in Serviio's /lib folder) to check that VLC is producing a valid stream?

I've tried this command:

  Code:
ffmpeg -i "http://192.168.1.26:8081"


and get the following output:

  Code:
ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 10 2012 03:40:45 with gcc 4.6.3
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pk
g-config
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 33.100 / 54. 33.100
  libavformat    54. 15.102 / 54. 15.102
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  1.100 /  3.  1.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
[mpeg2video @ 01606120] mpeg_decode_postinit() failure
    Last message repeated 4 times
[mpegts @ 017DBAC0] PES packet size mismatch
[mpegts @ 017DBAC0] max_analyze_duration 5000000 reached at 5015467
[mpegts @ 017DBAC0] Estimating duration from bitrate, this may be inaccurate
Input #0, mpegts, from 'http://192.168.1.26:8081':
  Duration: N/A, start: 8861.338467, bitrate: 10192 kb/s
  Program 1
    Stream #0:0[0x44]: Audio: mp3 ([3][0][0][0] / 0x0003), 44100 Hz, stereo, s16
, 192 kb/s
    Stream #0:1[0x45]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p
, 1280x800 [SAR 5:6 DAR 4:3], 10000 kb/s, 27.27 fps, 23.67 tbr, 90k tbn, 48 tbc
At least one output file must be specified


Are there any problems indicated?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Sep 17, 2012 7:18 pm

Re: streaming desk top to tv

that looks ok, add the URL to the console as a live stream. You might have to lower the resolution so that your laptop can cope.
<<

technolog

Serviio newbie

Posts: 12

Joined: Mon Sep 17, 2012 6:07 pm

Post Mon Sep 17, 2012 7:40 pm

Re: streaming desk top to tv

Thanks for the reply. How and where do I alter the resolution? In the bat file?

This is the bat file I'm using:

  Code:
@echo off

:This bat is used to stream the desktop with VLC using HTTP
:A corresponding player must be started using HTTP

"C:\Program Files\VideoLAN\VLC\vlc.exe" -vvv dshow:// --sout=#transcode{venc=ffmpeg,vcodec=mp2v,vb=10000,fps=24,scale=0.5,width=1280,acodec=mp3,ab=192,channels=2,samplerate=44100}:std{access=http,mux=ts,dst=:8081} --no-sout-rtp-sap --no-sout-standard-sap --ttl=1 --sout-keep   :dshow-vdev=screen-capture-recorder :dshow-adev=virtual-audio-capturer  :dshow-caching=2000

:Exit


Do I just alter the width=1280 setting?
<<

technolog

Serviio newbie

Posts: 12

Joined: Mon Sep 17, 2012 6:07 pm

Post Mon Sep 17, 2012 8:04 pm

Re: streaming desk top to tv

I altered the width setting to 800. I then opened a second instance of VLC and played the same stream. It played but with a long delay of >10 secs between changes on my desktop appearing in the 2nd VLC player window.

Any comments on the two PC specs I posted? Are either of them capable of doing the job successfully?

If I ever get that far, how do I actually play the stream on the TV or does it appear and start playing automatically? At the moment I'm selecting the DLNA source corresponding to my lappie, then selecting Video and searching the various options for any signs of a stream to play but I can't find anything.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Sep 17, 2012 8:56 pm

Re: streaming desk top to tv

the delay is normal considering your HW I think.

The video would be in Video -> Online -> (make sure you have enabled Online category on the Presentation tab in the console)
<<

technolog

Serviio newbie

Posts: 12

Joined: Mon Sep 17, 2012 6:07 pm

Post Mon Sep 17, 2012 9:21 pm

Re: streaming desk top to tv

Thanks for the reply again zip. I appreciate you taking the time & trouble.

The 'Online' category was enabled in the Serviio 'Presentation' tab. I changed it from 'Display Category' to 'Display Content Only' and the 'Online' folder disappeared from the DLNA/Video menu on the TV. At least now I get where that structure emanates from.

So, I have a stream appearing in a 2nd VLC instance. I've tried using Windows Media Player 12 to open the URL (http://192.168.1.26:8081) and it fails with the following error:

Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file.


as it does on my partner's PC.

What would you suggest next in the fault-finding process?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Sep 17, 2012 9:50 pm

Re: streaming desk top to tv

check serviio.log to see if there are any errors regarding the stream
<<

technolog

Serviio newbie

Posts: 12

Joined: Mon Sep 17, 2012 6:07 pm

Post Mon Sep 17, 2012 10:04 pm

Re: streaming desk top to tv

There appear to be some 'Unknown video file type' errors
Attachments
serviio.log
(38.91 KiB) Downloaded 431 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Sep 18, 2012 10:45 am

Re: streaming desk top to tv

Was the stream running at that point? What is the result of

  Code:
ffmpeg -i http://192.168.1.26:8081
<<

technolog

Serviio newbie

Posts: 12

Joined: Mon Sep 17, 2012 6:07 pm

Post Wed Sep 19, 2012 12:07 pm

Re: streaming desk top to tv

I'm afraid my laptop's just gone bang. Hopefully I'll be back to pester you further when I'm in possession of a new one. Thanks for your help so far.
<<

punkid

Serviio newbie

Posts: 3

Joined: Tue Sep 11, 2012 4:35 pm

Post Wed Sep 19, 2012 5:59 pm

Re: streaming desk top to tv

Hi,

i experience lags when i try to stream my desktop to TV while watching a live streamm. I use the following batch file:

  Code:
"C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -vvv dshow:// --sout=#transcode{venc=ffmpeg,vcodec=mp2v,vb=10000,fps=25,width=1920,acodec=mp3,ab=192,channels=2,samplerate=44100}:std{access=http,mux=ts,dst=:8081} --no-sout-rtp-sap --no-sout-standard-sap --ttl=1 --sout-keep :dshow-vdev=screen-capture-recorder :dshow-adev=virtual-audio-capturer :dshow-caching=20000 :dshow-aspect-ratio=16\:9


My notebook should have enough power to stream full HD. Streaming BluRays with Serviio works fine.

CPU: Intel Core i5-2410M
Ram: 8 GB
System: Windows 7 64bit
Notebook and TV are connected by LAN (D-Link Switch)

Does anyone have any suggestions what the problem might be?
PreviousNext

Return to General discussion

Who is online

Users browsing this forum: No registered users and 31 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.