Author Topic: генерация плейлиста m3u/m3u8/xspf  (Read 6899 times)

0 Members and 1 Guest are viewing this topic.

Offline GANGE

  • Occasional poster
  • *
  • Posts: 3
    • View Profile
генерация плейлиста m3u/m3u8/xspf
« 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://192.168.0.2:777/~files.lst.m3u - такого вида

Offline bmartino1

  • Insane poster
  • *****
  • Posts: 783
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #1 on: October 18, 2016, 02:54:49 PM »
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 »
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline GANGE

  • Occasional poster
  • *
  • Posts: 3
    • View Profile
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #2 on: October 19, 2016, 01:18:17 PM »
Мне надо чтобы нажал на ссылку и автоматически создался плейлист из того что находится в определенной расшаренной папке hfs. Я понимаю что это не сложно сделать, но не пойму как)
Мне не нужны шаблоны сайтов, мне нужно как то организовать простой темлейт. Вообще мне это надо было чтобы мой ТВ получал по ссылке плейлист с видео с компа.
PS В итоге походу проще будет подключаться через smb или UPnP.

Offline LeoNeeson

  • Insane poster
  • *****
  • Posts: 465
  • Solitario...
    • View Profile
    • twitter.com/LeoNeeson
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #3 on: October 20, 2016, 09:35:02 AM »
@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 ahora también disponible en Español! (Clic aqui) :)
• HFS is now also available in Spanish! (Click here)

Follow members gave a thank to your post:


Offline GANGE

  • Occasional poster
  • *
  • Posts: 3
    • View Profile
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #4 on: October 20, 2016, 01:32:04 PM »
@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

  • Insane poster
  • *****
  • Posts: 783
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #5 on: October 21, 2016, 02:57:36 AM »
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.

I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline bmartino1

  • Insane poster
  • *****
  • Posts: 783
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #6 on: October 24, 2016, 10:44:10 PM »
@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

I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline LeoNeeson

  • Insane poster
  • *****
  • Posts: 465
  • Solitario...
    • View Profile
    • twitter.com/LeoNeeson
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #7 on: October 25, 2016, 05:02:37 AM »
@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 ahora también disponible en Español! (Clic aqui) :)
• HFS is now also available in Spanish! (Click here)

Offline rejetto

  • Administrator
  • Insane programmer
  • *
  • Posts: 12857
    • View Profile
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #8 on: November 01, 2016, 07:16:16 PM »
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

  • Experienced poster
  • ***
  • Posts: 41
    • View Profile
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #9 on: December 02, 2016, 05:28:47 AM »
Я не понял! Так как создавать вообще m3u8 файл для стриминга видео? 

Offline LeoNeeson

  • Insane poster
  • *****
  • Posts: 465
  • Solitario...
    • View Profile
    • twitter.com/LeoNeeson
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #10 on: December 02, 2016, 06:15:01 AM »
Я не понял! Так как создавать вообще 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 ahora también disponible en Español! (Clic aqui) :)
• HFS is now also available in Spanish! (Click here)

Offline surikat

  • Experienced poster
  • ***
  • Posts: 41
    • View Profile
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #11 on: December 02, 2016, 07:03:39 AM »
This is a relevant question at this time. Many people now use streaming. Can do some visual instruction?

Offline bmartino1

  • Insane poster
  • *****
  • Posts: 783
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #12 on: December 02, 2016, 07:16:33 AM »
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.
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline surikat

  • Experienced poster
  • ***
  • Posts: 41
    • View Profile
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #13 on: December 02, 2016, 07:26:04 AM »
You do not understand me. I meant Streaming on-demand.  Not live !

Offline LeoNeeson

  • Insane poster
  • *****
  • Posts: 465
  • Solitario...
    • View Profile
    • twitter.com/LeoNeeson
Re: генерация плейлиста m3u/m3u8/xspf
« Reply #14 on: December 02, 2016, 01:56:56 PM »
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 ahora también disponible en Español! (Clic aqui) :)
• HFS is now also available in Spanish! (Click here)

Follow members gave a thank to your post: