Jump to content

VirtualTV plugin


pünktchen

Recommended Posts

Have you cleared your browser cache?

 

Yes and also tried on another machine with another browser completely, one that had never logged on to my Emby server before and doesn't sync data...

 

I doesn't show anything in drop-down menus either, so it seems it just doesn't pull any info from anywhere...

Edited by Dibbes
Link to comment
Share on other sites

Oh, internal server error. That's really a hard one to solve and i don't know how this could happen  :(

I would suggest to remove the plugin, restart Emby, add the plugin and restart Emby. And of course clear the browser cache again.

Link to comment
Share on other sites

Oh, internal server error. That's really a hard one to solve and i don't know how this could happen  :(

I would suggest to remove the plugin, restart Emby, add the plugin and restart Emby. And of course clear the browser cache again.

 

Just tried that and no difference at all... the previous version does the same now... none of the other plugins has issues though, this is the only one...

Edited by Dibbes
Link to comment
Share on other sites

If you remove or rename the VirtualTV.xml and do a restart?

 

Yes, now I get he options to do a config again and the internal server error is gone.

 

I also found what the issue was. The day before yesterday, I removed the channel prime-time from 2 channels. It seems it gives an internal server error when there's no prime-time set.

  • Like 1
Link to comment
Share on other sites

Yes, now I get he options to do a config again and the internal server error is gone.

 

I also found what the issue was. The day before yesterday, I removed the channel prime-time from 2 channels. It seems it gives an internal server error when there's no prime-time set.

Great that you've found the reason. I'll make it a requirement, so it cannot be saved without a value.

Link to comment
Share on other sites

Great that you've found the reason. I'll make it a requirement, so it cannot be saved without a value.

 

It's very strange that this gives an internal server error though. Any ideas what the reason may be?

Link to comment
Share on other sites

@@pünktchen Perhaps a stupid question, but what is the relevance of the prime-time value ?

 

The description is "The starttime in 24 hours format for that at least one show will start after a guide refresh".

 

I always set it to 00:00 - perhaps that should be a default ?

 

Also, I have raised a separate issue here with EBR, as playback stops via the ATV app, but not sure what the issue is, as there are no errors in the server log.

 

I have a feeling I know what it is, but I just need Eric to check the in-app log I submitted.

Link to comment
Share on other sites

@@pünktchen Perhaps a stupid question, but what is the relevance of the prime-time value ?

 

The description is "The starttime in 24 hours format for that at least one show will start after a guide refresh".

In Germany on every tv channel the primetime would be 20:15. That means if you look at the tv guide of real live tv here, you can be sure on 20:15 will always start a new show on every channel.

The plugin is doing this in the background: If you refresh the guide at lets say 15:00, the first item returned from the library request will start at 20:15. The following items are then attached downwards up to the time of the guide refresh and after this attached onwards following the item that has started at 20:15.

Link to comment
Share on other sites

Just got this error in the server log.

2020-01-20 14:50:07.541 Debug App: CodecValidation: FindVideoEncoder - Check successful - selecting 'libx264 Software Encoder'
2020-01-20 14:50:07.546 Info App: ProcessRun 'StreamTranscode f7b72b' Execute: C:\Users\Media\AppData\Roaming\Emby-Server\system\ffmpeg.exe -loglevel +timing -y -print_graphs_file "C:\Users\Media\AppData\Roaming\Emby-Server\logs\ffmpeg-transcode-f7b72bb2-9c57-4f83-ac47-ee19208162f2_1graph.txt" -copyts -start_at_zero -analyzeduration 3000000 -c:v:0 h264 -i "http://127.0.0.1:8096/LiveTv/LiveStreamFiles/10043a22f0194e6ea8a77f33304203a1/stream.ts" -map v:0 -map a:0 -sn -c:v:0 libx264 -g:v:0 72 -maxrate:v:0 6616000 -bufsize:v:0 13232000 -sc_threshold:v:0 0 -keyint_min:v:0 72 -pix_fmt:v:0 yuv420p -profile:v:0 high -level:v:0 4.1 -x264opts:v:0 "subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none" -crf:v:0 23 -c:a:0 libmp3lame -ab:a:0 192000 -ac:a:0 2 -filter:a:0 volume=2 -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "X:\Videos\transcoding-temp\743D5B.m3u8" -segment_list_type m3u8 -segment_time 3 -segment_list_entry_prefix hls/743D5B/ -segment_start_number 0 -individual_header_trailer 0 -segment_write_temp 1 "X:\Videos\transcoding-temp\743D5B_%d.ts"
2020-01-20 14:50:07.554 Debug App: ProcessRun 'StreamTranscode f7b72b' Started.
2020-01-20 14:50:07.652 Info HttpServer: HTTP GET http://127.0.0.1:88096/LiveTv/LiveStreamFiles/10043a22f0194e6ea8a77f33304203a1/stream.ts. UserAgent: Lavf/58.35.100
2020-01-20 14:50:12.048 Info HttpServer: SocketException: http://127.0.0.1:8096/LiveTv/LiveStreamFiles/10043a22f0194e6ea8a77f33304203a1/stream.ts
2020-01-20 14:50:12.048 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 7020ms. http://127.0.0.1:8096/LiveTv/LiveStreamFiles/10043a22f0194e6ea8a77f33304203a1/stream.ts
2020-01-20 14:50:12.112 Info App: ProcessRun 'StreamTranscode f7b72b' Process exited with code 1
2020-01-20 14:50:12.160 Error HttpServer: Error processing request
    *** Error Report ***
    Version: 4.4.0.7
    Command line: C:\Users\Media\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
    Operating system: Microsoft Windows NT 6.2.9200.0
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: True
    Runtime: file:///C:/Users/Media/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
    System.Environment.Version: 3.1.0
    Processor count: 4
    Program data path: C:\Users\Media\AppData\Roaming\Emby-Server
    Application directory: C:\Users\Media\AppData\Roaming\Emby-Server\system
    System.Exception: System.Exception: Error starting ffmpeg
     at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, CancellationTokenSource cancellationTokenSource, Boolean acquireResources)
     at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService.ProcessRequest(StreamRequest request)
     at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
     at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
     at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
    Source: Emby.Server.MediaEncoding
    TargetSite: Void MoveNext()
    
2020-01-20 14:50:12.160 Info HttpServer: HTTP Response 500 to 192.168.1.109. Time: 4648ms. http://127.0.0.1:8096/emby/videos/5221195/live.m3u8?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzc3LjAuMzg2NS4xMjAgU2FmYXJpLzUzNy4zNnwxNTcxMzg0NjMyMDY0&MediaSourceId=VirtualTV2_20200120144949_20144&PlaySessionId=488971446aec4e0f867e5c5f2b9bbd8f&LiveStreamId=06044cf0e6f93cdae5f285c9ecfaaeb4_5a2a3696663f2d841ecf750c5cf0f9a2_VirtualTV2_20200120144949_20144&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=6616000&AudioBitrate=384000&AudioStreamIndex=-1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit,DirectPlayError&allowVideoStreamCopy=false&allowAudioStreamCopy=false
2020-01-20 14:50:12.169 Info HttpServer: SocketException: http://127.0.0.1:8096/LiveTv/LiveStreamFiles/10043a22f0194e6ea8a77f33304203a1/stream.ts
Link to comment
Share on other sites

In Germany on every tv channel the primetime would be 20:15. That means if you look at the tv guide of real live tv here, you can be sure on 20:15 will always start a new show on every channel.

The plugin is doing this in the background: If you refresh the guide at lets say 15:00, the first item returned from the library request will start at 20:15. The following items are then attached downwards up to the time of the guide refresh and after this attached onwards following the item that has started at 20:15.

is it a necessity though? I mean, if I had the choice, I wouldn't use that... (this is why I removed the value in the first place)

Link to comment
Share on other sites

is it a necessity though? I mean, if I had the choice, I wouldn't use that... (this is why I removed the value in the first place)

 

That's why I have mine set to 00:00.

Link to comment
Share on other sites

 

Just got this error in the server log.

2020-01-20 14:50:07.541 Debug App: CodecValidation: FindVideoEncoder - Check successful - selecting 'libx264 Software Encoder'
2020-01-20 14:50:07.546 Info App: ProcessRun 'StreamTranscode f7b72b' Execute: C:\Users\Media\AppData\Roaming\Emby-Server\system\ffmpeg.exe -loglevel +timing -y -print_graphs_file "C:\Users\Media\AppData\Roaming\Emby-Server\logs\ffmpeg-transcode-f7b72bb2-9c57-4f83-ac47-ee19208162f2_1graph.txt" -copyts -start_at_zero -analyzeduration 3000000 -c:v:0 h264 -i "http://127.0.0.1:8096/LiveTv/LiveStreamFiles/10043a22f0194e6ea8a77f33304203a1/stream.ts" -map v:0 -map a:0 -sn -c:v:0 libx264 -g:v:0 72 -maxrate:v:0 6616000 -bufsize:v:0 13232000 -sc_threshold:v:0 0 -keyint_min:v:0 72 -pix_fmt:v:0 yuv420p -profile:v:0 high -level:v:0 4.1 -x264opts:v:0 "subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none" -crf:v:0 23 -c:a:0 libmp3lame -ab:a:0 192000 -ac:a:0 2 -filter:a:0 volume=2 -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "X:\Videos\transcoding-temp\743D5B.m3u8" -segment_list_type m3u8 -segment_time 3 -segment_list_entry_prefix hls/743D5B/ -segment_start_number 0 -individual_header_trailer 0 -segment_write_temp 1 "X:\Videos\transcoding-temp\743D5B_%d.ts"
2020-01-20 14:50:07.554 Debug App: ProcessRun 'StreamTranscode f7b72b' Started.
2020-01-20 14:50:07.652 Info HttpServer: HTTP GET http://127.0.0.1:88096/LiveTv/LiveStreamFiles/10043a22f0194e6ea8a77f33304203a1/stream.ts. UserAgent: Lavf/58.35.100
2020-01-20 14:50:12.048 Info HttpServer: SocketException: http://127.0.0.1:8096/LiveTv/LiveStreamFiles/10043a22f0194e6ea8a77f33304203a1/stream.ts
2020-01-20 14:50:12.048 Info HttpServer: HTTP Response 200 to 127.0.0.1. Time: 7020ms. http://127.0.0.1:8096/LiveTv/LiveStreamFiles/10043a22f0194e6ea8a77f33304203a1/stream.ts
2020-01-20 14:50:12.112 Info App: ProcessRun 'StreamTranscode f7b72b' Process exited with code 1
2020-01-20 14:50:12.160 Error HttpServer: Error processing request
    *** Error Report ***
    Version: 4.4.0.7
    Command line: C:\Users\Media\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
    Operating system: Microsoft Windows NT 6.2.9200.0
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: True
    Runtime: file:///C:/Users/Media/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
    System.Environment.Version: 3.1.0
    Processor count: 4
    Program data path: C:\Users\Media\AppData\Roaming\Emby-Server
    Application directory: C:\Users\Media\AppData\Roaming\Emby-Server\system
    System.Exception: System.Exception: Error starting ffmpeg
     at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, CancellationTokenSource cancellationTokenSource, Boolean acquireResources)
     at Emby.Server.MediaEncoding.Api.Hls.BaseHlsService.ProcessRequest(StreamRequest request)
     at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
     at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
     at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
    Source: Emby.Server.MediaEncoding
    TargetSite: Void MoveNext()
    
2020-01-20 14:50:12.160 Info HttpServer: HTTP Response 500 to 192.168.1.109. Time: 4648ms. http://127.0.0.1:8096/emby/videos/5221195/live.m3u8?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzc3LjAuMzg2NS4xMjAgU2FmYXJpLzUzNy4zNnwxNTcxMzg0NjMyMDY0&MediaSourceId=VirtualTV2_20200120144949_20144&PlaySessionId=488971446aec4e0f867e5c5f2b9bbd8f&LiveStreamId=06044cf0e6f93cdae5f285c9ecfaaeb4_5a2a3696663f2d841ecf750c5cf0f9a2_VirtualTV2_20200120144949_20144&VideoCodec=h264&AudioCodec=mp3,aac&VideoBitrate=6616000&AudioBitrate=384000&AudioStreamIndex=-1&TranscodingMaxAudioChannels=2&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&ManifestSubtitles=vtt&h264-profile=high,main,baseline,constrainedbaseline,high10&h264-level=51&TranscodeReasons=ContainerBitrateExceedsLimit,DirectPlayError&allowVideoStreamCopy=false&allowAudioStreamCopy=false
2020-01-20 14:50:12.169 Info HttpServer: SocketException: http://127.0.0.1:8096/LiveTv/LiveStreamFiles/10043a22f0194e6ea8a77f33304203a1/stream.ts

ffmpeg logs?

Link to comment
Share on other sites

is it a necessity though? I mean, if I had the choice, I wouldn't use that... (this is why I removed the value in the first place)

That's why I have mine set to 00:00.

I thought it's a nice idea. Maybe i will just use the guide refresh time if no value is set.

Link to comment
Share on other sites

I thought it's a nice idea. Maybe i will just use the guide refresh time if no value is set.

 

it is a nice idea, but in my case just not very useful. I have family members using my server in the US and in Singapore, so very different time-zones...

 

Can always default it to midnight otherwise... if no value is set, then default to midnight. 

 

Something else, cosmetic, and I'm sure I read about it already, I just cannot find it at this moment and I have to go soon: when a channel logo is set from Emby on the "Channels" page, it's not showing up on the config screen. Is there a way to set that?

Link to comment
Share on other sites

Something else, cosmetic, and I'm sure I read about it already, I just cannot find it at this moment and I have to go soon: when a channel logo is set from Emby on the "Channels" page, it's not showing up on the config screen. Is there a way to set that?

I don't think so.

Link to comment
Share on other sites

Mmh, in previous versions of the plugin i've set a delay between the creation of the concatenated transcoding file and returning this file position to the live tv api.

I don't need it, so i've removed this delay. But maybe my machine is just fast enough, yours not  :P That would explain the error at playback start. I will bring back the delay as a user configurable option.

 

The other thing from your remux log:

15:10:52.110 [matroska,webm @ 0000026ad8fee780] File extends beyond end of segment.

could be the cause for the prematurely playback stop. But i'm not sure. You could remux the file again with mkvtoolnix. Maybe it helps.

  • Like 1
Link to comment
Share on other sites

This would explain why it fails when 3 or more people are streaming at the same time...

I don't need it, so i've removed this delay. But maybe my machine is just fast enough, yours not  :P That would explain the error at playback start. I will bring back the delay as a user configurable option.

  • Like 1
Link to comment
Share on other sites

I thought it's a nice idea. Maybe i will just use the guide refresh time if no value is set.

i think it’s useful for movies, less so for series
Link to comment
Share on other sites

New version 0.6.7 in the starting post:

We need your feedback!

There's progress behind the scenes. This version is mainly for users of the Beta Server. I've added a new select option "EmbyDirectPlay" for non continous playback mode.

Please test this playback mode in browsers only and compare it to the situation where you would play the show/movie directly from your library. Do not wonder, the playback starts at the beginning!

It's just a little but very important change in Emby's core to achieve a better playback experience at some time.

 

For users with start problems in continous playback mode i've added a new option to wait some time before the transcoding file is returned to the live tv engine. Maybe it helps, maybe not.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...