| recorder = new FFmpegFrameRecorder(ffmpeg_link, imageWidth, imageHeight, 1); |
| recorder.setFormat("flv"); |
| recorder.setSampleRate(sampleAudioRateInHz); |
| // Set in the surface changed method |
| recorder.setFrameRate(frameRate);
while i am checking the video at server side it says:
Sorenson-H263 is not compatible with HLS. You should have H264-encoded video. then i changed that code like this way: recorder.setVideoCodec(13); recorder.setFormat("mp4"); recorder.setPixelFormat(avutil.PIX_FMT_YUV420P); recorder.setFrameRate(12); recorder.setVideoBitrate(10 * 1024 * 1024); i am getting this error. "com.googlecode.javacv.FrameRecorder$Exception: avcodec_find_encoder() error: Video codec not found". |
hi Samuel:
I follow this site for sending the live video from android to other server.
in that they are using this code
recorder = new FFmpegFrameRecorder(ffmpeg_link, imageWidth, imageHeight, 1);
recorder.setFormat("flv");
recorder.setSampleRate(sampleAudioRateInHz);
// Set in the surface changed method
recorder.setFrameRate(frameRate); while i am checking the video at server side it says: Sorenson-H263 is not compatible with HLS. You should have H264-encoded video.
then i changed that code like this way: recorder.setVideoCodec(13); recorder.setFormat("mp4"); recorder.setPixelFormat(avutil.PIX_FMT_YUV420P); recorder.setFrameRate(12); recorder.setVideoBitrate(10 * 1024 * 1024); i am getting this error. "com.googlecode.javacv.FrameRecorder$Exception: avcodec_find_encoder() error: Video codec not found".
--
---
You received this message because you are subscribed to a topic in the Google Groups "javacv" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/javacv/Ku8PzOUMobA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to javacv+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
--- You received this message because you are subscribed to a topic in the Google Groups "javacv" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/javacv/Ku8PzOUMobA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to javacv+unsubscribe@googlegroups.com.
--
--- You received this message because you are subscribed to a topic in the Google Groups "javacv" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/javacv/Ku8PzOUMobA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to javacv+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
AV_CODEC_ID_H264 cannot be resolved to a variable
recorder.setVideoCodec(avcodec.AV_CODEC_ID_H264);
HiSamuel Audet,
Thanq very much,i followed this link https://code.google.com/p/javacv/ and add this linerecorder.setVideoCodec(avcodec.AV_CODEC_ID_H264);
now working great.Thanks a lot.
On Mon, Jan 20, 2014 at 7:04 PM, Samuel Audet <samuel...@gmail.com> wrote:
On 01/20/2014 09:50 PM, Venkata Reddy Nallamilli wrote:The RecordActivity.java sample should do that just fine:
Is there any separate android application which will transfer live video
of h264 type video from android camera to server? please send me if any
code is available with you!
http://code.google.com/p/javacv/source/browse/samples/RecordActivity.java
Samuel
--
--- You received this message because you are subscribed to a topic in the Google Groups "javacv" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/javacv/Ku8PzOUMobA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to javacv+un...@googlegroups.com.
recorder.setVideoCodec(avcodec.AV_CODEC_ID_H264);[ + import org.bytedeco.javacpp.presets.avcodec; ]
AV_CODEC_ID_H264 still does not get resolved.
import static org.bytedeco.javacpp.avcodec.*;for that to work!