Cheyenne Forbes
Cheyenne Forbes

Reputation: 501

Convert webm (or any other) format's chunks to mp4

Is it possible to get webm ( or other format ) chucks from a http post (upload) on my sever (i know how to do this).... then feed them as chucks (chunks recieved from browser) to gstreamer or ffmpeg to be converted to mp4 with reduced quality without loading the entire file in memory or to disk before saving the converted mp4? Why I dont want them to be loaded fully into memory or disk? scalability

Upvotes: 1

Views: 1025

Answers (1)

Alex Cohn
Alex Cohn

Reputation: 57173

Yes, you can feed ffmpeg one frame at a time without keeping the whole video file locally. You can read chunks of data from http stream and give them to ffmpeg library to decode. Here is an official example.

Upvotes: 1

Related Questions