[vlc-devel] [PATCH] livehttp - keep index file up to date when doing non-live transcoding on Windows

Keary Griffin keary.griffin at unwiredappeal.com
Thu Feb 17 19:08:37 CET 2011

I think the issue may be that vlc_rename isn't working as expected under 
windows (it's not removing the file if it already exists).   At least 
that seemed to be the case last summer when I originally put together 
the livehttp module:


On 2/17/2011 1:01 PM, Rob wrote:
> Hi Remi,
> the point is to make the content useable before the whole transcode 
> has finished.
> at the moment on windows, the process for transcoding a movie is 
> something like:
> 1) livehttp outputs first segment, and index.m3u8 referencing segment 1
> 2) outputs all the other segments, updating index.m3u8.tmp
> (step 2 might take 30mins or so for a movie)
> 3) index.m3u8 is with the index.m3u8.tmp
> On Thu, 17 Feb 2011 17:36:43 -0000, Rémi Denis-Courmont 
> <remi at remlab.net> wrote:
>> On Windows, vlc_rename() erases the old file before renaming. This is 
>> not
>> atomic, but:
>> - the window of opportunity for failure is still much smaller,
>> - the client never gets an incomplete file; at worse, an error,
>> - it does not break working POSIX systems for the sake of Windows.
>> I don't really see the point of this patch.
>>> http://techblog.unwiredappeal.com/2010/03/vlc-http-live-streaming-module-pa 
>>> tch.html it brings functionality in line with linux/mac.
>>> tested on winxp, win7
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel

More information about the vlc-devel mailing list