wader / fq

jq for binary formats - tool, language and decoders for working with binary and text formats
Other
9.74k stars 227 forks source link

Support FLV format #28

Open xyb opened 2 years ago

xyb commented 2 years ago

Is it possible to support FLV format files? I am using some video sites and they are still using this format. See also https://docs.fileformat.com/video/flv/

wader commented 2 years ago

Hi, here is actually a start of FLV decoder but I don't remember how far I got. Maybe could be a start if you want to work on it. You can find it here https://github.com/wader/fq/blob/master/format/flv/flv.go. It's currently not built into fq.

What is your use case? maybe ffmpeg etc would fit better if you want to remux etc.

wader commented 2 years ago

Some part of the RTMP decoder #214 could probably interesting for FLV decoder, amf0, sample format etc. Maybe could split out and share some things?