Project

General

Profile

How to return an m3u link

Added by Chris G over 3 years ago

Hi. I have made a python app (uses flask) that listens to requests and returns an m3u link.

If I simply return the URL, it works in VLC but not in TVH.
If I return the URL as a redirect, it still works in VLC and still not in TVH.

Is there a particular way I should return the URL so that TVH can play it?
Or maybe something I need to do with a pipe command inside TVH?

Cheers,
Chris

Edit: I have been having a play and this works...
pipe:///usr/bin/ffmpeg -i http://10.0.1.160:5000?channel=one -c copy -f mpegts pipe:1
Can anyone explain why I need to do it this way?


Replies (4)

RE: How to return an m3u link - Added by saen acro over 3 years ago

Explain more your idea?

RE: How to return an m3u link - Added by Chris G over 3 years ago

I have made a python app that takes a website URL, then it returns the link for the m3u video that is playing in it.
It works but I have to use ffmpeg in TVH with pipe.
In VLC etc it just works.
I wonder why I need the pipe in TVH?

RE: How to return an m3u link - Added by saen acro over 3 years ago

And with version of tvh you use?

RE: How to return an m3u link - Added by Chris G over 3 years ago

I figured it out.
I was playing the mux before, which always fails to play.
When I switched to pipe, I also switched to playing the service instead or the mux, which is why it worked.
Switching back to not using pipe and playing the service instead of the mux works as expected.

    (1-4/4)