09:49
I’m creating a timelapse video from a folder of images using FFmpeg, generating two HLS (m3u8) playlists: one at 1080p and another at 2K resolution. The playlists and .ts segments appear to be generated correctly, but when I play the m3u8 files in media players like VLC or PotPlayer, the video does not play seamlessly. Instead, it plays in a segment-by-segment manner (e.g., it stops after each segment and doesn’t automatically continue to the next one). I expect the entire video to play continuously without interruptions. What could be the issue?
I ran these commands on cmd:
for %i (...)
08:00
I want to speed up the process of HLS segmentation of .mp4 video. Now, processing a half-hour video can take about 5 minutes, and that is too long.
To do this, I decided to split the video into fragments, process each of them in parallel, and then create an .m3u8 file that will contain a list of .ts files from all the resulting playlists in the correct order.
I used the next commands:
ffmpeg -i original.mp4 -acodec copy -f segment -segment_time 10 -vcodec copy -reset_timestamps 1 -map 0 output_time_%d.mp4
for splitting the original video to .mp4 fragments 10 seconds (...)
07:29
I'm working on a video player using FFmpeg in C++, where I need to seek to a specific PTS (timestamp) and start decoding from there. However, even after a successful av_seek_frame(), decoding always starts from frame 0 instead of the target frame.
void decodeLoop()
while (!stopThread)
std::unique_lock lock(mtx);
cv.wait(lock, [this] return decoding || stopThread; );
if (stopThread) break;
int64_t reqTimestamp = requestedTimestamp.load();
// **Skip redundant seeks**
if (reqTimestamp == (...)