Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

[Android] - [Question] Create video from in memory images? #982

@vieraleonel

Description

@vieraleonel

Hi. I have a Java Android app that writes between 30 to 50 images to disk then produces a mp4 video. Originally I have them in byte[] format but turn them into JPEG Bitmaps that then are written to files. I some conditions, this process is a bit slow, mainly because all the writing and consequent reading of the image files.

Is there any way to pass the in memory list of byte[] or list of Bitmap to ffmpeg input in order to prevent all the initial writing operations?

For reference the command im using is:

-f concat -i imagest.txt -c:v mpeg4 -pix_fmt yuv420p -framerate 50 -b:v 2000k video.mp4

Note: I also can't get to work the command with input 'image%d.jpeg' so I end up using concat with a text file as input.

Environment

  • Platform: Android
  • Architecture: ``
  • Version: v6.0-2
  • Source branch: main
  • Android Studio version: Android Studio Jellyfish | 2023.3.1
  • Android NDK version: ``
  • flutter doctor:
  • react-native info:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions