-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Error -104 while writing interleaved audio frame #267
Comments
Could you try with an unmodified version of the If you still get an error with the original version, could you call |
Thanks, saudet. Original RecordActivity.java? it write video on the SDCard, but I need to send to ffserver. If I change 'ffmpeg_link= "/mnt/sdcard/stream.flv"' for 'ffmpeg_link= "http://192.168.26.162:8090/feed1.ffm"', it doesn't work either. Now, I only have error pressing Stop button, like this:
Previously, this is the log until I press Start button:
Any idea? |
I use too |
It looks like your app isn't writing enough audio frames or enough video frames. This is only a guess, but it may help to write a dummy video frame just before calling stop(). |
I have found one error in my code. I was streaming to
In ffplay window, I can see:
If recorder.setFormat("flv")`
In ffplay window, I can see:
What way I have to choose? |
Do you get the same thing when using |
Absolutely not. If I use ffserver -d -f /etc/ffserver.conf, ffmpeg -f v4l2 -s 320x240 -r 25 -i /dev/video0 -f alsa -ac 2 -i hw:0 http://localhost:8090/feed1.ffm and ffplay http://localhost:8090/live.flv, I can see correctly the video. |
So let's see. Which codecs is Also, does the same thing happen with |
The codecs in the ffserver.conf? Always are the same:
Now, I tried to use
And ffplay window shows:
now, it's very close!!! |
You might want to try with a codec that is a bit more resistant to corrupted data than mpeg2video, such as h264 maybe... |
If I use
So, I'm trying with h263 or mpeg1video, it occurs strange things: I start ffplay and nothing happends. But, if I stop streaming from android, suddenly it is opened a video window (from ffplay) and I can see a few seconds of the video, not full video. This window shows no error. In ffserver window, I can see:
|
Well, you should use a version of |
This is my ffserver -version result:
Which version should I use? |
Maybe it wants |
I do not understand. You mean |
So, what error message do you get in that case in Android? |
Sorry, saudet, but I can not work on it anymore. |
No problem! Thanks for your time. I hope we can find a way to make this work better eventually. :) |
One last thing I thought about though, according to ffserver's documentation, the "ffm" format is not compatible between different versions of FFmpeg, so we might want to try the "ffm2" format instead, which is more stable: https://www.ffmpeg.org/ffserver.html |
Hello all.
I am trying to streaming video with ffmpeg from android (using RecordActivity.java) to ffserver.
My ffserver.conf is:
Then, when I try to record recorderStreaming.recordSamples(audioData), the exception is throw:
This is my full RecordActivity.java:
If I use ffmpeg command, I can stream video, and I can play it with ffplay.
Someone can help me?
Thanks in advance
The text was updated successfully, but these errors were encountered: