Open jmbernal opened 8 years ago
Could you try with an unmodified version of the RecordActivity.java
sample?
If you still get an error with the original version, could you call FFmpegLogCallback.set()
and copy/paste what you get in the Android log? Thanks
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:
11-10 15:54:53.969 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: org.bytedeco.javacv.FrameRecorder$Exception: av_interleaved_write_frame() error -104 while writing interleaved audio frame.
11-10 15:54:53.969 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at org.bytedeco.javacv.FFmpegFrameRecorder.record(FFmpegFrameRecorder.java:970)
11-10 15:54:53.969 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at org.bytedeco.javacv.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:935)
11-10 15:54:53.969 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at org.bytedeco.javacv.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:808)
11-10 15:54:53.979 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at org.bytedeco.javacv.recordactivity.RecordActivity.stopRecording(RecordActivity.java:253)
11-10 15:54:53.979 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at org.bytedeco.javacv.recordactivity.RecordActivity.onClick(RecordActivity.java:482)
11-10 15:54:53.979 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at android.view.View.performClick(View.java:4640)
11-10 15:54:53.979 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at android.view.View$PerformClick.run(View.java:19425)
11-10 15:54:53.979 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at android.os.Handler.handleCallback(Handler.java:733)
11-10 15:54:53.979 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
11-10 15:54:53.979 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at android.os.Looper.loop(Looper.java:146)
11-10 15:54:53.979 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5593)
11-10 15:54:53.979 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at java.lang.reflect.Method.invokeNative(Native Method)
11-10 15:54:53.979 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at java.lang.reflect.Method.invoke(Method.java:515)
11-10 15:54:53.979 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
11-10 15:54:53.979 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
11-10 15:54:53.979 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at dalvik.system.NativeStart.main(Native Method)
11-10 15:54:53.989 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: Warning: [aac @ 0x632372f0] 1 frames left in the queue on closing
11-10 15:54:53.989 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: org.bytedeco.javacv.FrameRecorder$Exception: av_interleaved_write_frame() error -104 while writing interleaved audio frame.
11-10 15:54:53.989 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at org.bytedeco.javacv.FFmpegFrameRecorder.record(FFmpegFrameRecorder.java:970)
11-10 15:54:53.989 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at org.bytedeco.javacv.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:938)
11-10 15:54:53.989 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at org.bytedeco.javacv.FFmpegFrameRecorder.stop(FFmpegFrameRecorder.java:662)
11-10 15:54:53.989 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at org.bytedeco.javacv.recordactivity.RecordActivity.stopRecording(RecordActivity.java:264)
11-10 15:54:53.989 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at org.bytedeco.javacv.recordactivity.RecordActivity.onClick(RecordActivity.java:482)
11-10 15:54:53.989 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at android.view.View.performClick(View.java:4640)
11-10 15:54:53.989 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at android.view.View$PerformClick.run(View.java:19425)
11-10 15:54:53.989 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at android.os.Handler.handleCallback(Handler.java:733)
11-10 15:54:53.989 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)
11-10 15:54:53.999 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at android.os.Looper.loop(Looper.java:146)
11-10 15:54:53.999 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5593)
11-10 15:54:53.999 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at java.lang.reflect.Method.invokeNative(Native Method)
11-10 15:54:53.999 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at java.lang.reflect.Method.invoke(Method.java:515)
11-10 15:54:53.999 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
11-10 15:54:53.999 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
11-10 15:54:53.999 30796-30796/org.bytedeco.javacv.recordactivity W/System.err: at dalvik.system.NativeStart.main(Native Method)
11-10 15:54:53.999 30796-30796/org.bytedeco.javacv.recordactivity W/RecordActivity: Stop Button Pushed
Previously, this is the log until I press Start button:
11-10 15:54:47.463 30796-30796/org.bytedeco.javacv.recordactivity I/RecordActivity: ffmpeg_url: http://192.168.26.162:8090/live.flv
11-10 15:54:47.493 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Trying to load lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libswresample.so 0x420bde50
11-10 15:54:47.493 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Added shared lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libswresample.so 0x420bde50
11-10 15:54:47.493 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: No JNI_OnLoad found in /data/app-lib/org.bytedeco.javacv.recordactivity-1/libswresample.so 0x420bde50, skipping init
11-10 15:54:47.493 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Trying to load lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libjniswresample.so 0x420bde50
11-10 15:54:47.493 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Added shared lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libjniswresample.so 0x420bde50
11-10 15:54:47.533 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Trying to load lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libavcodec.so 0x420bde50
11-10 15:54:47.533 30796-30796/org.bytedeco.javacv.recordactivity W/linker: libavcodec.so has text relocations. This is wasting memory and is a security risk. Please fix.
11-10 15:54:47.533 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Added shared lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libavcodec.so 0x420bde50
11-10 15:54:47.533 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: No JNI_OnLoad found in /data/app-lib/org.bytedeco.javacv.recordactivity-1/libavcodec.so 0x420bde50, skipping init
11-10 15:54:47.533 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Trying to load lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libjniavcodec.so 0x420bde50
11-10 15:54:47.533 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Added shared lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libjniavcodec.so 0x420bde50
11-10 15:54:47.633 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Trying to load lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libavformat.so 0x420bde50
11-10 15:54:47.633 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Added shared lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libavformat.so 0x420bde50
11-10 15:54:47.633 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: No JNI_OnLoad found in /data/app-lib/org.bytedeco.javacv.recordactivity-1/libavformat.so 0x420bde50, skipping init
11-10 15:54:47.633 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Trying to load lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libjniavformat.so 0x420bde50
11-10 15:54:47.643 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Added shared lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libjniavformat.so 0x420bde50
11-10 15:54:47.693 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Trying to load lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libswscale.so 0x420bde50
11-10 15:54:47.693 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Added shared lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libswscale.so 0x420bde50
11-10 15:54:47.693 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: No JNI_OnLoad found in /data/app-lib/org.bytedeco.javacv.recordactivity-1/libswscale.so 0x420bde50, skipping init
11-10 15:54:47.693 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Trying to load lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libjniswscale.so 0x420bde50
11-10 15:54:47.693 30796-30796/org.bytedeco.javacv.recordactivity D/dalvikvm: Added shared lib /data/app-lib/org.bytedeco.javacv.recordactivity-1/libjniswscale.so 0x420bde50
11-10 15:54:47.723 30796-30796/org.bytedeco.javacv.recordactivity I/RecordActivity: recorder initialize success
11-10 15:54:47.793 30796-30796/org.bytedeco.javacv.recordactivity I/System.out: Output #0, flv, to 'http://192.168.26.162:8090/live.flv':
11-10 15:54:47.793 30796-30796/org.bytedeco.javacv.recordactivity I/System.out: Stream #0:0
11-10 15:54:47.803 30796-30796/org.bytedeco.javacv.recordactivity I/System.out: : Video: flv1 (flv), yuv420p, 320x240, q=2-31, 400 kb/s
11-10 15:54:47.803 30796-30796/org.bytedeco.javacv.recordactivity I/System.out: ,
11-10 15:54:47.803 30796-30796/org.bytedeco.javacv.recordactivity I/System.out: 30 tbn,
11-10 15:54:47.803 30796-30796/org.bytedeco.javacv.recordactivity I/System.out: 30 tbc
11-10 15:54:47.803 30796-30796/org.bytedeco.javacv.recordactivity I/System.out: Stream #0:1
11-10 15:54:47.803 30796-30796/org.bytedeco.javacv.recordactivity I/System.out: : Audio: aac, 44100 Hz, mono, fltp, 64 kb/s
11-10 15:54:47.853 30796-30796/org.bytedeco.javacv.recordactivity W/RecordActivity: Start Button Pushed
11-10 15:54:47.913 30796-31353/org.bytedeco.javacv.recordactivity D/dalvikvm: GC_FOR_ALLOC freed 1974K, 6% free 54960K/58092K, paused 35ms, total 35ms
11-10 15:54:47.913 30796-31353/org.bytedeco.javacv.recordactivity D/RecordActivity: audioRecord.startRecording()
Any idea?
I use too ffserver -d
and ffplay http://192.168.26.162:8090/live.flv
. After pressing Stop button, if I close server, ffplay windows shows:
http://192.168.26.162:8090/live.flv: Invalid data found when processing input
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 http://192.168.26.162:8090/live.flv
and I have to use http://192.168.26.162:8090/feed1.ffm
. Now, the log is a bit different.
If recorder.setFormat("mpeg")`
11-11 09:38:26.815 9116-9116/org.bytedeco.javacv.recordactivity I/RecordActivity: recorder initialize success
11-11 09:38:26.895 9116-9116/org.bytedeco.javacv.recordactivity I/System.out: Output #0, mpeg, to 'http://192.168.26.162:8090/feed1.ffm':
11-11 09:38:26.895 9116-9116/org.bytedeco.javacv.recordactivity I/System.out: Stream #0:0
11-11 09:38:26.895 9116-9116/org.bytedeco.javacv.recordactivity I/System.out: : Video: mpeg1video, yuv420p, 320x240, q=2-31, 400 kb/s
11-11 09:38:26.895 9116-9116/org.bytedeco.javacv.recordactivity I/System.out: ,
11-11 09:38:26.895 9116-9116/org.bytedeco.javacv.recordactivity I/System.out: 30 tbn,
11-11 09:38:26.895 9116-9116/org.bytedeco.javacv.recordactivity I/System.out: 30 tbc
11-11 09:38:26.895 9116-9116/org.bytedeco.javacv.recordactivity I/System.out: Stream #0:1
11-11 09:38:26.895 9116-9116/org.bytedeco.javacv.recordactivity I/System.out: : Audio: mp2, 44100 Hz, mono, s16, 64 kb/s
11-11 09:38:26.985 9116-9116/org.bytedeco.javacv.recordactivity W/System.err: Warning: [mpeg @ 0x63a648a0] VBV buffer size not set, using default size of 130KB
11-11 09:38:26.985 9116-9116/org.bytedeco.javacv.recordactivity W/System.err: If you want the mpeg file to be compliant to some specification
11-11 09:38:26.985 9116-9116/org.bytedeco.javacv.recordactivity W/System.err: Like DVD, VCD or others, make sure you set the correct buffer size
11-11 09:38:26.985 9116-9116/org.bytedeco.javacv.recordactivity W/RecordActivity: Start Button Pushed
11-11 09:38:27.055 9116-9130/org.bytedeco.javacv.recordactivity D/dalvikvm: GC_FOR_ALLOC freed 1975K, 6% free 53271K/56404K, paused 43ms, total 43ms
11-11 09:38:27.065 9116-11941/org.bytedeco.javacv.recordactivity D/RecordActivity: audioRecord.startRecording()
In ffplay window, I can see:
http://192.168.26.162:8090/live.mpeg: Invalid data found when processing input
If recorder.setFormat("flv")`
11-11 09:46:13.022 17900-17900/org.bytedeco.javacv.recordactivity I/RecordActivity: recorder initialize success
11-11 09:46:13.092 17900-17900/org.bytedeco.javacv.recordactivity I/System.out: Output #0, flv, to 'http://192.168.26.162:8090/feed1.ffm':
11-11 09:46:13.092 17900-17900/org.bytedeco.javacv.recordactivity I/System.out: Stream #0:0
11-11 09:46:13.092 17900-17900/org.bytedeco.javacv.recordactivity I/System.out: : Video: flv1 (flv), yuv420p, 320x240, q=2-31, 400 kb/s
11-11 09:46:13.092 17900-17900/org.bytedeco.javacv.recordactivity I/System.out: ,
11-11 09:46:13.092 17900-17900/org.bytedeco.javacv.recordactivity I/System.out: 30 tbn,
11-11 09:46:13.092 17900-17900/org.bytedeco.javacv.recordactivity I/System.out: 30 tbc
11-11 09:46:13.092 17900-17900/org.bytedeco.javacv.recordactivity I/System.out: Stream #0:1
11-11 09:46:13.092 17900-17900/org.bytedeco.javacv.recordactivity I/System.out: : Audio: aac, 44100 Hz, mono, fltp, 64 kb/s
11-11 09:46:13.132 17900-17900/org.bytedeco.javacv.recordactivity W/RecordActivity: Start Button Pushed
11-11 09:46:13.132 17900-17900/org.bytedeco.javacv.recordactivity I/Choreographer: Skipped 64 frames! The application may be doing too much work on its main thread.
11-11 09:46:13.162 17900-19069/org.bytedeco.javacv.recordactivity D/RecordActivity: audioRecord.startRecording()
In ffplay window, I can see:
[flv @ 0x7f19e80008c0] Could not find codec parameters for stream 0 (Video: none, none, 64 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[flv @ 0x7f19e80008c0] Could not find codec parameters for stream 1 (Audio: none, 0 channels, 64 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
http://192.168.26.162:8090/live.flv: could not find codec parameters
What way I have to choose? Thx
Do you get the same thing when using ffmpeg
on the command line?
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 ffmpeg
using in that case? Have you tried to use those same audio and video codecs with FFmpegFrameRecorder
? And have you tried to setFormat("ffm")
?
Also, does the same thing happen with FFmpegFrameRecorder
on the desktop? Or does it happen only on Android?
The codecs in the ffserver.conf? Always are the same:
<Stream live.mpeg>
Feed feed1.ffm
Format ffm
......
AudioCodec mp2
VideoCodec mpeg2video
......
Now, I tried to use recorder.setFormat("ffm")
. I need to use VideoCodec mpeg1video. I can see just the first seconds of the video. Server window shows:
Mon Nov 16 14:53:11 2015 192.168.26.211 - - [POST] "/feed1.ffm HTTP/1.1" 200 667648
Mon Nov 16 14:53:11 2015 [mpeg @ 0x3b14af0]Application provided invalid, non monotonically increasing dts to muxer in stream 0: 900000 >= 858000
Mon Nov 16 14:53:11 2015 Error writing frame to output for stream 'live.mpeg': Invalid argument
And ffplay window shows:
[mpeg2video @ 0x7f9a9c004de0] Invalid frame dimensions 0x0. f=0/0
Last message repeated 1 times
Input #0, mpeg, from 'http://192.168.26.162:8090/live.mpeg':f=0/0
Duration: N/A, start: 0.000000, bitrate: 104921 kb/s
Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p(tv), 320x240 [SAR 1:1 DAR 4:3], 104857 kb/s, 30 fps, 30 tbr, 90k tbn, 30 tbc
Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16p, 64 kb/s
[mpeg1video @ 0x7f9a9c004de0] ac-tex damaged at 0 10= 0B f=0/0
[mpeg1video @ 0x7f9a9c004de0] Warning MVs not available
[mpeg1video @ 0x7f9a9c004de0] concealing 168 DC, 168 AC, 168 MV errors in P frame
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 VideoCodec h264
in ffserver.conf, when I start ffserver, I get this error:
/etc/ffserver.conf:33: Invalid codec name: 'h264'
/etc/ffserver.conf:40: Setting default value for audio bit rate = 64000. Use NoDefaults to disable it.
/etc/ffserver.conf:40: Setting default value for video bit rate tolerance = 21333. Use NoDefaults to disable it.
/etc/ffserver.conf:40: Setting default value for video rate control equation = tex^qComp. Use NoDefaults to disable it.
/etc/ffserver.conf:40: Setting default value for video max rate = 128000. Use NoDefaults to disable it.
Error reading configuration file '/etc/ffserver.conf': Invalid argument
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:
Wed Nov 18 11:41:38 2015 192.168.26.211 - - New connection: POST /feed1.ffm
Wed Nov 18 11:41:48 2015 192.168.26.162 - - New connection: GET /live.mpeg
Wed Nov 18 11:41:48 2015 [mpeg @ 0x3902690]VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Well, you should use a version of ffserver
that supports h264
.
This is my ffserver -version result:
ffserver version N-76045-g97be5d4 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libdcadec --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
libavutil 55. 4.100 / 55. 4.100
libavcodec 57. 6.100 / 57. 6.100
libavformat 57. 4.100 / 57. 4.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 11.100 / 6. 11.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.100 / 2. 0.100
libpostproc 54. 0.100 / 54. 0.100
Which version should I use?
Maybe it wants libx264
as "codec name"?
I do not understand. You mean VideoCodec libx264
in fserver.conf`? If yes, I have tried and have the same result (short video after closing streaming from android).
So, what error message do you get in that case in Android?
Sorry, saudet, but I can not work on it anymore. Thanks for your help.
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