S
S
Shaidulint2016-08-16 15:49:42
.NET
Shaidulint, 2016-08-16 15:49:42

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

2 answer(s)
T
Tsimur_S, 2016-08-16
@Tsimur_S

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.

M
Maxim Moseychuk, 2016-08-16
@fshp

Process.Start("ffmpeg.exe", "params");

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question