Answer the question
In order to leave comments, you need to log in
How to pack raw data (h.264) to mp4 (C#)?
Hello. I have this situation: I receive video from an IP camera via the RTSP protocol, write the received bytes to a file and get raw h.264. The file is played, but it is not good to store it in its naked form.
Tell me, who knows how to pack this raw data (h.264) into mp4?
Using C#
Answer the question
In order to leave comments, you need to log in
ffmpeg -i "source.h264" -c:v copy -f mp4 "myOutputFile.mp4". I suppose you can run ffmpeg through the system.diagnostic.process api or use a wrapper.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question