VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. 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...
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Why so such short cuts?

    Maybe try ask in the official VLC forum, http://forum.videolan.org/viewforum.php?f=32
    Quote Quote  
  3. why does this happen?
    probably because you are not cutting on key-frames or you are missing frames since you are not buffering the frames before writing them.
    Quote Quote  
  4. Thanks for replying. Yeah have posted in vlc forum as well.
    @Selur
    Buffering is not required since im writing to a pipe/fifo and hence there are no chances of frames getting lost. and im running the writing to the pipe and reading from the pipe in different threads.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!