vlc 1.2 nightly .3mu8.tmp livehttp

About encoding, codec settings, muxers and filter usage
kreid4
New Cone
New Cone
Posts: 7
Joined: 13 Oct 2008 21:56

vlc 1.2 nightly .3mu8.tmp livehttp

Postby kreid4 » 24 Feb 2011 12:09

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15326
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Postby Rémi Denis-Courmont » 24 Feb 2011 17:31

That's a known bug on Windows. Patch is welcome on the vlc-devel mailing list.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kreid4
New Cone
New Cone
Posts: 7
Joined: 13 Oct 2008 21:56

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Postby kreid4 » 13 Mar 2011 11:44

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15326
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Postby Rémi Denis-Courmont » 13 Mar 2011 12:41

tmp is a short for TeMPorary. There is no release date for 1.2 and there is no known fix.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

levidos
New Cone
New Cone
Posts: 2
Joined: 30 Mar 2011 01:09
Location: Cluj-Napoca, Romania

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Postby levidos » 30 Mar 2011 01:55

this means there's no way to stream to iphone from windows/IIS at the moment?

Rémi Denis-Courmont
Developer
Developer
Posts: 15326
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Postby Rémi Denis-Courmont » 30 Mar 2011 12:05

Yes there is. Patch VLC and recompile.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

adammw
Blank Cone
Blank Cone
Posts: 10
Joined: 28 Jan 2008 16:20

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Postby adammw » 21 May 2011 19:46

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 ); }

Rémi Denis-Courmont
Developer
Developer
Posts: 15326
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Postby Rémi Denis-Courmont » 21 May 2011 22:21

I think the bug was fixed since then.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlc 1.2 nightly .3mu8.tmp livehttp

Postby Jean-Baptiste Kempf » 21 May 2011 22:48

I think the bug was fixed since then.
I think so too.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 8 guests