unnivm / javacv

Automatically exported from code.google.com/p/javacv
0 stars 0 forks source link

Unable to playback video from sever in flash and HTML5 player #375

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I recored video using FFMPEGRecorderActivity.java example
2. Edited frames in onPreviewFrame function before 
yuvIplimage.getByteBuffer().put(data);
3. Played on PC it played fine in JetAudio however when I uploaded on server 
and tried to play in SWF and HTML5 played I only hear audio no video is being 
played.

What is the expected output? What do you see instead?
Play video from server in HTML5 or Flash Player

What version of the product are you using? On what operating system?
javacv-0.6 and OpenCV 2.4.6, FFmpeg 2.0 compiled for Android

Please provide any additional information below.
Code Using for recording is attched

I think there is some video codec problem. Maybe I am setting some wrong 
perameters. If so that please tell me the perameters for MP4 format that I will 
able to play video in HTML5 player.

Original issue reported on code.google.com by djahmednawaz on 14 Oct 2013 at 9:23

Attachments:

GoogleCodeExporter commented 8 years ago
Can you explain how you installed everything? 

Does the RecordActivity.java sample file work correctly?

Original comment by samuel.a...@gmail.com on 14 Oct 2013 at 9:49

GoogleCodeExporter commented 8 years ago
I have installed everything video recorded by my code is being played fine on 
PC in jetaudio but not from server.

Original comment by djahmednawaz on 14 Oct 2013 at 11:20

GoogleCodeExporter commented 8 years ago
Well, AFAIK, the only format that is compatible with both Flash and HTML5 is 
H.264, so you should try to encode in that format by calling:
    recorder.setVideoCodec(AV_CODEC_ID_H264);

And please ask your questions on the mailing list next time if possible, thank 
you.

Original comment by samuel.a...@gmail.com on 14 Oct 2013 at 11:40