Page 8 of 12

Re: streaming desk top to tv

PostPosted: Fri Feb 24, 2012 11:34 am
by DLNAhooray
jhb50 wrote:All this implies that your TV is not mapping the input resolution to fit the TV screen and is showing everything at 1920x1080 resolution. ie a 1280x720 input is fit up in a corner rather than filling the whole screen.
I think there is a TV setting that will fix that. My TV maps my input resolution to fit the screen, so my WII and my DVR at 480 resolution don't fit in a corner but rather they are mapped to the whole screen.
Similarly my 1280 streamed desktop fills the screen, as does the 1920x1080 from my BR player.
If all your sources are 1920x1080 then you have not needed that auto adjustment but setting it will not impact your normal mode of operation and might fix your problem..
Thats all I can think of.

Thanks for the reply jhb50, but I can't find a suitable setting on my TV covering the point you are making.
Unfortunately I also can't find a user manual for my TV in English for you to glance at the setup menu possibilities with a more expert eye than mine: manuals for my TX-L37GW20 are available only in German, French, Czech, Italian & Turkish.
However, I have found a manual in English for the TX-L42G20E that seems to be pretty much identical with mine apart from the language. If you have the time and are interested in having a look at it, you'll find it here:
http://dlc.panasonic-europe-service.com/EUDocs/GetDoc.aspx?did=190720&fmt=PDF&lang=en&src=3&uilang=en-GB&model=TXL42G20E
On that page, you'll have to tick the "I Accept" checkbox and click "View" to call the Pdf file. The relevant pages are 32 & 33.

Doesn't the fact that photos & videos display OK (full screen) on the TV via Serviio and from an SD card plugged into the TV suggest that all is well on the resolution/image size front?

jhb50 wrote:... the problem ... has to be at the screen grabbing level ... ... ... so again the problem has to be how the grabbing was done.

Can you shed any light on my question "Have you any recommendations re troubleshooting the "grabbing" (whatever that means)?"

Re: streaming desk top to tv

PostPosted: Fri Feb 24, 2012 7:01 pm
by jhb50
Try these 3 tests to pin it down:

Screen Resolution Full 1920x1200
SCR set to 1920 & 1080
BAT width=1280 no height
Should give you a 1280x720 stream.. check with ffmpeg and report back

Screen Resolution 1920x1080
SCR set to default blank/blank
Bat width=1280 no height
Should give you a 1280x720 stream..check with ffmpeg and report back

Screen Resolution Full 1920x1200
SCR set to default blank/blank
Bat width=1152 no height
Should give you an 1152x720 stream ..check with ffmpeg and report back.

Each attempts to address the rescaling of your 16:10 display buffer to 16:9 for the TV in a different way.

Re: streaming desk top to tv

PostPosted: Tue Mar 06, 2012 2:17 pm
by DLNAhooray
Test #1
jhb50 wrote:Screen Resolution Full 1920x1200
SCR set to 1920 & 1080
BAT width=1280 no height
Should give you a 1280x720 stream.. check with ffmpeg and report back

ffmpeg result for above settings:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\System32>"C:\Program Files\Serviio\lib\ffmpeg.exe" -i "http://192.168
.2.105:8081"
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
built on Dec 13 2011 20:46:11 with gcc 4.4.2
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-mingw32- --pkg-config=pkg-co
nfig
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
[mpeg2video @ 02b81020] mpeg_decode_postinit() failure
Last message repeated 5 times
[mpegts @ 013d8040] PES packet size mismatch
[mpegts @ 013d8040] Estimating duration from bitrate, this may be inaccurate


Seems stream 1 codec frame rate differs from container frame rate: 48.00 (48/1)
-> 47.83 (287/6)
Input #0, mpegts, from 'http://192.168.2.105:8081':
Duration: N/A, start: 27005.248400, 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
, 1280x720 [SAR 3:4 DAR 4:3], 10000 kb/s, 25.08 fps, 47.83 tbr, 90k tbn, 48 tbc
At least one output file must be specified

C:\Windows\System32>


Test #2
jhb50 wrote:Screen Resolution 1920x1080
SCR set to default blank/blank
Bat width=1280 no height
Should give you a 1280x720 stream..check with ffmpeg and report back

ffmpeg result for above settings:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\System32>"C:\Program Files\Serviio\lib\ffmpeg.exe" -i "http://192.168
.2.105:8081"
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
built on Dec 13 2011 20:46:11 with gcc 4.4.2
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-mingw32- --pkg-config=pkg-co
nfig
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
[mpeg2video @ 021b1020] mpeg_decode_postinit() failure
Last message repeated 5 times
[mpegts @ 013a8040] PES packet size mismatch
[mpegts @ 013a8040] Estimating duration from bitrate, this may be inaccurate

Seems stream 1 codec frame rate differs from container frame rate: 48.00 (48/1)
-> 47.92 (575/12)
Input #0, mpegts, from 'http://192.168.2.105:8081':
Duration: N/A, start: 27745.280667, 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
, 1280x720 [SAR 3:4 DAR 4:3], 10000 kb/s, 25.08 fps, 47.92 tbr, 90k tbn, 48 tbc
At least one output file must be specified

C:\Windows\System32>


Test #3
jhb50 wrote:Screen Resolution Full 1920x1200
SCR set to default blank/blank
Bat width=1152 no height
Should give you an 1152x720 stream ..check with ffmpeg and report back.

ffmpeg result for above settings:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\System32>"C:\Program Files\Serviio\lib\ffmpeg.exe" -i "http://192.168
.2.105:8081"
ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
built on Dec 13 2011 20:46:11 with gcc 4.4.2
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-mingw32- --pkg-config=pkg-co
nfig
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 0 / 53. 42. 0
libavformat 53. 24. 0 / 53. 24. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
[mpeg2video @ 02b71020] mpeg_decode_postinit() failure
Last message repeated 2 times
[mpegts @ 003f8040] PES packet size mismatch
[mpegts @ 003f8040] Estimating duration from bitrate, this may be inaccurate


Seems stream 1 codec frame rate differs from container frame rate: 48.00 (48/1)
-> 47.83 (287/6)
Input #0, mpegts, from 'http://192.168.2.105:8081':
Duration: N/A, start: 28016.190878, 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
, 1152x720 [SAR 5:6 DAR 4:3], 10000 kb/s, 24.26 fps, 47.83 tbr, 90k tbn, 48 tbc
At least one output file must be specified

C:\Windows\System32>


The TV display during all three tests remained the same as in the past: poor image quality (fuzzy, objects "beating" 2-3x sec) and image severely overscanned (bottom row of my 2-row taskbar cut off and other 3 desktop edges similarly cut off)

Re: streaming desk top to tv

PostPosted: Tue Mar 06, 2012 5:58 pm
by jhb50
I can only conclude that SCR is unable to capture the image off your 1920x1200 display adapter correctly and so the image is fuzzy even before VLC gets it. I suggest you contact the SCR author directly.
Also the fact that your earlier tests gave you less than a full screen image when SCR was set to capture less than 1920 indicate that 1920 was always captured anyway, which is why you got the upper corner images rather than a full screen image.

These are issues with your hardware and/or display driver which Serviio cannot address. You should ensure your display driver is at the latest level. It's possible that the implementation used for your 1920x1200 driver is non-standard which would cause SCR to fail unless it was programmed specifically for that implementation.

Sorry I've been unable to help you.

Re: streaming desk top to tv

PostPosted: Thu Mar 29, 2012 3:47 pm
by eigle001
I'm having trouble streaming desktop to TV.
I followed the instructions at http://wiki.serviio.org/doku.php?id=stream_pc, and got my desktop to stream audio/video over the network to VLC, but I cannot get it work with Serviio.
I have tried several encodings, including h264 and mp2v, both of which work fine with VLC:

"C:\Program Files (x86)\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="Stereo Mix (Realtek High Defini" :dshow-caching=2000

Using ffmpeg -i (on this mp2v codec), I get: "mpeg_decode_postinit() failure"

see full ffmpeg screen capture:
Image

Any advice will be greatly appreciated!

Re: streaming desk top to tv

PostPosted: Thu Mar 29, 2012 4:31 pm
by jhb50
Nothing the matter with the stream. How did you add it to Serviio?
You must add it as a "live stream" while the stream is running.
Finally, to setup Serviio to play the stream, add your PC's static address to the Serviio Console/Online Sources/Live Stream/Video in the form http://192.168.1.10:8081 and name it “Desktop”. (Note that zip has advised that the stream must be running, as instructed above, when the link is added to the console, else Serviio will not accept the link or display it in the Online menu.) Then on the TV click on the “Desktop” icon and the stream should play.

Re: streaming desk top to tv

PostPosted: Thu Mar 29, 2012 4:51 pm
by eigle001
Yes, I did that--
I added it to Serviio with the same static IP I used with VLC from another machine.
I had the stream running when I added it.
From my Blueray player, I was able to see the "desktop" icon in the Serviio online folder, but when I click it, I get an error "unable to play this file type".
Not sure if the error is with Serviio or with the Blueray player. I haven't been able to find a software client that will access Serviio to test it.

Thanks.

Re: streaming desk top to tv

PostPosted: Thu Mar 29, 2012 5:53 pm
by jhb50
What profile is your Bluray Player using? and what other files/streams is it able to play?
The error message is typical if the stream is not present when you click play. I trust you started the steam first.
You should also enable the log to see what it shows.

Re: streaming desk top to tv

PostPosted: Thu Mar 29, 2012 7:49 pm
by eigle001
Not sure what you mean by Blue Ray player profile. I have a LG BD570. Using the "home link" function, I can see Serviio, and use it play avi or mp3 from my local computer, or Hulu (online) via the LG player on the TV.

Serviio had been serving the BR player as a generic type. I changed it in the console to LG TV/player. Same error. See last log entry below. Thanks again for your help!


2012-03-29 15:45:38,214 DEBUG [ResourceTransportRequestHandler] Request for resource 1000000000140001 and type 'MEDIA_ITEM' received
2012-03-29 15:45:38,214 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1000000000140001 (online)
2012-03-29 15:45:38,214 DEBUG [OnlineRepositoryDAOImpl] Reading an OnlineRepository (id = 14)
2012-03-29 15:45:38,214 DEBUG [VideoDeliveryEngine] Delivering item '1000000000140001' for client 'IPAddress=/192.168.0.158, Profile=LG TV / player'
2012-03-29 15:45:38,214 DEBUG [VideoDeliveryEngine] Delivering file 'http://192.168.0.150:8081' in native format
2012-03-29 15:45:38,214 DEBUG [ResourceTransportRequestHandler] Unsupported range request, sending back 406
2012-03-29 15:45:38,214 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 406 Not Acceptable, headers = [[Content-Type: video/mpeg]]

Re: streaming desk top to tv

PostPosted: Thu Mar 29, 2012 7:52 pm
by eigle001
FYI, the serving computer (hosting Serviio and VLC) is listed in Serviio as generic type.

Re: streaming desk top to tv

PostPosted: Fri Mar 30, 2012 1:12 pm
by jhb50
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.

Re: streaming desk top to tv

PostPosted: Sat Mar 31, 2012 12:11 am
by eigle001
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.

Re: streaming desk top to tv

PostPosted: Fri Apr 13, 2012 10:20 pm
by netyang
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?

Re: streaming desk top to tv

PostPosted: Fri Apr 13, 2012 10:34 pm
by jhb50
There is nothing the matter with the picture, and as previously documented transcoding tp mpeg4 is contrary to the goals of streaming the desktop.

Re: streaming desk top to tv

PostPosted: Fri Apr 27, 2012 11:24 pm
by jesper
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

Re: streaming desk top to tv

PostPosted: Fri Apr 27, 2012 11:27 pm
by jhb50
Its documented in the wiki for windows http://wiki.serviio.org/doku.php?id=stream_pc Perhaps the same will work for you.

Re: streaming desk top to tv

PostPosted: Sat Apr 28, 2012 4:30 am
by jk50
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.

Re: streaming desk top to tv

PostPosted: Fri Sep 07, 2012 7:30 am
by paniko
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

Re: streaming desk top to tv

PostPosted: Fri Sep 07, 2012 10:22 am
by Illico
paniko wrote:Hey I have the following error, anyone can help me??


No errors, seems good for me...

Re: streaming desk top to tv

PostPosted: Mon Sep 17, 2012 6:49 pm
by technolog
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?