使用FFmpeg解码私有传输协议标准H264流
How to convince ffmpeg that input is raw H264?
ffmpeg -f h264 -i avcfile.h264 -c copy out.mp4
somenetworkstreamer | ffmpeg -f h264 -i pipe: -c copy out.mp4
[SOLVED]-CREATE A VIDEO-STREAMING SERVER FROM A RAW H.264 FRAME STREAM-C
ffmpeg -f h264 -i pipe: -c copy -f mp4 -movflags frag_keyframe+empty_moov pipe:
cat file.mp3 | ffmpeg -f mp3 -i pipe: -c:a pcm_s16le -f s16le pipe:
https://ffmpeg.org/ffmpeg-protocols.html#pipe
This protocol accepts the following options:
blocksize
Set I/O operation maximum block size, in bytes. Default value is INT_MAX, which results in not limiting the requested block size. Setting this value reasonably low improves user termination request reaction time, which is valuable if data transmission is slow.
fd
Set file descriptor
Note that some formats (typically MOV), require the output protocol to be seekable, so they will fail with the pipe output protocol.