Quantcast
Channel: VideoHelp Forum
Viewing all articles
Browse latest Browse all 47148

Cutting a h.264 video stream into smaller files

$
0
0
Hi
I am streaming a h.264 video from a surveillance camera through vlc in C program in linux and write it to a fifo pipe. Then i read from this fifo pipe and write to a file for 10sec. after completing writing for 10sec i move on to write to another file. However, there are some frames lost when i play back the split files i.e some frames are lost when one video ends and the next video starts, why does this happen? am i missing something technically? I even tried writing to files which were already created and opened (so that i wanted to eliminate the time taken to open and close a file which is negligible though (or isn't it?)) why some frames are lost towards the end and start of next video?! there is no other process reading from the fifo. i know i can use some cutters available but i have to do it through a C program only! Plz help...

Viewing all articles
Browse latest Browse all 47148

Trending Articles