Please read the Status Report Forum!

Use our own app called EPiG to get full EPG without needing an XML! You find it in your profile!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Improvement - TVHeadEnd - Prefix/Suffix
#1
I noticed the new feature a few days ago and finally got around to playing with it and have a few suggestions for improvements.

First suggestion would be to be able to use variables.

This is purely cosmetic but one of the things you can do per stream is has ffmpeg encode the name/provider into the stream using 

-metadata service_provider=STRING1 
-metadata service_name=STRING2

The full prefix / suffix would look like this

pipe:///opt/ffmpeg/ffmpeg -loglevel fatal -re -i https://video.com/video.mkv -vcodec copy -acodec copy -metadata service_provider=STRING1 -metadata service_name=STRING2 -f mpegts -tune zerolatency pipe:1

It would be nice for logging / cosmetic purposes to be able to have a variable for Channel Name and for Group Name maybe something like 
-metadata service_provider=%GroupName%
-metadata service_name=%ChannelName%

I do understand this could potentially be cpu intensive and be really slow if it has to parse each line and using a static name does not cause any issue.


Second suggestion would be if/then or conditional prefix/suffix.

There are multiple ffmpeg commands you will need to use depending on the type of video you are converting

videos that end in .ts usually can work by doing a straight copy vs .mp4, .mkv, or internet radio channels which need to be either copied with filters, or transcoded

Maybe have conditions to ignore all .ts, .m3u8 files, specify a certain string for mp4 and another for mkv, avi, etc.



I had a third but I cant remember what it was, will keep playing around with it, but so far very happy with the new feature.

Thanks
Reply


Messages In This Thread
Improvement - TVHeadEnd - Prefix/Suffix - by jeremyrem - 11-24-2018, 07:50 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)