pünktchen 1258 Posted December 27, 2019 Share Posted December 27, 2019 (edited) You've grown up with watching live tv but on television only runs garbage? You have a big library but don't know what to watch next? Then this for you: "VirtualTV" - my new live tv plugin that allows you to create custom channels based on conditions of your Emby library content. What's missing: Maybe codec conditions Known problems: Needs Emby Premier to work (Playback) Emby's live tv and playback api is very limited, so i've had to make some detours to get things working. The plugin has two general playback modes: "continous" and "playlist" playback. With "continous" mode you can also choose between "live", which bahaves like real live tv or "archive", which plays the videos from the start. In "Continuous" mode multiple videos are queued and concatenated to one big file with the help of ffmpeg. To make this happen every video in the queue has to have some common features (video and audio codec). That's why it often happens that the video also has to be transcoded by ffmpeg. For transcoding the plugin relies on Emby's internal transcoding engine. If there's a problem, not uncommon with hardware acceleration enabled, the plugin also has a problem. Nothing i can do about it. The availability of subtitle tracks is mostly dependant of the Emby user playback settings. In continous playback mode only one (the default) subtitle track can be used and this one has to be burnded into the video (transcoding takes place). In "Playlist" playback mode the videos are pushed as a playlist to the Emby clients. It's like you would play your videos directly from your libraries. This way you get all the features you are used to. Audio and subtitle selection, pause, skipping around and similar things. "Native" playback method was created by the Emby Devs. Similar to Playlist playback it will play the real library videos, but with the big difference that playback is purely initiated by the client app, without any remote command execution. This is why it also works for Roku devices on a WAN network. And although the real videos are played, the whole thing is treated like live TV. This means that channel zapping is possible and no dialogs for playing the next episode are displayed. Unfortunately, the new playback method does not yet support all features. As the name "Archive" suggests, it will currently always start all videos from the beginning. In addition, only very few Emby apps automatically advance to the next video. If you want it to be improved even further, each of you should raise your voice in this thread. To get things started copy the extracted dll from the attachment at the end of this post to Emby' s plugin folder. Restart you server and follow the instructions: Setup your channels with a name and number and choose your playback mode. In the channel conditions you'll have to select an Emby account. This account is used to get library access, respect parental rating, reading watched states and selecting the stream language. At least one textual input field of the conditions has to be filled to get some program data. Fields with an asterisk are either evaluated with an "AND" or "OR" condition among each other. Finally, if you've chosen "Continous Playback" for one of you channels, take a look at the transcoding settings. Save your channel line up and manually trigger a "Guide Refresh". Now have fun! Version History: Spoiler 0.5.0 First release 0.5.1 Ignore external subtitles for stream requests 0.5.2 Added some extra logging for the Export task 0.5.3 Do not throw an exception for items without runtime, instead just skip them 0.6.0 Support for TVShows, option to automatically mark items as watched 0.6.2 Increased channels to twenty; Fixes for "AutoMarkWatched", Fixes for playback start 0.6.4 Fixed "Watched Only" tv shows; Fixed http response for the Export api; Fixed crash by "AutoMarkWatched"; Option to force "ts" for "Single Playback" 0.6.5 Added custom ffmpeg option for single playback mode 0.6.6 Fixed a bug for TVShows that could lead to an infinite guide refresh; Added some hidden settings for "FFmpegDirectStream" mode 0.6.7 Added option to wait some time for the intermediate transcoding file to get filled 0.7.0 Support for music videos; Program sort options for channels; Optimized database queries; Better detection of local ip adress for the Export api 0.8.0 To many things for a oneliner 0.8.1 Support for bumpers (fixed at 3 videos) between every channel program 0.8.5 Speed up Guide Refresh, Support for tv shows without season folder, Support for logical operators with Genres and Tags 0.8.6 Fixed Studio movie channel condition in conjunction with other filters 0.9.0 Fixed some problems with the sort option, Added new playbackmode "Playlist" 0.9.1 Make amount of guide data dependent of the DVR option "Number of days of guide data to download"; Bugfixing 0.9.2 Internal optimizations and simplifications for the Export web api 0.9.4 Conditions for parental rating and runtime; Options to control number of episodes and movies for channel type "Mixed Content" and "TVShows" 0.9.5 Channel rule to exclude items by name; Moved "AutoMarkWatched" to channels; Option to hide shows from "Continue Watching", API changes 0.9.6 Channel rule to include movies and tv shows by name, Bug fixing 0.9.8 Channel rules for audio and subtitle; More control over Bumpers; Bug fixing and internal changes for Continous Playback 0.9.9 Extra channel rule to exlude season and episodes by tags from named tv shows, Option to generate EmbyCon addon urls for the Export api 1.1.0 Channel rules for minimum community and critic rating; Export API rework 1.1.1 Search Actors for Episodes only; Fixed suspend guide refresh; Fixed Export playlist for channels without image; Better https support for Export api 1.1.2 Compatibility update 1.1.3 Fixed Mono installs; Fixed Export api; Fix Tag excludes for named tv shows; Better randomization for tv episodes; Option to select container for playlist intro video 1.1.4 Fixed export task and export rest api endpoints for Emby 4.8.38 and newer After a plugin update, always clear your browser cache. If your settings still don't load in the config screen, you have to move the "VirtualTV.xml" out of ...\plugins\configurations and restart Emby. Start from scratch. 1.1.4.2 Fix loading of config page; Fixed sorting for MixedContent; Changed Studio channel rule to logical operators 1.1.3.2 Backport of version 1.1.4.2 2.0.0.0 Unlimited number of channels; New playback method "Native (Archive)"; New security concept for the Export API 2.0.2.0 Performance improvements to Guide Refresh; Preview for Add/Edit Channels; Option to disable Program indicators 2.0.3.0 Fixed missing Playlist sort order for some Content Types; Added support for Seasons with Content Source Collections VirtualTV.1.1.2_Emby.4.5.x.zipVirtualTV.1.1.2_Emby.4.6.x.zipVirtualTV.1.1.3.2_Emby.4.7.x.zip For Emby 4.8.x, you'll find the plugin in the catalog. Edited April 1 by pünktchen 41 6 Link to comment Share on other sites More sharing options...
Spaceboy 2493 Posted December 27, 2019 Share Posted December 27, 2019 Excellent! Great work @punktchen 1 Link to comment Share on other sites More sharing options...
kanipek 224 Posted December 27, 2019 Share Posted December 27, 2019 Very cool. Pseudo TV for Emby! Thanks very much! 4 Link to comment Share on other sites More sharing options...
Jdiesel 1114 Posted December 27, 2019 Share Posted December 27, 2019 Niiice! I've been dying for something like this for ages 1 Link to comment Share on other sites More sharing options...
shorty1483 452 Posted December 27, 2019 Share Posted December 27, 2019 This is simply awesome. Just tried it out and I love it! Well done! Link to comment Share on other sites More sharing options...
shorty1483 452 Posted December 28, 2019 Share Posted December 28, 2019 (edited) @@pünktchen Is an implementation of parental control as a channel criteria planned, e.g. for a animation channel, but max. FSK-6. Also the integration of playlists and Collections would be really cool to have theme channels like Sky does. Also I got errors on some channels, that the particular stream is not available at the moment. All my affected movies contain the video stream and one audio stream + an external subtitle (srt). Seems ffmpeg is concerned about the external sub, because every movie without it, no matter what resolution, plays without problems. Stream map '0:2' matches no streams.To ignore this, add a trailing '?' to the map.Full ffmpeg logs attached. @@Luke I hope you guys take a little care of pünktchens mentions, since this is the by far coolest 3rd party plugin so far. This makes the Live TV section usable even for the lots of guys like me who do not use the real live TV feature. btw, the PseudoTV logos totally fit in... ffmpeg-directstream-c3892d7a-6a6b-4057-8479-8357d7134422_1.txt ffmpeg-directstream-ebff6414-90a6-4927-a010-f382332c6089_1.txt Edited December 28, 2019 by shorty1483 1 Link to comment Share on other sites More sharing options...
pünktchen 1258 Posted December 28, 2019 Author Share Posted December 28, 2019 @@pünktchen Is an implementation of parental control as a channel criteria planned, e.g. for a animation channel, but max. FSK-6.Haha, i knew that question would arise. It's planned, but i wanted to release it around xmas and hadn't the time for this. But if you select a user that has a max. parental rating of FSK-6, it should be respected. 2 Link to comment Share on other sites More sharing options...
pünktchen 1258 Posted December 28, 2019 Author Share Posted December 28, 2019 Also I got errors on some channels, that the particular stream is not available at the moment. All my affected movies contain the video stream and one audio stream + an external subtitle (srt). Seems ffmpeg is concerned about the external subs, because every movie without it, no matter what resolution, plays without problems. Stream map '0:2' matches no streams. To ignore this, add a trailing '?' to the map.Full ffmpeg logs attached.Interesting!@@Luke before playback i'm querying for DefaultSubtitleStreamIndex with a PlaybackInfo request. Shouldn't it return nothing in case of external subtitles? Link to comment Share on other sites More sharing options...
shorty1483 452 Posted December 28, 2019 Share Posted December 28, 2019 (edited) @@pünktchen Additionally to the above reported, I recognized that all the movies in the channels show the same Extras in the Info screen. These are Extras of totally another movie. Also they all show the same Suggestion of one movie under the Extras. Edited December 28, 2019 by shorty1483 Link to comment Share on other sites More sharing options...
arrbee99 1560 Posted December 28, 2019 Share Posted December 28, 2019 (edited) I had that extras thing above, but without using this plugin at all. Edit - not that I can get it to reproduce itself at the moment... Edited December 28, 2019 by arrbee99 Link to comment Share on other sites More sharing options...
pünktchen 1258 Posted December 28, 2019 Author Share Posted December 28, 2019 @@pünktchen Additionally to the above reported, I recognized that all the movies in the channels show the same Extras in the Info screen. These are Extras of totally another movie. Also they all show the same Suggestion of one movie under the Extras. Screenshot_20191228-015613_Emby.jpg Extras and suggestions are by Emby not by my plugin. 1 Link to comment Share on other sites More sharing options...
shorty1483 452 Posted December 28, 2019 Share Posted December 28, 2019 Extras and suggestions are by Emby not by my plugin.@@Luke Link to comment Share on other sites More sharing options...
pünktchen 1258 Posted December 28, 2019 Author Share Posted December 28, 2019 @@shorty1483 new version 0.5.1 in the starting post that should ignore external subtitles. 1 Link to comment Share on other sites More sharing options...
hstamas 153 Posted December 28, 2019 Share Posted December 28, 2019 Sweet! Once TV shows are added I’m going to be all over this! Thanks SO much! Link to comment Share on other sites More sharing options...
shorty1483 452 Posted December 28, 2019 Share Posted December 28, 2019 Thanks @@pünktchen Subtitle files now working! Thanks! Awesome plugin. Another error log attached. File is playing fine standalone. ffmpeg-directstream-95b27cd0-9c6e-4bf1-96ac-8b36235a5887_1.txt Link to comment Share on other sites More sharing options...
pünktchen 1258 Posted December 28, 2019 Author Share Posted December 28, 2019 There's not much i can do with those ffmpeg errors. Basically i'm telling Emby i need a direct stream, but Emby is telling ffmpeg how to do this. I can only try to workaround those errors by requesting a container swap for some file extensions. So please try the following in VLC: Open the url you'll find in your log with "...stream.mkv?..." instead of "...stream.mp4?..." 1 Link to comment Share on other sites More sharing options...
Spaceboy 2493 Posted December 28, 2019 Share Posted December 28, 2019 may be useful to note that the plugin doesnt seem to work with the stable server version from my testing. working well on my beta install though. looking forward to series being added and the server being updated so i can use it properly Link to comment Share on other sites More sharing options...
pünktchen 1258 Posted December 28, 2019 Author Share Posted December 28, 2019 What do you mean by "it doesn't work"? I'm still on Emby 4.2.1.0 Link to comment Share on other sites More sharing options...
Spaceboy 2493 Posted December 28, 2019 Share Posted December 28, 2019 What do you mean by "it doesn't work"? I'm still on Emby 4.2.1.0 fair enough. on stable 4.3.1.0 the config all works and the placeholder for the channel is added o the tv guide but no programs appear after running the guide refresh all works as expected on latest beta Link to comment Share on other sites More sharing options...
pünktchen 1258 Posted December 28, 2019 Author Share Posted December 28, 2019 Any errors in the logs? If not enable debug logging in Emby, do a guide refresh and pm the log. Link to comment Share on other sites More sharing options...
shorty1483 452 Posted December 28, 2019 Share Posted December 28, 2019 (edited) fair enough. on stable 4.3.1.0 the config all works and the placeholder for the channel is added o the tv guide but no programs appear after running the guide refresh all works as expected on latest beta Weird, my posted EPG image above is from this stable Version... Edited December 28, 2019 by shorty1483 Link to comment Share on other sites More sharing options...
pünktchen 1258 Posted December 29, 2019 Author Share Posted December 29, 2019 Weird, my posted EPG image above is from this stable Version...Maybe he has a database that was converted from Emby 3.5... Did you have chance to test what i was suggesting with VLC? Link to comment Share on other sites More sharing options...
jachin99 82 Posted December 29, 2019 Share Posted December 29, 2019 I'm having the same issue as above, I get the channel to show but no program information or movies show up for it. I didn't convert from 3.5 Link to comment Share on other sites More sharing options...
Spaceboy 2493 Posted December 29, 2019 Share Posted December 29, 2019 Still testing/looking into it. I don’t remember from which version this library came. Once I found it worked on my beta but not my stable install I immediately assumed that was the issue Link to comment Share on other sites More sharing options...
shorty1483 452 Posted December 29, 2019 Share Posted December 29, 2019 There's not much i can do with those ffmpeg errors. Basically i'm telling Emby i need a direct stream, but Emby is telling ffmpeg how to do this. I can only try to workaround those errors by requesting a container swap for some file extensions. So please try the following in VLC: Open the url you'll find in your log with "...stream.mkv?..." instead of "...stream.mp4?..." Maybe he has a database that was converted from Emby 3.5... Did you have chance to test what i was suggesting with VLC? Sorry mate,was busy updating ,all my APCs I checked with stream.mp4? and stream.mkv? and both are working on latest VLC. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now