Idris
Idris

Reputation: 158

encoding multipart mp4 files

I am uploading a large mp4 files in chunks to the server. It is possible to encode these chunks using ffmpeg? and combine into a single file.

I tried this but getting moov atom not found/ Invalid data found when processing format.

However the first part of the chunk encodes correctly

Upvotes: 1

Views: 676

Answers (1)

szatmary
szatmary

Reputation: 31110

No, you can not encode each chunk, because (surprise) the moov atom is missing. The moov atom is at the front (or sometimes back) of the file. Hence the first chunk encoding correctly. Without the moov, the rest of the file is gibberish. Other containers such as TS, or FLV are streamable, but even then you need complete GOPs to transcode each 'chunk'.

Upvotes: 1

Related Questions