New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any plan to add support to xmltv output? #201
Comments
What I have read says that ffmpeg doesn't support EPG, than there is no chance to get it into ffplayout. |
Sorry, EPG is only a schedule, is not a ffmpeg issue. |
Ok, but I still think is a bit out of scope. To have this it need more information and normally you need a database or something to generate this. Extracting Title etc. from File name (which is the only information in the playlist) is not a good workaround (not even every character is allow, like question marks). The problem go's a bit in this direction: #197 |
@jb-alvarado , i have one idea about EPG.
Or generate the playlist in a db file or mysql, then we can use a sql query to generate a xmltv |
That would be great.) |
You can add any information to the existing playlist, for playout the extra values got just ignored. But the start time could also be generated automatically per request. When I inspect your xml, you have for every item this block: <programme start="20221017162401 -0300" stop="20221017182237 -0300" channel="1">
<title lang="pt"> Linha de Ação</title>
<desc lang="pt">Um ex-policial é envolvido em um escândalo após ser chamado pelo prefeito de Nova York para seguir a esposa do político que desconfia de infidelidade da mulher. Ao perceber que foi enganado o detetive sai em busca de justiça.</desc>
<credits>
<director> Allen Hughes</director>
<actor> Mark Wahlberg, Russell Crowe, Catherine Zeta-Jones, Jeffrey Wright, Barry Pepper, Alona Tal, Natalie Martinez, Michael Beach, Kyle Chandler,</actor>
</credits>
<date> 2013</date>
<category lang="pt"> Thriller Crime Drama</category>
<image>
<image_name>lZ9OGovrjamAVz3n6TjJts2npxE.jpg</image_name>
</image>
<country lang="pt"> United States of America</country>
<star-rating system="IMdb">
<value>2.95</value>
</star-rating>
<rating>
<value></value>
</rating>
</programme> The most of this values are not exists, for that you need a database. If you are fine with name from file, start time and duration, we can think about a API endpoint. |
yes, will be good, with start time I can set a point 1 ( start of first program) and point 2 ( end of first program and start of second program without include advertisement) with name of file I can get info from TMDB |
And should the output date based, for every day a xml? ? Or all from current day until no playlist exists? |
is better current day to end of playlist. |
about this API endpoint, is possible put only video file without path? |
I will expose the regex from storage section, so the user can extract the string he needs. |
good, i will populate my databse with TMDB info |
I think a bit more about this topic. First my question:
My thinking was, when I create a endpoint which response XML, it is possible, but not really efficient. For every request it would have to read the playlist files, and when you expose the endpoint to the world and it comes many requests, it becomes a bottleneck. This kind of stuff should be made with a database. |
H, good morning.
No need XML, json is better to Import data, xml cam be generated by another app, web or console. PS.: One thing, is possible to prevent the playlist on frontend to do not exceed day end time, in my conf is 05:59:25 ? or put in other color is program exceed, is can prevent collision of programs when import to database. ( it is only a suggestion ) |
For me json is way better :-).
That is to specific for me, I like to have it more generic, like with my example with
Can you explain it different? The config has no day end time, only |
Thank you for explaining. When a playlist is longer then a day, the playout cut it at the right time. In your case the last clip will not play to the end, but until the day is finished. And yes, when the playlist is to short, the filler clip plays. The playlist generation has definitely its limitations, because as I say on a other place, ffplayout way originally made to playout playlist, but not generating them. In my work we have a inhouse planing software, where we have all the videos in a database, and from that database we generate our playlists. This is way better, because you can work with more logics, like continuing series etc. It would be also more easy to generate xmltv, because all the informations are already in the database. Now we work in the opposite direction, we generate a playlist and then use the data for putting in the database. |
this logic will be applied to playlist endpoint ?
Interesting, I have my videos in database too. with tmdbs and imdb records. |
The endpoint will take in to account the seek in and out value.
Yes a DB is way more usefull for that, because you can fill it with all kind of informations, like actor, description, series number and name, genre. For the playlout this would be useless. |
may in future you share your version with db :D |
For that a crowd founding would be needed ;-). Back to the endpoint: is the |
for the end_time is not needed, I can get it with start_time + duration ( duration of file ) so, not needed |
There is a first version, in my dev repo, if you want to give it a try. |
…y length, ffplayout#201 update packages
i will try, thanks |
working amazing, thanks for your sharing. |
Ok thanks, good to hear! I have to do some code optimizations, so it takes a bit until I will create a official release. |
For now i change only API i dont touch in ffplayout, i need change to use hardware acceleration. may in future you can put a on/off for hardware acceleration ( nvidia and intel :D ). Please, how can i send some bitcoin or eth ? |
For what do you need hardware acceleration? For decoding? Does it really make so much different? A on/off I can not imagine at the moment, but maybe I could expose more custom ffmpeg setting to the config, and then is up to you how you configure it.
I don't have crypo wallets. If you want to make a donation you can do it with opencollective. |
With hardware acceleration i can put more channels, reduce CPU use and bust input of file and some differente color textures, with cuda for example, all colors give more "live", in scale_cuda or scale_npp the filter lanczos can give more stability to reduce image and set PTS from source movie if you need do some overlay
How many channels in one machine you need ? |
Ah ok, I understand. That is a bit more complicate, then just expose decoding settings to the config. For that matter a on/off switch makes more sense. I have to think about it. |
@cooliobr, do you know if there is a difference between |
Hi, yes, scale_npp use native Nvidia Performance Primitives, it is like to use a core engine to process any image https://docs.nvidia.com/cuda/npp/index.html I to compile ffmpeg with npp, it maximize GPU to my use. |
Ok, thanks! I though I can make an ordering for checking HW filters with this priority:
When one filters is not found, to looks for the next one, and so on. When no HW filter is found it fall back to software filtering. |
|
👯♂️ |
The documentation don't say something about qsv filters. Is there some in the master branch? |
|
hi, how can i export epg like here? thanks |
|
There are any plan to implement a xmltv for EPG?
may use https://www.themoviedb.org/ as source of content informations, it is opensource
https://api.themoviedb.org/3/movie/550?api_key=....
The text was updated successfully, but these errors were encountered: