how to save the mjpeg stream as 3gp or mp4 format video files to the sdcard in android

前端 未结 2 724
广开言路
广开言路 2020-12-21 19:57

i have saved the mjpeg stream to the sdcard as xxx.mjpeg .However, the mjpeg video file was not supported in android. so how could i encode mjpeg video into 3gp or mp4 forma

2条回答
  •  既然无缘
    2020-12-21 20:20

    I am not aware of state of mobo's ffmpeg source out there. I had built it long back.

    I tried the rockplayer's ffmpeg port. This has hassle free build. I was able to build it today successfully on NDK_r4b.

    You can download the source from here : http://www.rockplayer.com/tech_en.html

    modify the config.mk to change your tool paths and run build_andriod.sh (spelling is wrong, but it works :) )

    let me know how it goes

提交回复
热议问题