rejetto forum

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

GANGE · 35 · 21962

0 Members and 1 Guest are viewing this topic.

Offline surikat

  • Occasional poster
  • *
    • Posts: 74
    • View Profile
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!
« Last Edit: December 03, 2016, 04:53:41 PM by surikat »


Offline LeoNeeson

  • Tireless poster
  • ****
    • Posts: 842
  • Status: On hiatus (sporadically here)
    • View Profile
    • twitter.com/LeoNeeson
@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.
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
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


Offline surikat

  • Occasional poster
  • *
    • Posts: 74
    • View Profile

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


Offline bmartino1

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

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: * .}


Offline bmartino1

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

« Last Edit: December 05, 2016, 09:26:27 AM by surikat »


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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/
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
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/
« Last Edit: December 05, 2016, 11:41:41 PM by surikat »


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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
« Last Edit: December 05, 2016, 11:42:02 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 bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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
« Last Edit: December 06, 2016, 04:14:50 AM 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 surikat

  • Occasional poster
  • *
    • Posts: 74
    • View Profile
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.

« Last Edit: December 06, 2016, 03:40:52 AM by surikat »


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link
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>
-----------------------------------
« Last Edit: December 06, 2016, 04:31:59 AM 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 bmartino1

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

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