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

About encoding, codec settings, muxers and filter usage
VLC-Nutzer
New Cone
New Cone
Posts: 3
Joined: 06 Apr 2017 11:14

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

Postby VLC-Nutzer » 06 Apr 2017 11:34

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

VLC-Nutzer
New Cone
New Cone
Posts: 3
Joined: 06 Apr 2017 11:14

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

Postby VLC-Nutzer » 22 Apr 2017 17:40

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)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 11 Jun 2017 15:57

You cannot put h264 inside mpg, so change your mux, and set the vb
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 21 guests