Page 1 of 1

Try to stream part of my screen -> VLC crashes. Where is my fault in the command?

Posted: 06 Apr 2017 11:34
by VLC-Nutzer
Hello.

I found a very lovely VLC-command to show part of my screen on VLC (https://www.vlc-forum.de/thread/1640-st ... 4#post7554)

This command works fine. It shows me the upper, left part with 640x480 pixel of my own screen (1920x1080).
"C:\Program Files\VideoLAN\VLC\vlc.exe" screen:// :screen-fps=25.000000 :screen-left=0 :screen-top=0 :screen-width=640 :screen-height=480 :zoom=1.000000 :live-caching=300


Now my problem:
I want to stream this result from the upper left corner via VLC and http to another PC.

To test VLC-streaming in general from one to another PC, I tested with a MP4-file the following command successfully:
Sending PC:
"C:\Program Files\VideoLAN\VLC\vlc.exe" "C:\test.mp4" :sout=#transcode{vcodec=h264,acodec=mp3,ab=128,channels=2,samplerate=44100}:http{dst=:8090/go.mpg}

Receiving PC:
Open network http://192.168.178.59:8090/go.mpg on my VLC works. I see the streamed file test.mp4 on my second PC.


Now I've combined both commandstring to:
"C:\Program Files\VideoLAN\VLC\vlc.exe" screen:// :screen-fps=25.000000 :screen-left=0 :screen-top=0 :screen-width=640 :screen-height=480 :zoom=1.000000 :live-caching=300 :sout=#transcode{vcodec=h264,acodec=mp3,ab=128,channels=2,samplerate=44100}:http{dst=:8090/go.mpg}

VLC crashes every time.

Where is my fault? Do you have any hint for me?

Best regards
Jörg

Re: Try to stream part of my screen -> VLC crashes. Where is my fault in the command?

Posted: 22 Apr 2017 17:40
by VLC-Nutzer
Version 2.2.4 crashes every time.

Version 2.1.5 works with command:

Code: Select all

@ECHO off START "" "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" screen:// :screen-fps=25 :screen-left=0 :screen-top=0 :screen-width=960 :screen-height=540 :sout=#transcode{vcodec=h264,vb=1600}:rtp{dst=224.1.1.1,port=5004,mux=ts,sap,name=Screen} :sout-keep
To receive on other network-PC open networkstream with VLC:

Code: Select all

rtp://@224.1.1.1:5004
Special thanks to "kodela" (http://www.vlc-forum.de)

Re: Try to stream part of my screen -> VLC crashes. Where is my fault in the command?

Posted: 11 Jun 2017 15:57
by Jean-Baptiste Kempf
You cannot put h264 inside mpg, so change your mux, and set the vb