how to use ffmpeg on android

后端 未结 3 1148
自闭症患者
自闭症患者 2020-12-12 04:12

I want to create video file from Jpeg and audio file. I\'ve compiled FFMpeg to android and I\'ve got libffmpeg.so, and obj folder with ithers resources.

But how to u

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 04:47

    From the FFmpeg docs on images:

    The following example shows how to use ffmpeg for creating a video from the images in the file sequence ‘img-001.jpeg’, ‘img-002.jpeg’, ..., assuming an input frame rate of 10 frames per second:

    ffmpeg -i 'img-%03d.jpeg' -r 10 out.mkv
    

    To actually run it from Android, look at the documentation for Runtime.exec().

提交回复
热议问题