logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
n8nt  
#1 Posted : Monday, April 10, 2017 9:39:01 PM(UTC)
n8nt

Rank: Newbie

Groups: Registered
Joined: 4/8/2017(UTC)
Posts: 2
Man
United States
Location: 135 Barrett Hill Road, Center Rutland, Vermont 05736

Hi,
I am trying to use vMix to be able to choose 1 of 3 video sources (ip cameras or web site, or mp4 or mov file) and then select those to the output window. Then I want to stream the output window to a raspberry pi where I can capture that stream and send it to a composite video output. (I'm testing this with a raspberry pi and am running ubuntu mate)

My problem is that no matter what I do, I cannot get a successful connection.
My computer has ip address 192.168.1.54 and has vMix 19

Here are the details of what I'm trying to do. First I'm trying a simple test which is to stream a video file out to the raspberry pi.

I selected as an input a movie from my disk named movie.mp4 and set it to loop. I clicked on the play button.
I selected that input to the output window.

I then set up the stream settings as follows:

Choose the Add button next to the profile.
I set the name to Raspberry PI then clicked OK
I selected the Custom RTMP Server for the Destination
For the URL I entered: rtmp://192.168.1.11/live
For the Stream Name or Key I entered: livestream

In the Advanced I left the default values (user and password blank and left the User Agent at the default value )

In the next panel of the Streaming Settings I left the Input Size, Frame Rate and Quality at the default settings.
I set the Application to FFMPEG

ON my server side I just wanted to test that the stream was getting there so I made sure I had the latest version of the rtmpdump program. I entered the following on the raspberry pi command line:

rtmpdump -r rtmp://192.168.1.54/live/livestream -o test.mp4

Finally I hit the Stream button but after a few seconds got an error box which said:

Unable to connect to streaming server.
Check the internet connection or Stream URL and try again.
rtmp://192.168.1.11/live/livestream

In the error box below I captured the following:

FFMPEG.Exited
Streaming
[rtmp @ 047bd220] Cannot open connection tcp://192.168.1.11:1935
rtmp://192.168.1.11/live/livestream: Unknown error

Report written to "C:\ProgramData\vMix\streaming\streaming 20170409-204227.log"
ffmpeg version 2.8.git Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8.1 (rev2, Built by MinGW-W64 project)
configuration: --enable-gpl --enable-version3 --enable-libx264 --enable-zlib --enable-libfaac --enable-nonfree --cpu=i686 --enable-nvenc
libavutil 55. 2.100 / 55. 2.100
libavcodec 57. 3.100 / 57. 3.100
libavformat 57. 2.100 / 57. 2.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 9.100 / 6. 9.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, dshow, from 'video=vMix Video:audio=vMix Audio':
Duration: N/A, start: 1827097.667000, bitrate: 1536 kb/s
Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 640x360, 29.97 tbr, 10000k tbn, 29.97 tbc
Stream #0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[tcp @ 047bd660] TCP Buffer has been set to 3990528 bytes
[rtmp @ 047bd220] Cannot open connection tcp://192.168.1.11:1935
rtmp://192.168.1.11/live/livestream: Unknown error

And here is the contents of the log: (Seems to be the same as was in the error box)

ffmpeg started on 2017-04-09 at 20:42:27
Report written to "C:\ProgramData\vMix\streaming\streaming 20170409-204227.log"
Command line:
"C:\\Program Files (x86)\\vMix\\streaming\\ffmpeg.exe" -report -rtbufsize 256M -f dshow -i "video=vMix Video:audio=vMix Audio" -codec:v libx264 -s:v 640x360 -pix_fmt:v yuv420p -threads 4 -bufsize:v 1500k -g:v 60 -preset:v medium -profile:v baseline -level:v 3.1 -x264opts:v "keyint=60:min-keyint=60:scenecut=-1" -b:v 1500k -maxrate:v 1650k -codec:a libfaac -b:a 96k -strict -2 -f flv rtmp://192.168.1.11/live/livestream
ffmpeg version 2.8.git Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8.1 (rev2, Built by MinGW-W64 project)
configuration: --enable-gpl --enable-version3 --enable-libx264 --enable-zlib --enable-libfaac --enable-nonfree --cpu=i686 --enable-nvenc
libavutil 55. 2.100 / 55. 2.100
libavcodec 57. 3.100 / 57. 3.100
libavformat 57. 2.100 / 57. 2.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 9.100 / 6. 9.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, dshow, from 'video=vMix Video:audio=vMix Audio':
Duration: N/A, start: 1827097.667000, bitrate: 1536 kb/s
Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 640x360, 29.97 tbr, 10000k tbn, 29.97 tbc
Stream #0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[tcp @ 047bd660] TCP Buffer has been set to 3990528 bytes
[rtmp @ 047bd220] Cannot open connection tcp://192.168.1.11:1935
rtmp://192.168.1.11/live/livestream: Unknown error


On the Raspberry PI side I only get a timeout. Here is the entire output from running the command on the PI:


bob@Bob-RPI-Ubuntu:~$ rtmpdump -r rtmp://192.168.1.54/live/livestream -o test.mp4
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
ERROR: RTMP_Connect0, failed to connect socket. 110 (Connection timed out)

I also ran the wireshark packet sniffer and can only see that my server tries to connect (SYN packet) but the raspberry pi immediately sends an ACK, RST packet. That happens 3 times and then I get the error above.

I believe I must be missing something in the URL that gets sent or maybe something needs to get set up in the Streaming Settings Advanced dialog box? I tried putting the login there for my raspberry pi and tried the user agent with both of the defaults and also with a blank value.
No matter what I do I get the same connection timeout.

I tried the same test using another linux server with the same rtmpdump command. It responded exactly the same.

I have tried streaming to YouTube and it works fine.

I turned off the firewall on my computer and it made no difference.

The linux box has no firewall.

So I am thinking that there is something missing from the URL or the advanced settings for the streaming settings and am hoping someone out there can help me figure out how to set it up.

I hope I've made a good attempt at explaining my problem.
I'd like to use this for a ham radio project so will greatly appreciate any help.
Cheers!
Bob - N8NT
kjones9999  
#2 Posted : Tuesday, April 11, 2017 1:01:40 AM(UTC)
kjones9999

Rank: Advanced Member

Groups: Registered
Joined: 8/20/2014(UTC)
Posts: 388

Thanks: 29 times
Was thanked: 78 time(s) in 50 post(s)
Are you using mistserver on the pi?
n8nt  
#3 Posted : Tuesday, April 11, 2017 5:09:50 PM(UTC)
n8nt

Rank: Newbie

Groups: Registered
Joined: 4/8/2017(UTC)
Posts: 2
Man
United States
Location: 135 Barrett Hill Road, Center Rutland, Vermont 05736

Not at the moment. Was first trying to use omxplayer just to send the stream out to the HDMI or video port. To do that I ran these two commands on the PI:

mkfifo /tmp/mypipe
rtmpdump -r rtmp://192.168.1.54:1935/live/livestream --live -o /tmp/mypipe | omxplayer /tmp/mypipe

Not able to connect so decided to first try and get a connection and just send the stream to a file using this:
rtmpdump -r rtmp://192.168.1.54/live/livestream -o test.mp4

I tried both of these with and without the :1935 in the URL, but results were the same.




MarkSCTV  
#4 Posted : Sunday, April 16, 2017 10:03:16 AM(UTC)
MarkSCTV

Rank: Newbie

Groups: Registered
Joined: 3/26/2017(UTC)
Posts: 4
Location: CT USA

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
It's not the same but related. I've been using nginx-rtmp on a Raspberry Pi in production as a tiny video server. It receives its input from vMix. Another Raspberry Pi (one for each of three cable channels) uses omxplayer to connect to the nginx Pi and output composite to inject live meetings into our cable system.
thanks 1 user thanked MarkSCTV for this useful post.
Zetor1980 on 4/16/2017(UTC)
DWAM  
#5 Posted : Sunday, April 16, 2017 1:29:19 PM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 post(s)
Hi

check this website. They're making solutions for encoding/decoding based on RPI
http://www.streamrus.com/en/index.php

Guillaume
thanks 1 user thanked DWAM for this useful post.
andser on 4/21/2017(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.