FFMPEG : Redirecting MP4 muxed data to socket

删除回忆录丶 提交于 2019-12-06 02:58:01

Just got one way to output the muxed MP4 output directly on the socket using fragments. I know there are limitations of using fragments but this can be useful.

https://www.ffmpeg.org/ffmpeg-formats.html#Example-1

So following command line is working for me now. I am able to play the MP4 file received from the 8888 port. ffprobe also confirms that its really an MP4 file.

ffmpeg -i Stingray.264 -f mp4 -movflags isml+frag_keyframe -vcodec copy tcp://10.99.19.224:8888

Now I will have to write the C program to do this pragmatically.

If you look at all the ffmpeg output, there is a line:

[mp4 @ 0033d660] muxer does not support non seekable output

The mp4 container needs to go back at the beggining of the file to write additional information. A thing that your network socket can not do. So it is not possible to use mp4 container here.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!