Video recordings are failing. File (.ts) created with 0 size

This was working properly last season (earlier in the year) but now when it tries to record a TV show it creates a .ts file of 0 length.

Linux: Ubuntu server

Here is what the logs say (Plex Media Server.log):

Oct 07, 2019 07:59:31.829 [0x7f0475ffb700] ERROR - Unable to find title for item of type 5
Oct 07, 2019 07:59:31.829 [0x7f0475ffb700] ERROR - Unable to find title for item of type 5
Oct 07, 2019 07:59:32.187 [0x7f04597fa700] ERROR - [Transcoder] [mpeg2video @ 0x22ad5c0] Invalid frame dimensions 0x0.
Oct 07, 2019 07:59:32.214 [0x7f045b7fe700] ERROR - [Transcoder] [mpeg2video @ 0x22ad5c0] Invalid frame dimensions 0x0.
Oct 07, 2019 07:59:32.348 [0x7f0409ffb700] ERROR - [Transcoder] [mpeg2video @ 0x22ad5c0] Invalid frame dimensions 0x0.
Oct 07, 2019 07:59:32.888 [0x7f0475ffb700] ERROR - Unable to find title for item of type 5
Oct 07, 2019 07:59:32.888 [0x7f0475ffb700] ERROR - Unable to find title for item of type 5
Oct 07, 2019 07:59:38.511 [0x7f04467fc700] ERROR - [Transcoder] [mpegts @ 0x7a0000] sample rate not set
Oct 07, 2019 07:59:38.512 [0x7f045b7fe700] ERROR - [Transcoder] Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Oct 07, 2019 07:59:38.513 [0x7f040bfff700] ERROR - [Transcoder]
Oct 07, 2019 07:59:38.581 [0x7f0476ffd700] ERROR - DVR:Grabber: Failed to inspect file: Could not parse /media/hdd/plex/Reed/TV/.grab/540d87bde632993070997f657d0ce744dafe69ed/Today (1952) - S2019E218 - 10-07-2019.ts (error=-1094995529): Invalid data found when processing input
Oct 07, 2019 07:59:38.589 [0x7f04477fe700] INFO - Library section 6 (Reed’s TV) will be updated because of a change in ā€˜ā€œ/media/hdd/plex/Reed/TVā€/Today (1952)’
Oct 07, 2019 07:59:42.149 [0x7f040b7fe700] ERROR - Couldn’t copy file ā€œ/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/c/e74ebf018bb0d641eca4117193d36125812f565.bundle/Uploads/posters/d30fd709058a010e16347653182def0b908fe677.jpgā€ to ā€œ/var/lib/plexmediaserver/Librar
y/Application Support/Plex Media Server/Metadata/TV Shows/2/b9f623f8cc321952312eec0dd6396fd1267ec52.bundle/Uploads/posters/d30fd709058a010e16347653182def0b908fe677.jpgā€: File exists
Oct 07, 2019 07:59:42.238 [0x7f03edffb700] ERROR - downloadContainer: expected MediaContainer element, found html
Oct 07, 2019 07:59:42.238 [0x7f03edffb700] WARN - DVR:Subscription: No container available for /tv.plex.providers.epg.cloud:6/metadata/plex%3A%2F%2Fshow%2F5d00ded42234aa001efc6e26
Oct 07, 2019 07:59:42.238 [0x7f03eeffd700] ERROR - downloadContainer: expected MediaContainer element, found html
Oct 07, 2019 07:59:42.238 [0x7f03eeffd700] WARN - DVR:Subscription: No container available for /tv.plex.providers.epg.cloud:6/metadata/plex%3A%2F%2Fshow%2F5cffa2fbd5c642001dd54211
Oct 07, 2019 07:59:42.238 [0x7f03ee7fc700] ERROR - downloadContainer: expected MediaContainer element, found html
Oct 07, 2019 07:59:42.238 [0x7f03ee7fc700] WARN - DVR:Subscription: No container available for /tv.plex.providers.epg.cloud:6/metadata/plex%3A%2F%2Fshow%2F5d0b86d863c8ec001f46fd26
Oct 07, 2019 07:59:42.240 [0x7f03ee7fc700] ERROR - downloadContainer: expected MediaContainer element, found html
Oct 07, 2019 07:59:42.240 [0x7f03ee7fc700] WARN - DVR:Subscription: No container available for /tv.plex.providers.epg.cloud:6/metadata/plex%3A%2F%2Fshow%2F5cffa309bfcdfe001e37b0ee
Oct 07, 2019 07:59:42.240 [0x7f03eeffd700] ERROR - downloadContainer: expected MediaContainer element, found html

These are the parts that seem to be the issue. The ā€œInvalid frame dimensions 0x0ā€. What could cause this?

ERROR - [Transcoder] [mpeg2video @ 0x1b525c0] Invalid frame dimensions 0x0.
ERROR - DVR:Grabber: Failed to inspect file: Could not parse /media/hdd/plex/Reed/TV/.grab/4633b6972249ea79cf1dfbcc69ac454cd71c80ed/Leave It to Beaver (1957) - S01E39 - Cat out of the Bag.ts (error=-1094995529): Invalid data found when processing input

Things I’ve tried:

  1. Power Cycling the HDHomeRun device.
  2. Disabling the UFW (firewall).
  3. Uninstall/Reinstall Plex

I’m really at a loss here on even what to try next.

Tagging @ChuckPa for Linux help.

First step in diagnosis is to open the HDHR directly in your web browser

  1. Using their app on one of your devices, tune a channel
  2. Now, in the browser, look at the reported parameters of the signal quality, strength, and symbols
  3. These should all be in the 90% and above range except Symbols. Symbols should be nearly 100% based on when I had cable service here (I am satellite now)

Here’s what I see when I use HDHomeRun’s tool @ChuckPa
image

I don’t think it’s a reception problem.

Plex Server Version 1.17.0.1841
Ubuntu 18.04.3 LTS
HDHomeRun: HDHR4-2US (Firmware 20190621)

Thanks. That is solid and FAR better than what I had when I had cable service. And that, unfortunately, is the limit of what I can help with.

I can’t even attempt to replicate what you’re seeing or spin up a DVR tuner.

What’s my next step?

Also, here’s the logs when I try to play live through Plex:

Oct 09, 2019 08:08:41.159 [0x7fdd24ff9700] ERROR - Unable to find title for item of type 5
Oct 09, 2019 08:08:41.159 [0x7fdd24ff9700] ERROR - Unable to find title for item of type 5
Oct 09, 2019 08:08:47.363 [0x7fdcf8e7e700] ERROR - [Transcoder] [segment @ 0x1d6b100] sample rate not set
Oct 09, 2019 08:08:47.364 [0x7fdd27fff700] ERROR - [Transcoder] Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Oct 09, 2019 08:08:47.364 [0x7fdd63fff700] ERROR - [Transcoder] Error initializing output stream 0:0 --
Oct 09, 2019 08:08:47.598 [0x7fdd27fff700] ERROR - [Transcoder] [segment @ 0xbdc100] sample rate not set
Oct 09, 2019 08:08:47.599 [0x7fdd63fff700] ERROR - [Transcoder] Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Oct 09, 2019 08:08:47.599 [0x7fdcf8e7e700] ERROR - [Transcoder] Error initializing output stream 0:0 --
Oct 09, 2019 08:08:47.651 [0x7fdd84a78700] ERROR - [TranscodeOutputStream] Session appears to have died from under us

I’ve tried:

  1. Clean install. Remove everything and then minimally configure Device/DVR. Did not fix.
  2. Try to install newest version 1.18.0.1913: Did not fix.
  3. Try to install old version 1.13.0.5023: DVR doesn’t configure anymore in this version. Won’t allow zip code for guide download.

I’m running out of things to try. Who is knowledgeable in this area?

Sounds like ffmpeg is angry about the source for some reason.

Are you able to watch any channels via Plex?

Have you tried updating to the latest beta?

I started backing out changes to the server in the last year and that included OpenVPN and UFW settings.

Once I had done these two things:

  1. systemctl stop openvpn
  2. ufw disable

It started working again. I then tried to figure out which had been preventing it from working so I enabled each one at a time. Upon enabling both Plex was still working.

So it may have had something to do with OpenVPN or UFW, but I’m unable to say for certain because I can’t get it to not work now.

Everything is now working how it should be.

Very odd!

I’m glad it’s working. I suppose if it fails in the future, you at least know where to maybe start looking again.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.