NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 35 36 37 38 39 … 101 Next »
Unexpected error in WriteSafeReadAllLines when playing back via webclient

 
  • 0 Vote(s) - 0 Average
Unexpected error in WriteSafeReadAllLines when playing back via webclient
gEd
Offline

Posting Freak

London
Posts: 3,514
Threads: 100
Joined: Jan 2005
#1
2022-11-16, 11:40 PM
Sub, Martin

I'm seeing all these errors when playing back native (and skipping) UK H264 content via the web client. I can see this error being reported on the forum quite some time ago (related to VOD playback) but nothing recent.
BTW: A few weeks back I stopped using postprocessing.bat to remux to mp4 as I found that I was getting regular lipsync issues with mp4 playback on the TV with AndroidUI and was delighted to find that the latest version of the UI playback native UK content perfectly (hurrah).

I tried both on and off for "Avoid transcoding where possible (for better performance)" but that made no difference, the error still happens.
Playback seems fine so I'm not experiencing problems but the frequency of these errors doesn't seem to be a good thing.

Attached the the ffmpeg log from web/temp (which doesn't get removed btw in case that's not by design)


Code:
2022-11-16 22:45:07.065 [ERROR][65] Unexpected error in WriteSafeReadAllLines: System.IO.FileNotFoundException: Could not find file 'C:\Users\Public\NPVR-Data\web\temp\Later  with Jools Holland-4baeecf74b714d6f8798f29a802c99be.m3u8'.
File name: 'C:\Users\Public\NPVR-Data\web\temp\Later  with Jools Holland-4baeecf74b714d6f8798f29a802c99be.m3u8'
  at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
  at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
  at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
  at NShared.Extend.RequestHandlers.TranscoderHLS.WriteSafeReadAllLines(String path)
2022-11-16 22:45:07.077 [ERROR][65] Unexpected error in WriteSafeReadAllLines: System.IO.FileNotFoundException: Could not find file 'C:\Users\Public\NPVR-Data\web\temp\Later  with Jools Holland-4baeecf74b714d6f8798f29a802c99be.m3u8'.
File name: 'C:\Users\Public\NPVR-Data\web\temp\Later  with Jools Holland-4baeecf74b714d6f8798f29a802c99be.m3u8'
  at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
  at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
  at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
  at NShared.Extend.RequestHandlers.TranscoderHLS.WriteSafeReadAllLines(String path)
2022-11-16 22:45:07.087 [ERROR][65] Unexpected error in WriteSafeReadAllLines: System.IO.FileNotFoundException: Could not find file 'C:\Users\Public\NPVR-Data\web\temp\Later  with Jools Holland-4baeecf74b714d6f8798f29a802c99be.m3u8'.
File name: 'C:\Users\Public\NPVR-Data\web\temp\Later  with Jools Holland-4baeecf74b714d6f8798f29a802c99be.m3u8'
  at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
  at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
  at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
  at NShared.Extend.RequestHandlers.TranscoderHLS.WriteSafeReadAllLines(String path)
2022-11-16 22:45:07.098 [ERROR][65] Unexpected error in WriteSafeReadAllLines: System.IO.FileNotFoundException: Could not find file 'C:\Users\Public\NPVR-Data\web\temp\Later  with Jools Holland-4baeecf74b714d6f8798f29a802c99be.m3u8'.
File name: 'C:\Users\Public\NPVR-Data\web\temp\Later  with Jools Holland-4baeecf74b714d6f8798f29a802c99be.m3u8'
  at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
  at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
  at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize)
  at NShared.Extend.RequestHandlers.TranscoderHLS.WriteSafeReadAllLines(String path)
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#2
2022-11-16, 11:50 PM
You really would need to use sub's postprocessing options to skip files that need to be transcoded. We'd probably need to full log and the ffmpeg log. Attachments must be zipped and under 2MB

Martin
gEd
Offline

Posting Freak

London
Posts: 3,514
Threads: 100
Joined: Jan 2005
#3
2022-11-16, 11:56 PM
I can skip my ts recordings fine. about 80% as good as when I converted them to mp4 and without the lipsync issue in AndoidUI on my TV.
I can reproduce the problem and upload a full set of logs if you think there is a potential problem worthy of investigating.
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#4
2022-11-16, 11:59 PM
The web client doesn't skip on the recorded file, the skipping is done on demand generated new chunks.

I always like to see the logs to see if there is any root cause error.

Martin
gEd
Offline

Posting Freak

London
Posts: 3,514
Threads: 100
Joined: Jan 2005
#5
2022-11-17, 12:12 AM
Attached a (very) clean set of logs. (I shutdown recording service, deleted all logs, restarted, watched a recording via browser and skipped a few times)
cheers.


Attached Files
.zip   web.zip (Size: 16.7 KB / Downloads: 2)
.zip   logs-20221117-0009.zip (Size: 2.32 KB / Downloads: 2)
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#6
2022-11-17, 12:30 AM
That doens't look like the logs you get with the zip file. There is 50 minutes and files missing.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,708
Threads: 767
Joined: Nov 2003
#7
2022-11-17, 12:30 AM
Are you set to only log errors? It looks like that nrecord.log is missing most of the useful stuff. (either that, or maybe your restarted the server while the playback page was already trying to play the stream)
gEd
Offline

Posting Freak

London
Posts: 3,514
Threads: 100
Joined: Jan 2005
#8
2022-11-17, 01:33 AM
"Like a fool", I thought this meant I had debug logging instead of error

[...startup]
2022-11-17 00:07:51.671 [DEBUG][1] No C:\Users\Public\NPVR-Data\scripts\PreStartup.bat
2022-11-17 00:07:51.683 [DEBUG][1] Checking if upgrade required

new set of DEBUG logs


Attached Files
.zip   web.zip (Size: 13.53 KB / Downloads: 0)
.zip   logs-20221117-0128.zip (Size: 39.68 KB / Downloads: 3)
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,940
Threads: 956
Joined: May 2006
#9
2022-11-17, 01:46 AM (This post was last modified: 2022-11-17, 01:48 AM by mvallevand.)
Code:
"C:\Program Files\NextPVR\Other\ffmpeg.exe" -y   -ss 311  -i file:"R:\Recordings\Later  with Jools Holland\Later  with Jools Holland_20221112_21002235.ts" -map_metadata -1 -threads 0 -ignore_unknown  -map 0:v:0?  -map 0:a:0 -map -0:s -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -vf yadif=0:-1:0 -b:v 8000000 -maxrate 8000000 -bufsize 16000000 -vsync vfr -profile:v high -level 41 -force_key_frames "expr:gte(t,n_forced*3)" -s 1920x1080  -c:s dvbsub -flags -global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -hls_time 5 -start_number 0 -hls_list_size 0 -y "C:\Users\Public\NPVR-Data\web\temp\Later  with Jools Holland-2eb8b0da23d34660a2cd7b270a72464e.m3u8"
Could you test the command and see if it create the file?

Martin
gEd
Offline

Posting Freak

London
Posts: 3,514
Threads: 100
Joined: Jan 2005
#10
2022-11-17, 01:58 AM
it created lots of files


Attached Files Thumbnail(s)
   
“If this is the way Queen Victoria treats her prisoners, she doesn't deserve to have any.”
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  error: No tuner was available for the requested channel jzk 3 266 2025-04-19, 03:30 PM
Last Post: mvallevand
Question video skips back when playing yanivf 24 1,076 2025-04-09, 06:29 PM
Last Post: mvallevand
  Video image error on software kellanphil 1 212 2025-02-28, 04:11 AM
Last Post: sub
  EPG Script Error? RedDevilJoe 4 350 2025-02-01, 01:16 AM
Last Post: RedDevilJoe
  7.0.1.241229 Back end status stuck in record mode PIPE... eastavin 3 341 2025-01-28, 05:10 PM
Last Post: mvallevand
  7.0.0.241105 Back end status stuck in record mode PIPE... eastavin 1 310 2024-12-11, 10:54 PM
Last Post: Bobins
  Error 400 wakecars067 16 2,113 2024-09-15, 11:59 PM
Last Post: mvallevand
  Error at 58 minutes playback Offroad 4 605 2024-06-01, 01:17 PM
Last Post: Offroad
  Not playing or recording after router change Esteban 2 386 2024-05-31, 09:46 PM
Last Post: Esteban
  Files Still Open Error fccgrant 14 1,528 2024-03-29, 06:53 PM
Last Post: fccgrant

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode