简体   繁体   中英

How to save H.264 stream to mp4 container using Accord.FFMPEG.Video

I am receiving raw H.264 frames in a callback in C#. I can save the stream to a *.264 file where I can see the video using Elecard StreamEye.

Is it possible to save the video to an mp4 container using Accord.FFMPEG.Video VideoFileWriter or VideoFileSource without re-encoding it?

I would rather not have to implement it using p/Invokes to libav unless there is no alternative.

Check out this link. In general, ffmpeg is smart enough to output .mp4 based on the output extension specified. Also giving -copy avoids re-encoding.

https://askubuntu.com/questions/690015/how-can-i-convert-264-file-to-mp4

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM