Page 1 of 1

vlc 1.2 nightly .3mu8.tmp livehttp

Posted: 24 Feb 2011 12:09
by kreid4
Hello
I am using vcl 1.2 : livehttp access module (windows 7 32bit)

However the m3u8 file isn't updated correctly.

When VLC attempts to update the m3u8 file after creating another segment it creates mystream.m3u8.tmp and continues to update the .tmp file, leaving the original m3u8 with the first segment only.

So my iphone can not read the stream.
Is there a way to copy the m3u8.tmp file to just a . m3u8 file on the fly please. Or is a fix planned.

Thank you

Kreid4

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Posted: 24 Feb 2011 17:31
by Rémi Denis-Courmont
That's a known bug on Windows. Patch is welcome on the vlc-devel mailing list.

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Posted: 13 Mar 2011 11:44
by kreid4
Hello
Does anybody have a work round for this this yet.
What is a .tmp file?
Is it an artifact of VLC or windows?
is there a release date yet for 1.2?
is there a version of 1.2 that does not have this bug?
can i download the source code?

Thank you.
Merci
Kreid4

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Posted: 13 Mar 2011 12:41
by Rémi Denis-Courmont
tmp is a short for TeMPorary. There is no release date for 1.2 and there is no known fix.

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Posted: 30 Mar 2011 01:55
by levidos
this means there's no way to stream to iphone from windows/IIS at the moment?

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Posted: 30 Mar 2011 12:05
by Rémi Denis-Courmont
Yes there is. Patch VLC and recompile.

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Posted: 21 May 2011 19:46
by adammw
A patch that I've found to work is simply to comment out the renaming portion and write directly to the m3u8 file rather than a tmp file, however while it may work in small tests, it's likely to cause some nasty stuff with the webserver if VLC is writing while the server is trying to read it. I'm not sure of the proper way of doing it to start with, so I can't really propose a fix. Also, it might depend on the server your using as well as the host OS as to what sort of reading while writing you can get away with. But hey, it's better than the "file not found" error.

Code: Select all

diff --git a/modules/access_output/livehttp.c b/modules/access_output/livehttp.c index b2c55f3..b44bbf3 100644 --- a/modules/access_output/livehttp.c +++ b/modules/access_output/livehttp.c @@ -247,7 +247,7 @@ static int updateIndexAndDel( sout_access_out_t *p_access, sout_access_out_sys_t int val; FILE *fp; char *psz_idxTmp; - if ( asprintf( &psz_idxTmp, "%s.tmp", p_sys->psz_indexPath ) < 0) + if ( asprintf( &psz_idxTmp, "%s", p_sys->psz_indexPath ) < 0) return -1; fp = vlc_fopen( psz_idxTmp, "wt"); @@ -297,15 +297,7 @@ static int updateIndexAndDel( sout_access_out_t *p_access, sout_access_out_sys_t } fclose( fp ); - val = vlc_rename ( psz_idxTmp, p_sys->psz_indexPath); - - if ( val < 0 ) - { - vlc_unlink( psz_idxTmp ); - msg_Err( p_access, "Error moving LiveHttp index file" ); - } - else - msg_Info( p_access, "LiveHttpIndexComplete: %s" , p_sys->psz_indexPath ); + msg_Info( p_access, "LiveHttpIndexComplete: %s" , p_sys->psz_indexPath ); free( psz_idxTmp ); }

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Posted: 21 May 2011 22:21
by Rémi Denis-Courmont
I think the bug was fixed since then.

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Posted: 21 May 2011 22:48
by Jean-Baptiste Kempf
I think the bug was fixed since then.
I think so too.