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
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