sourab-sharma / TouchToRecord

Touch android camera surface view to record video using FFmpeg Recorder
297 stars 104 forks source link

generated video does not play on google chrome & firefox #13

Open scheriff opened 8 years ago

scheriff commented 8 years ago

safari plays nicely but others don't. chrome only plays the audio and firefox gives the error "file corrupt" My current browser versions are; Chrome Version 47.0.2526.111 (64-bit) Firefox 43.0.4 Safari 8.0.8

BackPackerDz commented 8 years ago

Same issue !

xwyzl commented 8 years ago

same problem

njarun commented 8 years ago

same problem.

sourab-sharma commented 8 years ago

Hi,

I am unable to reproduce it on Chrome and Firefox by playing local video captured by app. I had disabled the installed video related plugins also on Firefox 45.0.1 and Chrome 49.0.2623.110 m. Can some one help me to reproduce it by any means ?

sourab-sharma commented 8 years ago

I have just changed the codec in RecorderParameters private int videoCodec = avcodec.AV_CODEC_ID_H264;

AND changed FFmpegFrameRecorder.

Please try updated code and let me know if anything changes.

Also you can try private int videoCodec = avcodec.AV_CODEC_ID_H263; I guess.