Re: M3u8 playlist

#3
hi again,


First of all, What I need is to play some m3u8 in the same playlist . At first,I try to get the "ts" files of different m3u8 in each group, I mean, ts files of m3u8 ( 1) in group 1 , ts files of m3u8 ( 2) in group 2.... but not how to play some groups in a single "play" .

Because of this, what I thought is to load the m3u8 and put all m3u8 in the same group, but I am not able to load the m3u8 as I get the following error:

Code: Select all

[2016-08-25 13:46:43.925] [6720] [info]    Received message from 127.0.0.1: PLAY 1-10 "VIDEO/INDEXYTULI/TULIPS" CUT 1 Linear RIGHT\r\n
[2016-08-25 13:46:43.927] [7244] [error]   [ffmpeg] [hls,applehttp @ 127C7080] Error when loading first segment 'media\\VIDEO/Tulips0.ts'
[2016-08-25 13:46:43.927] [7244] [error]   producer\input\input.cpp(248): Throw in function caspar::ffmpeg::`anonymous-namespace'::<lambda7>::operator ()
Dynamic exception type: class boost::exception_detail::clone_impl<struct caspar::ffmpeg::ffmpeg_error>
std::exception::what: Unknown exception
[struct boost::errinfo_api_function_ *] = avformat_open_input(&weak_context, narrow(resource_name).c_str(), nullptr, nullptr)
2, "No such file or directory"[struct caspar::tag_msg_info *] = 
[struct caspar::tag_source_info *] = media\\VIDEO/INDEXYTULI\Tulips.m3u8

[2016-08-25 13:46:43.928] [7244] [error]   File not found. No match found for parameters. Check syntax:VIDEO/INDEXYTULI/TULIPS CUT 1 Linear RIGHT 
[2016-08-25 13:46:43.928] [7244] [warning] Failed to execute command: PlayCommand on AMCPCommandQueue Channel 1 for TCP Port 5250
[2016-08-25 13:46:43.929] [7244] [info]    Sent message to 127.0.0.1: 501 PLAY FAILED\r\n
Thanks

Re: M3u8 playlist

#5
aham, I use m3u8 file like a playlist file. I say it in my last rply, first I play the files that are refered in the m3u8 file like a group, but if i have, for example, three m3u8 files, i should create 3 groups and I can't auto-play this three groups with one play, can I ?

For this reason, I think that if i play in one group all m3u8 file, i could play in one play, all my playlist, but if you say Caspar can't play this, i don't know how to solve this.

Thanks

Re: M3u8 playlist

#6
As I understand it m3u8 ITSELF is a playlist. So don't mix up Caspar client's playlist with the internal playlist inside a m3u8 file. Have you ever tried to open such a file in, say notepad? Then you see, what it contains and can probably access the individual files and put them into Caspar.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests

Re: M3u8 playlist

#7
As I understand it m3u8 ITSELF is a playlist. So don't mix up Caspar client's playlist with the internal playlist inside a m3u8 file. Have you ever tried to open such a file in, say notepad? Then you see, what it contains and can probably access the individual files and put them into Caspar.
Didi Kunz
CasparCG Client-Programmer, Template Maker & Live CG-Operator
Media Support, CH-5722 Gränichen, Switzerland http://mediasupport.ch/
Problems? Guide to posting Bug reports & Feature requests

Re: M3u8 playlist

#8
v.prietobo wrote:h[2016-08-25 13:46:43.925] [6720] [info] Received message from 127.0.0.1: PLAY 1-10 "VIDEO/INDEXYTULI/TULIPS" CUT 1 Linear RIGHT\r\n
[2016-08-25 13:46:43.927] [7244] [error] [ffmpeg] [hls,applehttp @ 127C7080] Error when loading first segment 'media\\VIDEO/Tulips0.ts'
I tested and found that I was also getting the same error. But when I gave command to play with file extension, It worked. So try like below

Code: Select all

PLAY 1-10 "VIDEO/INDEXYTULI/TULIPS.m3u8

Re: M3u8 playlist

#9
didikunz wrote:As I understand it m3u8 ITSELF is a playlist. So don't mix up Caspar client's playlist with the internal playlist inside a m3u8 file. Have you ever tried to open such a file in, say notepad? Then you see, what it contains and can probably access the individual files and put them into Caspar.
As I said before, i tried this firstly but when I tried to autoplay the second M3u8 file (I load all its "Ts" files in a second group) it stops, so with this form, i only can play one group, i mean, one M3u8 file

Re: M3u8 playlist

#10
My solution:
Get a HTML5 or javascript m3u8 player (video.js longtail, etc.)
Embed it in a webpage and use fullscreen
Use HTML producer to point at that webpage.

Should be another way to do this directly using FFMPEG, but I could not figure out how to call my working FFMPEG command line arguments within CasparCG. Is there a way to directly use FFMPEG?