chrisbenincasa / tunarr

Spiritual successor to dizqueTV
https://tunarr.com/
zlib License
119 stars 11 forks source link

[Bug]: Specials show incorrectly as Season 2 in Plex DVR #666

Open blarrbot opened 1 month ago

blarrbot commented 1 month ago

Contact Details

blarrbot@gmail.com

What happened?

Episodes that are part of the season "Specials" or "Season 0" incorrectly display in Plex as Season 2. They still play in the proper order e.g. in a cyclic shuffle they will play first, before Season 1 as intended, so this is a very low priority visual bug.

See screenshots below. Screenshot 1 shows this episode as S2E1 in the live channel. Screenshot 2 shows this episode is properly named and detected by Plex itself. Screenshot 3 shows Tunarr seeing it properly as S00E01. Screenshot 4 shows the xml which has it set as S0E1. My guess is it's a limitation on the live TV aspect of Plex not being able to display S00/Specials. Thanks for reading. Tunarr is awesome! So much better than DizqueTV. Very excited for its future.

image

image

image

image

Version

0.5.0

What browser did you experience the the problem on?

Chrome Version 127.0.6533.89 (Official Build) (64-bit), but happens across all clients

What operating system are you using?

Docker, hosted on Debian Bookworm VM

Relevant log output

2024-08-06T15:23:12.475Z [info]: 
Stream starting. Channel: 5 (Sitcoms)
2024-08-06T15:23:12.476Z [debug]: Starting ffmpeg concat process with args: -hide_banner -threads 1 -fflags +genpts+discardcorrupt+igndts -re -f concat -safe 0 -stream_loop -1 -protocol_whitelist file,http,tcp,https,tcp,tls -probesize 32 -i http://localhost:8000/playlist?channel=5&audioOnly=false&hls=false -flags cgop -sc_threshold 0 -movflags +faststart -map 0:v -map 0:a -c:v h264_nvenc -c:a aac -b:v 2000k -maxrate:v 2000k -bufsize:v 2000k -b:a 192k -maxrate:a 192k -bufsize:a 50k -af aselect=concatdec_select,aresample=async=1 -ac 2 -ar 48k -muxdelay 0 -muxpreload 0 -metadata service_provider="tunarr" -metadata service_name="Sitcoms" -f mpegts -mpegts_flags +initial_discontinuity pipe:1 {"channel":"8bbc2dfb-b8f3-4e51-bfa0-b1a11d9dc616"}
2024-08-06T15:23:12.479Z [debug] <>: Added channel connection for 8bbc2dfb-b8f3-4e51-bfa0-b1a11d9dc616 with token 2951a134-af4f-45f3-9952-49eebb98435c. {"ipAddress":"172.18.0.1"}
2024-08-06T15:23:12.489Z [debug]: Starting stream timestamp: 2024-08-06T11:23:12-04:00
2024-08-06T15:23:12.495Z [info]: ! Start playback
2024-08-06T15:23:12.495Z [info]: ! Channel: Sitcoms (5)
2024-08-06T15:23:12.496Z [info]: ! Title: The Even Stevens Movie
2024-08-06T15:23:12.496Z [info]: ! From: 1457488 to: 5635460
2024-08-06T15:23:12.496Z [info]: ! Type: program
2024-08-06T15:23:12.497Z [debug]: About to play plex stream
2024-08-06T15:23:12.503Z [info]: First stretch to 1920 x 1080. Then add padding to make it 1920 x 1080  {"channel":"8bbc2dfb-b8f3-4e51-bfa0-b1a11d9dc616"}
2024-08-06T15:23:12.503Z [debug]: Stretch to 1920 x 1080. To fit target resolution of 1920 x 1080. {"channel":"8bbc2dfb-b8f3-4e51-bfa0-b1a11d9dc616"}
2024-08-06T15:23:12.503Z [debug]: Starting ffmpeg with args: "-hide_banner -threads 6 -fflags +genpts+discardcorrupt+igndts -loglevel error -re -ss 1457.488 -i http://10.50.4.26:32400/library/parts/39342/1720362908/file.mkv?X-Plex-Token=REDACTED -filter_complex [0:v]null[video];[video]scale=1920:1080:flags=bicubic,format=yuv420p[scaled];[scaled]setsar=1,format=yuv420p[siz];[0:1]anull[audio];[audio]aresample=48000,aresample=async=1:first_pts=0,apad=whole_dur=4177972ms[padded] -map [siz] -c:v rawvideo -sc_threshold 0 -video_track_timescale 90000 -map [padded] -flags cgop+ilme -c:a pcm_s16le -map_metadata -1 -movflags +faststart -muxdelay 0 -muxpreload 0 -metadata service_provider="tunarr" -metadata service_name="Sitcoms" -f nut pipe:1" {"channel":"8bbc2dfb-b8f3-4e51-bfa0-b1a11d9dc616"}
2024-08-06T15:23:12.671Z [debug]: Video stream started in 182.55849400162697 ms
frame=   13 fps=0.0 q=32.0 size=     278KiB time=00:00:00.36 bitrate=6199.9kbits/s speed=0.734x    
frame=   27 fps= 27 q=34.0 size=     440KiB time=00:00:00.83 bitrate=4323.6kbits/s speed=0.834x    
frame=   43 fps= 29 q=34.0 size=     592KiB time=00:00:01.36 bitrate=3544.4kbits/s speed=0.912x    
frame=   58 fps= 29 q=33.0 size=     713KiB time=00:00:01.86 bitrate=3123.9kbits/s speed=0.934x    
frame=   73 fps= 29 q=38.0 size=     844KiB time=00:00:02.36 bitrate=2917.2kbits/s speed=0.947x    
frame=   87 fps= 29 q=36.0 size=     959KiB time=00:00:02.83 bitrate=2769.2kbits/s speed=0.945x    
frame=  103 fps= 29 q=36.0 size=    1111KiB time=00:00:03.37 bitrate=2701.8kbits/s speed=0.963x    
frame=  118 fps= 29 q=33.0 size=    1259KiB time=00:00:03.87 bitrate=2665.2kbits/s speed=0.967x    
[aist#0:1/pcm_s16le @ 0x3b42f80] Guessed Channel Layout: stereo
Input #0, concat, from 'http://localhost:8000/playlist?channel=5&audioOnly=false&hls=false':
  Duration: N/A, start: 0.000000, bitrate: 1536 kb/s
  Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x1080, SAR 1:1 DAR 16:9, 23.98 tbr, 48k tbn
      Metadata:
        encoder         : Lavc61.3.100 rawvideo
  Stream #0:1: Audio: pcm_s16le (PSD[16] / 0x10445350), 48000 Hz, stereo, s16, 1536 kb/s
      Metadata:
        encoder         : Lavc61.3.100 pcm_s16le
[out#0/mpegts @ 0x3b43d00] Codec AVOption sc_threshold (Scene change threshold) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_nvenc))
  Stream #0:1 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
Output #0, mpegts, to 'pipe:1':
  Metadata:
    service_provider: "tunarr"
    service_name    : "Sitcoms"
    encoder         : Lavf61.1.100
  Stream #0:0: Video: h264, yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 2000 kb/s, 23.98 fps, 90k tbn
      Metadata:
        encoder         : Lavc61.3.100 h264_nvenc
      Side data:
        cpb: bitrate max/min/avg: 2000000/0/2000000 buffer size: 2000000 vbv_delay: N/A
  Stream #0:1: Audio: aac, 48000 Hz, stereo, fltp, 192 kb/s
      Metadata:
        encoder         : Lavc61.3.100 aac
2024-08-06T15:23:13.237Z [debug]: Request ID 'conat-TOFB-6bc1de12-469a-467e-926d-1a9e45baed46 concat time-to-first-byte: 762.4448ms
chrisbenincasa commented 3 weeks ago

Hey thanks for the detailed report and sorry for taking so long to get back! I will have a look at this in the coming days.