rejetto forum

генерация плейлиста m3u/m3u8/xspf

GANGE · 35 · 21968

0 Members and 1 Guest are viewing this topic.

Offline GANGE

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
Люди добрые подскажите как генерировать плейлисты m3u или m3u8 или xspf.
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 - такого вида


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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!
-------------------------------
« Last Edit: October 18, 2016, 03:00:13 PM by bmartino1 »
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline GANGE

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
Мне надо чтобы нажал на ссылку и автоматически создался плейлист из того что находится в определенной расшаренной папке hfs. Я понимаю что это не сложно сделать, но не пойму как)
Мне не нужны шаблоны сайтов, мне нужно как то организовать простой темлейт. Вообще мне это надо было чтобы мой ТВ получал по ссылке плейлист с видео с компа.
PS В итоге походу проще будет подключаться через smb или UPnP.


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 842
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
@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... :|
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline GANGE

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
@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)


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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.

Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
@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

Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 842
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
@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...
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
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.}


Offline surikat

  • Occasional poster
  • *
    • Posts: 74
    • View Profile
Я не понял! Так как создавать вообще m3u8 файл для стриминга видео? 


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 842
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
Я не понял! Так как создавать вообще 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.... :-\
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.


Offline surikat

  • Occasional poster
  • *
    • Posts: 74
    • View Profile
This is a relevant question at this time. Many people now use streaming. Can do some visual instruction?


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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.
Files I have snagged and share can be found on my google drive:

https://drive.google.com/drive/folders/1qb4INX2pzsjmMT06YEIQk9Nv5jMu33tC?usp=sharing


Offline surikat

  • Occasional poster
  • *
    • Posts: 74
    • View Profile
You do not understand me. I meant Streaming on-demand.  Not live !


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 842
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
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, 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, 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 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.
HFS in Spanish (HFS en Español) / How to compile HFS (Tutorial)
» Currently taking a break, until HFS v2.4 get his stable version.