-
Notifications
You must be signed in to change notification settings - Fork 470
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playing network stream #17
Comments
|
Hi Jacek, thanks for the quick response.
Another thought: Live streaming produces a few error even in normal use, where it works. These errors are related to the fact that the player is not playing from the beginning and so not receiving headers or keyframes in time, but after some time. It also needs to figure out other settings as I can see from the command line. Perhaps the player implementation in Android is not that patient and throws an exception as soon as it doesnt all fit? |
One more finding: I have modified udp.c to output the hostname given to the function. The output is: "v=0" Checking the sdp file, I find "v=0" in the second line: SDP: Furthermore I have changed "v=0" to some ip address. In this case it gives me the first segment of the ip address. For example "127." for "127.0.0.1". Im using the localhost address, because Im streaming directly to the client. So it seems the SDP file is not correctly read for the IP-Address and this is why it can not resolve the hostname. Any suggestions why? Where could I start debugging? |
I do not know sdp. but http://helixforum.realnetworks.com/helix_support/topics/what_are_the_required_sdp_file_parameters_for_rtp_sdp_live_ingest_to_helix_universal_media_server - says that v=0 it is version number just grep ffmpeg source code for your errors and maybe you will find something. |
I'm having the same problems with the pthreads compilation. 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required) Have you found any solution for that? Thanks, |
Hi,
I have successfully compiled your project leaving out the subtitle libraries, which created some problems for me (1. I could not load submodules, it is asking me for a password for appunite, 2. building failed after sourcing the missing libraries from the original repos).
I can play local mp4 files with the ffmpeg example project on Android. But my goal is to play streams.
Im doing all my tests from the example project (so internet permissions are set, I double-checked it). I could not run the example http streams and I could not run a VLC http stream, although it works with the VLC app for android and from other computers and it works with the MediaPlayer class from Android.
I have also tried to play a rtp stream using ffmpeg as streamer and a sdp file to describe the stream. It looks like the spd file is successfully read and interpreted, but I always get following error message:
"Could not open video file: XXX (-1094995529: invalid data found when processing input)"
Furthermore I get this from ffmpeg:
Format sdp probed with size=2048 and score=50
video codec set to: mpeg4
'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
Then it says it has problems to resolve the hostname. Im not getting this errors, when Im streaming from PC to PC using the same configuration (with different IPs obviously).
Can you help me to resolve these issues? How do I play RTP streams using a SDP file?
Thanks!
The text was updated successfully, but these errors were encountered: