Rank: Newbie
Groups: Registered
Joined: 4/8/2017(UTC) Posts: 2 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
|