|
Post by Joe_CWU on Aug 14, 2017 11:18:35 GMT -7
I am getting the same error as you Kendra. I cannot get either the old way or the new way to work now.
Also, I cannot get VLC to work either.
Joe
|
|
|
Post by kendra on Aug 14, 2017 12:51:53 GMT -7
Joe,
I'm sorry that you are having problems too, but it is comforting that I'm not the only one.
I have been dinking about with BitVise and VLC for the last hour and cannot get the rtp://localhost:4000/ to work. The rtsp://192.168.1.3:8554/ works fine as does the copying and pasting the old ffmpeg command for streaming.
So, if we had to fly tomorrow, I think I would be ok, but I would really like to get this figured out before next week.
Kendra
|
|
|
Post by Skylar MSGC on Aug 14, 2017 14:24:29 GMT -7
What is the output when you try to run it, what are you trying to run the ffmpy. Command prompt?
|
|
|
Post by kendra on Aug 14, 2017 14:34:13 GMT -7
When I go to the Command Prompt app and get to C:\ffmpeg\bin>python ffmpy_stream.py (which is where the ffmpy is located), it gives me an error that ends with
ffmpeg has finished, through end of file or timeout, streaming shouldn't reach here restarting now starting ffmpeg process.
|
|
|
Post by kendra on Aug 14, 2017 14:46:56 GMT -7
Here's the whole error:
"ffmpeg has finished, through end of file or timeout, streaming shouldn't reach here restarting now starting ffmpeg process Exception in thread Thread-4: Traceback (most recent call last): File "C:\Anaconda2\lib\threading.py", line 801, in __bootstrap_inner self.run() File "C:\Anaconda2\lib\threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "C:\Anaconda2\lib\site-packages\ffmpy.py", line 105, in run raise FFRuntimeError(self.cmd, self.process.returncode, out[0], out[1]) FFRuntimeError: `ffmpeg -stimeout 3000000 -i rtsp://192.168.1.3:8554/ -c copy -f rtp_mpegts rtp://localhost:4000 -r 25 -c copy -loglevel panic -b:v 3M -f flv rtmp://media.stream.live:1935/live/f6a2b7f9-aa3cd-41a1-8b2c-8a84395f2045` exited with status 1
STDOUT:
STDERR:
ffmpeg has finished, through end of file or timeout, streaming shouldn't reach here restarting now starting ffmpeg process"
And then it repeats.
|
|
|
Post by Joe_CWU on Aug 14, 2017 15:54:44 GMT -7
Ours is the exact same as Kendra's above.
Joe
|
|
jess
Novice Ballooner
Posts: 9
|
Post by jess on Aug 14, 2017 17:24:40 GMT -7
I am on the same team as the Joe (previous comment). We were receiving the same error as Kendra. I logged onto our Pi and discovered it was not taking video (no video files were present). I was able to fix the error by replacing the camera and cable with another set. I'm still not sure whether the camera, cable, or connection was the issue. I figured out it was the camera by logging into the pi and typing 'ps aux | grep raspivid'. If you get one line of code, your camera is not recording. Two lines are good. (At least according to a previous forum post).
Anyhow, the new ffmpeg code is now working. I can see the video on VLC and on the stream website. Hooray!
|
|
|
Post by kendra on Aug 14, 2017 20:12:04 GMT -7
I logged into my pi. It is taking video. I can see the video files added every 10 min. and if I download them, they play fine.
If I type "ps aux | grep raspivid", I get 2 lines of code.
The old way of streaming to eclipse.stream.live still works and I can see the video on VLC if I use the rtsp://192.168.1.3:8554/ URL, but not using the rtp://localhost:4000/
When I use Command Prompt and Anaconda Prompt, I get the same error message as above. I can download the ffmpy file again from github, but I doubt that would make a difference.
Any ideas where to look or what to do?
|
|
|
Post by kendra on Aug 14, 2017 20:29:52 GMT -7
I downloaded the ffmpy file again and changed the Boolean to True and copied my RMTP code and I get the same error.
I suspect it would work if the localhost connection worked, but I have no idea what is wrong there.
Kendra
|
|
|
Post by kendra on Aug 15, 2017 14:38:36 GMT -7
Here's the whole error: "ffmpeg has finished, through end of file or timeout, streaming shouldn't reach here restarting now starting ffmpeg process Exception in thread Thread-4: Traceback (most recent call last): File "C:\Anaconda2\lib\threading.py", line 801, in __bootstrap_inner self.run() File "C:\Anaconda2\lib\threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "C:\Anaconda2\lib\site-packages\ffmpy.py", line 105, in run raise FFRuntimeError(self.cmd, self.process.returncode, out[0], out[1]) FFRuntimeError: `ffmpeg -stimeout 3000000 -i rtsp://192.168.1.3:8554/ -c copy -f rtp_mpegts rtp://localhost:4000 -r 25 -c copy -loglevel panic -b:v 3M -f flv rtmp://media.stream.live:1935/live/f6a2b7f9-aa3cd-41a1-8b2c-8a84395f2045` exited with status 1 STDOUT: STDERR: ffmpeg has finished, through end of file or timeout, streaming shouldn't reach here restarting now starting ffmpeg process" And then it repeats. ------------- I'm still getting this error. My rtsp://192.168.1.3:8554/ command works in VLC media viewer, but rtp://localhost:4000 does not. Is there a way to change the code to avoid the local host command and have it stream and automatically reconnect if it disconnects? Kendra
|
|
|
Post by kendra on Aug 15, 2017 15:02:51 GMT -7
Never mind.
I checked my RMTP code for the umpteenth time and somehow, there was an extra "a" in the code.
It's working now.
Cheers,
Kendra
|
|
|
Post by psuteam on Aug 16, 2017 21:54:56 GMT -7
Hey, on second thought since the old video streaming method is working for you, I don't think the ad hoc set-up would be the issue. I would suggest creating a fresh thread/post on this issue since the professional helpers only seem to notice and respond to new threads. Only 1 more day to get their help! And I'll let you know if I come up with any other ideas...
|
|