rejetto forum
Software => Other languages => HFS ~ HTTP File Server => Pусский => Topic started by: GANGE on October 17, 2016, 08:49:14 PM
-
Люди добрые подскажите как генерировать плейлисты m3u или m3u8 или xspf.
http://www.rejetto.com/forum/f-a-q-s/m3u-or-rss-templates-need-customized-mime-type/msg1044699/#msg1044699 (http://www.rejetto.com/forum/f-a-q-s/m3u-or-rss-templates-need-customized-mime-type/msg1044699/#msg1044699) тут недопонял. http://192.168.0.2:777/~files.lst.m3u - такого вида
-
use a media player to create you playlist
Easiest Itunes
https://www.techwalla.com/articles/how-to-create-an-m3u-playlist
edit you playlist file and change the path to the song with the http path from hfs.
http://www.xspf.org/xspf-v0.html
other helpfull notes:
-------------------
using live rarw template:
See posts:
http://www.rejetto.com/forum/hfs-~-http-file-server/information-(mime-types)-embed-pdfsvideo-and-audio/
and/or
http://www.rejetto.com/forum/hfs-~-http-file-server/video-(-avi-or-other)-preview-doesn't-work-on-folder-lock-11213/
Quote from: bmartino1 on November 18, 2013, 08:06:30 PM
windows media player doesn't suport "auth" stream(with out some major fiddling), use vlc for it
also, you can do it with html coding and a playlist file. have you ever heard of a "*.M3U"?
A m3u is a pre-made code list of songs you put there via program or notepad...
using a msu file helps stream multiple files, and can put authentication in the file itself, so you create a list of music and put it in a m3u file the m3u become the single file that you play on a media player...
( yes these are going over music, but video formats also port over with them... )
http://en.wikipedia.org/wiki/M3U
Here a site that may work for you as well:
http://howto.wired.com/wiki/Stream_Your_Music_Online#Extended_M3U
please note:
--------------------------
Don't Feed the Lawyers:
You could be fined for broadcasting music/movies you don't own the copyright to, and in most cases the penalties are pretty severe. There are also plenty of rabid music industry lawyers with a history of going to great lengths to prosecute copyright violators. That said, be careful how you distribute your streams.
Some of the software solutions listed here have built-in password protection. Otherwise, you'll have to know some SSL and/or password protection web hosting configurations to lock down your stream.
Your other option -- and probably the safest -- is to just keep your station under wraps. You can listen to it freely, but don't go spreading the word. Remember, the internet has ears!
-------------------------------
-
Мне надо чтобы нажал на ссылку и автоматически создался плейлист из того что находится в определенной расшаренной папке hfs. Я понимаю что это не сложно сделать, но не пойму как)
Мне не нужны шаблоны сайтов, мне нужно как то организовать простой темлейт. Вообще мне это надо было чтобы мой ТВ получал по ссылке плейлист с видео с компа.
PS В итоге походу проще будет подключаться через smb или UPnP.
-
@bmartino1: it seems this user wants to generate this m3u8 dynamically within HFS itself (and not using external apps). So, if he adds some files on his shared folder, HFS updates the m3u8 automatically, or he'll update it by clicking some button in HFS's web interface. He wants to generate this list, to play it easily on his TV. I don't know the solution, so, that's why I'm explaining what he is looking for... :|
-
@bmartino1: it seems this user wants to generate this m3u8 dynamically within HFS itself (and not using external apps). So, if he adds some files on his shared folder, HFS updates the m3u8 automatically, or he'll update it by clicking some button in HFS's web interface. He wants to generate this list, to play it easily on his TV. I don't know the solution, so, that's why I'm explaining what he is looking for... :|
All right, thank you bro! 8)
-
i don't have a good solution for it, i would assume messing with the archive code would be the option, i always made / edited the list manually.
-
@bmartino1: it seems this user wants to generate this m3u8 dynamically within HFS itself (and not using external apps). So, if he adds some files on his shared folder, HFS updates the m3u8 automatically, or he'll update it by clicking some button in HFS's web interface. He wants to generate this list, to play it easily on his TV. I don't know the solution, so, that's why I'm explaining what he is looking for... :|
thank you for this info. the best solution i have for this is to use a vlc ...
http://www.rejetto.com/forum/html-templates/replacing-rawr-templates'-player-with-html-5-or-vlc-player/msg1061548/#msg1061548
overview - setup:
http://www.videolan.org/vlc/streaming.html
http://www.howtogeek.com/118075/how-to-stream-videos-and-music-over-the-network-using-vlc/
you can also tie in the vlc web player into hfs.....
http://filehippo.com/download_vlc_media_player/32/
(this way, any new file added to vlc "youcan select a folder" will be added to a stream of playlist file.)
also you can have online stream within hfs, call html call vlc web plugin:
https://wiki.videolan.org/Documentation:WebPlugin/
https://wiki.videolan.org/Simple_Stream_VLC_to_Website/
http://stackoverflow.com/questions/14375767/embedding-vlc-plugin-on-html-page
-
@bmartino1: what you posted would work fine, but depending on the setting selected on VLC (and the network speed), 'streaming' may affect quality, since 'streaming' is like 're-encoding' the audio/video on-the-fly (but if you are on a WLAN you should not notice it). 'Streaming' will also increase CPU usage, but I don't think this is important here. So, it's a valid solution. Anyway, I don't have a better solution, sorry... :-\
The perfect solution would be writing the m3u/m3u8/xspf file using a template or macro, but that push the limits of my knowledge...
-
well, just for your information, an m3u (or m3u8) is just a text file with one filename per-line. Can more than that, but that's the basic. To save a text file you can use {.save.}, to generate the list you could use {.dir.}
-
Я не понял! Так как создавать вообще m3u8 файл для стриминга видео?
-
Я не понял! Так как создавать вообще m3u8 файл для стриминга видео?
(Translated) I do not understand! So how to create general m3u8 file for streaming video?
It's not easy, you must understand how templates/macros work, and follow what rejetto said:
well, just for your information, an m3u (or m3u8) is just a text file with one filename per-line. Can more than that, but that's the basic. To save a text file you can use {.save.}, to generate the list you could use {.dir.}
If it were easy for me, I would help you. Sorry.... :-\
-
This is a relevant question at this time. Many people now use streaming. Can do some visual instruction?
-
This is a relevant question at this time. Many people now use streaming. Can do some visual instruction?
this is as visual as i can get, i would have you refer to the above post:
http://www.rejetto.com/forum/pk/eea-eta-m3um3u8xspf/msg1061783/#msg1061783
links provded go over streaming with vlc.
-
You do not understand me. I meant Streaming on-demand. Not live !
-
This is a relevant question at this time. Many people now use streaming. Can do some visual instruction?
[...]
You do not understand me. I meant Streaming on-demand. Not live !
I agree. As you can read here (http://stackoverflow.com/questions/28872010/video-streaming-vs-playing-off-directly-from-files), the word "streaming" can be very flexible and misleading.
But after doing a fast research about this, I understand that a m3u/m3u8 file could be a simply a playlist or be an index file which could hold the URL of media segment files. A .m3u8 file is usually used for HTTP live streaming (https://en.wikipedia.org/wiki/HTTP_Live_Streaming), meanwhile a .m3u is more like an universal playlist. The matter here is that either by having a .m3u or .m3u8 file, pointing to a static MP4 file, is the same thing as playing the MP4 directly (technically speaking), since the source it's still a single file (which doesn't have any segments). You can, however "convert" a single MP4 to media segment files (.ts extension) and then use a index file (.m3u/m3u8 extension), but I don't see the point on doing this, unless you want to stream files over the internet (or you can use VLC like bmartino1 said). Here (http://samalpramod.blogspot.com/2013/03/how-convert-mp4-file-to-http-live.html) is a tutorial about doing this (but I don't recommend doing this).
Back to the point, a .m3u/m3u8 file is a simple playlist (a simple text file). So, if you don't want to deal with HFS's templates/macros, you will need to find a program that dynamically generates a .m3u/m3u8 from all the files contained in a folder. Then, it will be easy to make HFS run that app every XX minutes, or every time someone visits your website or folder with videos.
-
bunch of HFS + videojs + MPEG-Dash (or HLS)
https://videojs.github.io/videojs-contrib-dash/
maybe I'm wrong?
But I do not know how to create a file .mpd
What do you think of it? Thank you in advance for your advice!
-
@surikat: It may work, but I truly don't know (I haven't tested it and I don't know anything about the .mpd MPEG-DASH format). Try it and see if works.
-
It is necessary to segment .mp4 video file into segments, for example 10 seconds.
And create .mpd file. I did it through the console command:
mp4box -dash 10000 -rap -no-frags-default -profile onDemand any_file.mp4
there are files on drive C: Users\Admin
type any_file.m4s and any_file.mpd
The rest of the information here:
https://github.com/Dash-Industry-Forum/dash.js/releases/tag/v2.3.0
and
https://github.com/videojs/videojs-contrib-hls
-
About m3u8 ... I checked 100 times - it does not work! If your site is hosted, and HFS installed on a PC,
the file m3u8 (application/x-mpegURL) does not perceive.
HFS is not suitable for playing streaming video. IMHO
-
About m3u8 ... I checked 100 times - it does not work! If your site is hosted, and HFS installed on a PC,
the file m3u8 (application/x-mpegURL) does not perceive.
HFS is not suitable for playing streaming video. IMHO
ha, m3u work! .. you have to define the mime type! :p
i run a server with hfs form a m3u .. i know they work.. I don't know what your trying to do with suptiltes and splits...
-
The first thing I did this
File Mask: *.m3u8 Mime Description: application/x-mpegURL
and for Mpeg-Dash
*.m4s application/octet-stream
but does not work
and put it in : Diff Template : {.add header | Access-Control-Allow-Origin: * .}
-
The first thing I did this
File Mask: *.m3u8 Mime Description: application/x-mpegURL
and for Mpeg-Dash
*.m4s application/octet-stream
but does not work
and put it in : Diff Template : {.add header | Access-Control-Allow-Origin: * .}
your mimetype are wrong, they should not be trying to launch an aplivation. its audio:
http://lists.apple.com/archives/streaming-server-users/2002/Jul/msg00061.html
audio/x-mpegurl m3u
mime are client dependat on what your trying to play them on....
i'm willing to bet taht if you change aplication to audio, it will work
-
But I do video streaming. I tried to install audio and m3u instead m3u8
it's does not want to work ...
I put my files to my hosting and it works! unfortunately so ...
and more
*.mpd application/dash+xml
-
then instaead of aplicatin, put video...
look, what i ahve found with hfs and straming was not much. teh best solution i had was combin it through the localhost "127.0.0.1" and ahveing a web pased plugin on the server to view teh contents, as hfs was hosting the files, and teh view player....
even if a video is on teh m3u, it will still com over toruth the player.
not all machien are cabple of launching a application specfi to stramin with the mime type you defiened. with is why it is a failin.
i use vlc, for my client, so a pc in the world can conect to my server and play a m3u file, this file containns http link to my hfs server for both video and audi, and it comes down thorugh the mime type audio/x-mpegURL (wioth open directly in browser check box). with i downlaod and haved vlc paly the m3u, it works...
my guess, is you have somethign wrong in your file, or you have somethign wrong with your stream.
http://www.rejetto.com/forum/hfs-~-http-file-server/information-(mime-types)-embed-pdfsvideo-and-audio/
http://www.rejetto.com/forum/hfs-~-http-file-server/serving-video-files/
-
Greetings! I tried everything, but unfortunately does not work m3u8 playlist. Here is a working link:
http://195.138.92.130/MV04/HLS/Blondie.m3u8
Thanks, advance for monitoring...
I check here: http://bitmovin.com/hls-mpeg-dash-test-player/
It gives this error: https://bitmovin.com/same-origin-policy-cors-and-crossdomain-xml-what-you-need-to-know/
-
you m3u is incomplete:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:25
#EXTINF:25.000000,
out000.ts
#EXTINF:25.000000,
out001.ts
#EXTINF:25.000000,
out002.ts
#EXTINF:25.000000,
out003.ts
#EXTINF:25.000000,
out004.ts
#EXTINF:25.000000,
out005.ts
#EXTINF:25.000000,
out006.ts
#EXTINF:25.000000,
out007.ts
#EXTINF:0.342033,
out008.ts
#EXT-X-ENDLIST
---------------------------------
you need the http pat to the file
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:25
#EXTINF:25.000000,
http://x.x.x.x/folder/out000.ts
#EXT-X-ENDLIST
------
its been a while, i not 100% familaure with the .ts extentino:
http://whatis.techtarget.com/fileformat/TS-HDTV-sample-file-Transport-Stream-MPEG-2-video-stream
you will problay have to define its mime type as well
.ts, video/MP2T
-
thank yo for fixing it, i was sucessful able to stream the first file via vlc
here is the m3u file:
#EXTM3U
#EXTINF:0,TS
http://195.138.92.130/MV04/HLS/out000.ts
#EXTINF
IT WORKS! here some hlep full info on m3u: http://xmtvplayer.com/build-m3u-file
-
Thank you for the helpful info ... I ordered this: *.ts video/MP2T
Is it work now ?
So how did it work? Mpeg-Dash с файлом .xml
http://195.138.92.130/MV04/DASH/Blondie_dash.xml
Video segments DASH folder
This is a new technology that will replace HLS.. Netflix support it.
-
yes, the m3u file is streaming and working, only issues is if this is suppose to be a stream, thw 10 second file split between them is a bit annoying how it stops then plays again. (but that is the nature of teh m3u loading the next file to play in the playlist)
I don't usually separate file because of this issue with streaming.
Thank you for the helpful info ... I ordered this: *.ts video/MP2T
Is it work now ?
So how did it work? Mpeg-Dash с файлом .xml
http://195.138.92.130/MV04/DASH/Blondie_dash.xml
Video segments DASH folder
This is a new technology that will replace HLS.. Netflix support it.
don't know how to respond or answer this.
for starter, you using an xml file. i would think that would be more generated towards an ISS setup, as xml uses the "net" framework, such as .asp files.
i used vlc, it used the mpeg 2 codec to play, the m3u file had the video/audio path, vlc read the m3u and contacted your hfs and played the file.
no 100% sure what you mean by DASH
http://helixproducts.real.com/hmdp/documentation/helixserver/1512_LR/html/Content/HelixHelp/DASH_Client_Basics.htm
http://stackoverflow.com/questions/33842990/how-to-get-dash-segments-of-mp4-video-file
i require more research on it to beter support that and help...
i know that if you fill all you segment line after line in the m3u, the next segament will play automatically.
I don't even know how i would send this xml to vlc or any other client to play the server files...
-------------
<?xml version="1.0"?>
<!-- MPD file Generated with GPAC version 0.6.1-rev0-g72d766c-master at 2016-12-05T22:14:51.734Z-->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.500S" type="static" mediaPresentationDuration="PT0H3M20.375S" maxSegmentDuration="PT0H0M10.000S" profiles="urn:mpeg:dash:profile:isoff-live:2011">
<ProgramInformation moreInformationURL="http://gpac.sourceforge.net">
<Title>Blondie_dash.mpd generated by GPAC</Title>
</ProgramInformation>
<Period duration="PT0H3M20.375S">
<AdaptationSet segmentAlignment="true" maxWidth="720" maxHeight="400" maxFrameRate="25" par="720:400" lang="und">
<ContentComponent id="1" contentType="audio" />
<ContentComponent id="2" contentType="video" />
<SegmentTemplate timescale="1000" media="mp4-live$Number$.m4s" startNumber="1" duration="10000" initialization="mp4-liveinit.mp4"/>
<Representation id="1" mimeType="video/mp4" codecs="mp4a.40.2,avc3.4d001e" width="720" height="400" frameRate="25" sar="1:1" audioSamplingRate="48000" startWithSAP="1" bandwidth="1817704">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
</Representation>
</AdaptationSet>
</Period>
</MPD>
-----------------------------------
-
best i can com eup with is
-----------------
-------------
<?xml version="1.0"?>
<!-- MPD file Generated with GPAC version 0.6.1-rev0-g72d766c-master at 2016-12-05T22:14:51.734Z-->
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT1.500S" type="static" mediaPresentationDuration="PT0H3M20.375S" maxSegmentDuration="PT0H0M10.000S" profiles="urn:mpeg:dash:profile:isoff-live:2011">
<ProgramInformation moreInformationURL="http://gpac.sourceforge.net">
<Title>Blondie_dash.mpd generated by GPAC</Title>
</ProgramInformation>
<Period duration="PT0H3M20.375S">
<AdaptationSet segmentAlignment="true" maxWidth="720" maxHeight="400" maxFrameRate="25" par="720:400" lang="und">
<ContentComponent id="1" contentType="audio" />
<ContentComponent id="2" contentType="video" />
<SegmentTemplate timescale="1000" media="mp4-live$Number$.m4s" startNumber="1" duration="10000" initialization="mp4-liveinit.mp4"/>
<Representation id="1" mimeType="video/mp4" codecs="mp4a.40.2,avc3.4d001e" width="720" height="400" frameRate="25" sar="1:1" audioSamplingRate="48000" startWithSAP="1" bandwidth="1817704">
<AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
</Representation>
</AdaptationSet>
</Period>
</MPD>
-----------------------------------
you missing http paths, it looks like you trying to load the player via a html page.
examle, as it can't find your fiel to play
media="mp4-live$Number$.m4s"
should be media="http://x.x.x.x/folder/mp4-live$Number$.m4s"
*this might be encoded as well!, soe the ip/ http path may need to be encoded!
you will need open directly in broser for this, along with the xml mimetype:
http://stackoverflow.com/questions/2965587/valid-content-type-for-xml-html-and-xhtml-documents
88
down vote
accepted
HTML: text/html, full-stop.
XHTML: application/xhtml+xml, or only if following HTML compatbility guidelines, text/html. See the W3 Media Types Note.
XML: text/xml, application/xml (RFC 2376).
There are also many other media types based around XML, for example application/rss+xml or image/svg+xml. It's a safe bet that any unrecognised but registered ending in +xml is XML-based. See the IANA list for registered media types ending in +xml.
(For unregistered x- types, all bets are off, but you'd hope +xml would be respected.)
Sorry, but for that, you will be on your own
-
Here is a working link:
http://195.138.92.130/MV04/HLS/Blondie.m3u8
It's working on VLC! :) congrats!......
-
to be precise it is : mime - application/dash+xml
I have an address in the media=http//
And with this technology do not have to cut .mp4 file into pieces . It is possible to segment the whole file.
https://msdn.microsoft.com/library/dn551368(v=vs.85).aspx
I hope this article exists in English.. :D
But unfortunately I can't test it on HFS , as even the hosting is not working...
Components used:
videojs - https://github.com/videojs/video.js
videojs-contrib-dash
https://github.com/videojs/videojs-contrib-dash
and
dash.js
https://github.com/Dash-Industry-Forum/dash.js
Don't know what is the trouble.. I hope to do..
-
That's what the developer said:
At first glanceIt looks like you don't have http://enable-cors.org/ setup and your mpd is being served with the application/octet-stream MIME type instead of application/xml+dash. I'd suggest debugging your streams in the http://dashif.org/reference/players/javascript/v2.3.0/samples/dash-if-reference-player/index.html (http://dashif.org/reference/players/javascript/v2.3.0/samples/dash-if-reference-player/index.html). If you're having trouble playing them back there, you may want to file issues against dash.js (the underlying library that videojs-contrib-dash uses for playback).
-
I know you have the line, i visted you hfs, so this line is not added corectly in you hfs
(as it was displayed as text, when i should not have seen it at all!)
To enable cors, view this weblink rejeto has helped another with implementation of this:
http://www.rejetto.com/forum/hfs-~-http-file-server/cors-header-can't-get-this-to-work/msg1060984/#msg1060984
again, i require more research on DASH, this helps:
https://msdn.microsoft.com/library/dn551368(v=vs.85).aspx (https://msdn.microsoft.com/library/dn551368(v=vs.85).aspx)
form the looks at it, it requires a special player.
and you are that file to that special player into a web platform (specially jwplayer or is video JavaScript... i get them backwards sometimes :P )
this video didn't work: http://2sub.ru/thriller/565-dash-test30.html (http://2sub.ru/thriller/565-dash-test30.html)
and if it has the required material for you, w get or C U R L/download it via this website:
ADHERE TO THERE LICENSE AGREEMENT!
http://file2hd.com/ (http://file2hd.com/)
but this will gather all the files on a site and give you links to download form them.
* I'm considered a kat kitty, i rarely write my own code.
-
Greetings! No, I got it! It is best to share a simple MP4 with a simple link in the player. To hell with these stupid technology with playlists and xml!I do not want to waste time ... it's nonsense! Not worth a damn. IMHO
Thanks for all!
Regards!