Jump to content

Scheduled recording stops early


plutoz

Recommended Posts

For the past several weeks I've had a 90 minute scheduled recording stop at somewhere around 60 minutes; not consistently 60 minutes but a few minutes either side. Always happens to the same show. I'm using an HDHomeRun Dual tuner. Host system is OpenSUSE LEAP 15.1 Linux. Here is the log from the most recent incidence

 

 

2020-02-09 00:31:17.104 Error HdHomerunHost: Error opening live stream:

        *** Error Report ***
        Version: 4.3.1.0
        Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-rpm_{version}_x86_64.rpm
        Operating system: Unix 4.12.14.151
        64-Bit OS: True
        64-Bit Process: True
        User Interactive: True
        Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll
        Processor count: 2
        Program data path: /var/lib/emby
        Application directory: /opt/emby-server/system
        System.IO.IOException: System.IO.IOException: No space left on device
           at System.IO.FileStream.WriteNative(ReadOnlySpan`1 source)
           at System.IO.FileStream.FlushWriteBuffer()
           at System.IO.FileStream.Dispose(Boolean disposing)
           at System.IO.Stream.Close()
           at Emby.LiveTV.TunerHosts.HdHomerun.HdHomerunUdpStream.CopyTo(ISocket udpClient, String file, TaskCompletionSource`1 openTaskCompletionSource, CancellationToken cancellationToken)
           at Emby.LiveTV.TunerHosts.HdHomerun.HdHomerunUdpStream.<>c__DisplayClass8_0.<<StartStreaming>b__0>d.MoveNext()
        Source: System.Private.CoreLib
        TargetSite: Void WriteNative(System.ReadOnlySpan`1[system.Byte])
 
2020-02-09 00:31:17.115 Info HdHomerunHost: Deleting temp files /var/lib/emby/transcoding-temp/d31013d06eb84dbc80cba308a4373a32.ts
2020-02-09 00:33:01.216 Info HdHomerunHost: Live Stream ended.

 

As you can see it appears it thinks the drive is out of space, however I have the Default recording path set to a mountpoint for a drive with plenty of space. The OS drive only has about 9GB free however, so I'm assuming the recording is being written here instead of the path defined. How do I get Emby to record directly to the device with adequate space?

Link to comment
Share on other sites

I'd rather not post the entire log publicly as it contains what I consider to be some personal info. Is the excerpt provided not enough to tell you what the issue could be? Seems like a rather straight forward question, how do I get Emby to stop recording to the OS drive...

Link to comment
Share on other sites

Here is some additional entries in the log related to this recording when it started.

 

 

2020-02-08 23:28:00.004 Info LiveTV: Recording timer fired for Saturday Night Live.

2020-02-08 23:28:00.077 Info HttpClient: GET https://www.thetvdb.com/api/B89CE93890E9419B/series/76177/all/en.zip
2020-02-08 23:28:01.203 Info App: MovieDbProvider: Finding id for item: Saturday Night Live
2020-02-08 23:28:01.391 Info LiveTV: Found existing series path for recording /mnt/drive2/data/emby/Saturday Night Live (1975)
2020-02-08 23:28:01.391 Info LiveTV: Getting media sources for recording from channel 7385 7385
2020-02-08 23:28:01.392 Info LiveTV: Opening live stream for recording from channel 7385 7385
2020-02-08 23:28:01.392 Info LiveTvManager: Opening channel stream from Emby, external channel Id: hdhr_41.1
2020-02-08 23:28:01.392 Info LiveTV: Streaming Channel hdhr_41.1
2020-02-08 23:28:01.393 Info HdHomerunHost: GetChannelStream: channel id: hdhr_41.1. stream id: native_686b312d3504901ba64fed43701d1733_e4d665b2f99abf699333052e08153ff1 profile: native
2020-02-08 23:28:01.400 Info HdHomerunHost: Opening HDHR UDP Live stream from 192.168.7.90
2020-02-08 23:28:02.631 Info HdHomerunHost: Live stream opened after 1231.6466ms
2020-02-08 23:28:02.631 Info LiveTV: Returning mediasource streamId native_686b312d3504901ba64fed43701d1733_e4d665b2f99abf699333052e08153ff1, mediaSource.Id native_686b312d3504901ba64fed43701d1733_e4d665b2f99abf699333052e08153ff1, mediaSource.LiveStreamId null
2020-02-08 23:28:02.632 Info MediaSourceManager: Live stream opened: {"Protocol":"Http","Id":"native_686b312d3504901ba64fed43701d1733_e4d665b2f99abf699333052e08153ff1","Path":"http://127.0.0.1:8096/LiveTv/LiveStreamFiles/d31013d06eb84dbc80cba308a4373a32/stream.ts","Type":"Default","Container":"mpegts","IsRemote":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":false,"IsInfiniteStream":true,"RequiresOpening":true,"RequiresClosing":true,"LiveStreamId":"06044cf0e6f93cdae5f285c9ecfaaeb4_01413a525b3a9622ce6fdf19f7dde354_native_686b312d3504901ba64fed43701d1733_e4d665b2f99abf699333052e08153ff1","RequiresLooping":false,"SupportsProbing":false,"MediaStreams":[{"Codec":"mpeg2video","TimeBase":"1/90000","CodecTimeBase":"1001/30000","VideoRange":"SDR","DisplayTitle":"1080iMPEG2VIDEO","IsInterlaced":true,"BitRate":20000000,"RefFrames":1,"IsDefault":false,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":29.97003,"RealFrameRate":59.94006,"Profile":"Main","Type":"Video","AspectRatio":"16:9","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","PixelFormat":"yuv420p","Level":4,"IsAnamorphic":false},{"Codec":"ac3","CodecTag":"AC-3","TimeBase":"1/90000","CodecTimeBase":"1/48000","DisplayTitle":"Dolby Digital 5.1","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":384000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":-1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Protocol":"File","Level":0}],"Formats":[],"Bitrate":20384000,"RequiredHttpHeaders":{},"ReadAtNativeFramerate":false}
2020-02-08 23:28:02.633 Info LiveTV: Will record to /mnt/drive2/data/emby/Saturday Night Live (1975)/Season 45/Saturday Night Live S45E13 RuPaul; Justin Bieber.ts for 98.9561121 minutes.
2020-02-08 23:28:02.672 Info HttpClient: GET https://emby.tmsimg.com/assets/p17312881_b_v7_aa.jpg
2020-02-08 23:28:02.672 Info LiveTV: Copying recording stream to file /mnt/drive2/data/emby/Saturday Night Live (1975)/Season 45/Saturday Night Live S45E13 RuPaul; Justin Bieber.ts
2020-02-08 23:28:02.903 Info LiveTV: Triggering refresh on /mnt/drive2/data/emby/Saturday Night Live (1975)/Season 45/Saturday Night Live S45E13 RuPaul; Justin Bieber.ts
2020-02-08 23:28:02.904 Info LiveTV: Refreshing recording parent /mnt/drive2/data/emby/Saturday Night Live (1975)/Season 45
2020-02-08 23:29:02.677 Info LibraryMonitor: Season 45 (/mnt/drive2/data/emby/Saturday Night Live (1975)/Season 45) will be refreshed.

 

As you can see it says it is recording to /mnt/drive2/data/emby which is a volume with over 700GB free so it shouldn't be running out of space after ~1 hour of recording.

Link to comment
Share on other sites

Right but we put temporary files in the server's transcoding temporary folder. Even though there's no transcoding actually happening, that's just where the live tv feature puts the live tv buffer. So you may want to reconfigure that location under server transcoding settings.

Link to comment
Share on other sites

Right but we put temporary files in the server's transcoding temporary folder. Even though there's no transcoding actually happening, that's just where the live tv feature puts the live tv buffer. So you may want to reconfigure that location under server transcoding settings.

 

Ah, that makes sense. OK I've changed this setting and started a new recording, I see the file in transcoding-temp getting large quite quickly so this would explain why the recording ran out of space when using the server program folder. I don't know if it would merit mentioning this on the 'DVR' setup page as I suspect others would get caught by this if like me they use a small SSD for their OS and a separate HDD for storage / recordings.

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