Video file: fast forward and rewind does not work

I have several video clips in flv and mp4 formats that do not accelerate forward or backward to arbitrary points (time indices). Basically, each video clip has 4 or 5 points to which you can step back or forward, but you cannot forward or drop arbitrary time indices. I was wondering if there is anyway to change or convert the video so that I can forward or return to any time index in the video.

thanks for the help

+4
source share
1 answer

In general, you cannot search for arbitrary temporary positions in a video file format such as MP4. This is because video players rely on the container to provide file offsets for video frames that can be arbitrarily accessed, and only certain frames are qualified. (Most video frames cannot be decoded on their own, but rely on information from several previous frames.)

However, many videos provide the illusion of finding arbitrary time positions, providing many points of random access. In other words, the GOP size remains small (key frames every 1 second are typical), and these key frames are mentioned in the MP4 structure. Your videos are probably encoded with large GOP sizes, so they have very few search points.

I suspect that if you transcode your videos using a tool such as FFmpeg with the default settings, you will find that they are much more useful when searching.

+6
source

Source: https://habr.com/ru/post/1394886/


All Articles