[Bug Report] 1.17.0.1709 - Long Videos Won't Stream - XML Errors

Haha, it’s all good. We ended up with the correct solution, so it all worked out :slight_smile: .

Rest is definitely important. Don’t burn yourself out! :beers:

I will rest as soon as the :fire: is out LOL

The :fire: never goes out in the world of IT. Eventually, you just gotta tell people to “stop, drop, and roll” for a bit while you take a break.

Sorry to dig this up. Can anyone tell me whether the fix for this has landed in a released version yet?

I think I’m having the same issue after upgrading from 1.16 to 1.17 (and then 1.18). Ubuntu 18.04 LTS, Plex 1.18.0.1913. I have lots of log lines like these:

Oct 12, 2019 15:55:51.178 [0x7fe635ffb700] ERROR - XML: Entity: line 27: 
Oct 12, 2019 15:55:51.178 [0x7fe635ffb700] ERROR - XML: parser 
Oct 12, 2019 15:55:51.178 [0x7fe635ffb700] ERROR - XML: error : 
Oct 12, 2019 15:55:51.178 [0x7fe635ffb700] ERROR - XML: invalid character in attribute value 
Oct 12, 2019 15:55:51.178 [0x7fe635ffb700] ERROR - XML: 			<Representation id="1" mimeType="audio/mp4" codecs="" bandwidth="290625" aud

… followed eventually by this:

Oct 12, 2019 15:55:52.231 [0x7fe625feb700] ERROR - Exception handled: Error parsing file
Oct 12, 2019 15:55:52.234 [0x7fe67a7bc700] DEBUG - Jobs: '/usr/lib/plexmediaserver/Plex Transcoder' exit code for process 22279 is 0 (success)
Oct 12, 2019 15:55:52.248 [0x7fe6797ba700] DEBUG - Auth: authenticated user 1 as BenHymers
Oct 12, 2019 15:55:52.249 [0x7fe637fff700] DEBUG - Request: [192.168.0.18:57179 (Subnet)] GET /status/sessions (12 live) TLS GZIP Signed-in Token (BenHymers)
Oct 12, 2019 15:55:52.249 [0x7fe637fff700] DEBUG - [Now] Adding 1 sessions.
Oct 12, 2019 15:55:52.250 [0x7fe6797ba700] DEBUG - Completed: [192.168.0.18:57179] 200 GET /status/sessions (12 live) TLS GZIP 1ms 1679 bytes (pipelined: 12)
Oct 12, 2019 15:55:52.325 [0x7fe62dffb700] WARN - Transcode runner appears to have died.

I checked through the release notes from the latest versions about a week ago and didn’t see any mention of this being fixed yet.

Out of curiosity, are the files you’re having trouble with HLS streams in mp4 format?

Can you do a “mediainfo filehere.mp4” and “ffprobe filehere.mp4” post it here.

Sure thing! I don’t totally know what I’m looking at, looks like AVC though, rather than HLS. Also only mediainfo output is below, I can’t install ffmpeg due to unmet dependencies (?!):

General
ID                                       : 16727 (0x4157)
Complete name                            : /storage/tv/Hey Duggee/Season 1/Hey Duggee.S01E01.The Drawing Badge.mp4
Format                                   : MPEG-TS
File size                                : 74.4 MiB
Duration                                 : 7 min 5 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 468 kb/s
FileExtension_Invalid                    : ts m2t m2s m4t m4s tmf ts tp trp ty

Video
ID                                       : 33 (0x21)
Menu ID                                  : 16727 (0x4157)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.2
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Format settings, GOP                     : M=8, N=96
Codec ID                                 : 27
Duration                                 : 7 min 5 s
Maximum bit rate                         : 5 070 kb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 50.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 34 (0x22)
Menu ID                                  : 16727 (0x4157)
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format version                           : Version 4
Format profile                           : LC
Muxing mode                              : ADTS
Codec ID                                 : 15
Duration                                 : 7 min 5 s
Bit rate mode                            : Variable
Maximum bit rate                         : 320 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Language                                 : English

Yeah, it’s an MPEG-TS (HLS) file, which is the same format I was having issues with. So yes, your issue is the same exact issue I was having with the same file format.

Hopefully they push a fix here in the near future.

For the unmet dependencies, try running this:

sudo apt-get update
sudo apt-get install --fix-broken

If you need to downgrade your Plex and you’re using apt, you can do so by using this command.

sudo apt upgrade plexmediaserver=1.16.6.1592-b9d49bdb7

Ah, I was just scanning for ‘HLS’ :slight_smile: Thanks!

Thank you also for the command to downgrade - my daughter will be very thankful tomorrow too when she wakes up and can watch her favourite cartoons again!

I’ve tried the ‘–fix-broken’ magic but it doesn’t seem to work, and aptitude can’t fix it either - it’s suggesting ffmpeg has dependencies that can’t possibly be met (e.g. “libavfilter6 : Depends: libass9 (>= 1:0.13.6) which is a virtual package and is not provided by any available package”). I’ll just give up on fixing that though since you’ve figured out the issue already, but thanks for going the extra mile to try to help with that too! You’re very kind!

Does it give you an error when you try the --fix-broken or does it just not return anything? You can also try sudo apt install -f which does the same thing.

I’m running the same OS and version, so it’s odd that ffmpeg won’t install for you.

I’ll leave this here in the event that this doesn’t get fixed and others need to remux their files to fix the issue. I’ll warn that this is something I wrote in about 5 minutes and it was written specifically to fix files that I knew the format and layout of. As such, it assumes the first video/audio entry is the correct one and deletes the others. Use it at your own risk.

if [[ ! -d ./Fixed ]]; then
        mkdir ./Fixed
fi
IFS=$'\n'
for INPUT in $(ls *.mp4); do
        ffmpeg -i "$INPUT" -map 0:0 -map 0:1 -vcodec copy -acodec copy ./Fixed/"$INPUT"
        if [[ -s ./Fixed/"$INPUT" ]]; then
                rm $INPUT
        fi
done

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