Answer the question
In order to leave comments, you need to log in
How to extract I-frame from h264 stream?
During the trip, I leaked video from the registrar. Those. at the input we have a cloud of mov files in h264 format with a fixed bitrate.
Task: get a carlapse video (carlapse) at the output. To do this, you need to speed it up n times.
Since the video stream consists of a sequence of GOPs, why not leave only I frames? I mean that the streaming encoding mode of the registrar has a fixed GOP pattern. By removing intermediate frames, we get free video acceleration without transcoding. Subjectively, the quality of the picture should even increase, since there will be no P frames.
Question: how to extract I frames and display them in a separate video stream?
Answer the question
In order to leave comments, you need to log in
Stupid solution, but working:
1. Glue the files together.
To do this, we prepare a list of files in txt of the form:
file 'D:\video\dvr\20171101_01.mov'
file 'D:\video\dvr\20171101_02.mov'
file 'D:\video\dvr\20171101_03.mov'
ffmpeg.exe -f concat -safe 0 -i "D:\video\dvr\files.txt" -c copy
"D:\video\movie.mov"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question