The resulting FLV of the direct approach (A.flv, see below) has a slightly different file structure, especially the NAL unit differs, which I suspect is the reason for the different behavior. The first video plays fine, the second does not. Each video is only displayed from the second frame, which is a shame for single-frame videos (using the GPU's hardware encoder for lightning-fast image compression only).įor inspection, I now reencode the input video twice: once directly to FLV output ffmpeg -f h264 -i "input.h264" -c:v h264_nvenc -f flv "A.flv"Īnd once to H.264, then shoving it into an FLV afterwards. This did not work as expected, because the first frame of each video treated this way is simply not shown. For an Adobe AIR application, I need to wrap the video into the FLV format, for which I wanted to use FFMPEG: ffmpeg -f h264 -i "input.h264" -c copy -f flv "output.flv" Nvidia's hardware encoder NVENC produces raw H.264 data without a container, which is difficult to play in most video players. I need to do it separately, how do I get the same result as doing it directly? Tl dr: There is a difference between encoding a video and directly storing it into FLV and doing this in two separate steps. First of all, the "properly" in the title refers to this related question, of which answer does not solve my problem.
0 Comments
Leave a Reply. |