Input string was not in a correct format error

Not sure what is causing this. Files are ok and playable. I saw someone else having this issue a few years ago, but it seemed to be resolved by an Sonarr fix.

I should add that the Game of Thrones episodes are the only ones having this issue as many other episodes I grabbed today are parsing just fine.

Couldn’t import episode E:\Downloads\complete\Game of Thrones S06E01 The Red Woman 1080p Bluray.mkv: Input string was not in a correct format.

Exception
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt)
at NzbDrone.Core.MediaFiles.MediaInfo.MediaInfoModel.<>c.<get_FormattedAudioChannels>b__73_0(String s) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\MediaInfo\MediaInfoModel.cs:line 51
at System.Linq.Enumerable.WhereSelectArrayIterator2.MoveNext() at System.Linq.Enumerable.Sum(IEnumerable1 source)
at NzbDrone.Core.MediaFiles.MediaInfo.MediaInfoModel.get_FormattedAudioChannels() in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\MediaInfo\MediaInfoModel.cs:line 51
at NzbDrone.Core.Organizer.FileNameBuilder.AddMediaInfoTokens(Dictionary2 tokenHandlers, EpisodeFile episodeFile) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Organizer\FileNameBuilder.cs:line 527 at NzbDrone.Core.Organizer.FileNameBuilder.BuildFileName(List1 episodes, Series series, EpisodeFile episodeFile, NamingConfig namingConfig) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Organizer\FileNameBuilder.cs:line 130
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:line 73
at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode, Boolean copyOnly) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\UpgradeMediaFileService.cs:line 64
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import(List`1 decisions, Boolean newDownload, DownloadClientItem downloadClientItem, ImportMode importMode) in M:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:line 103

It looks like an issue with the media info for that file. We’ll need to see the media info output of that file to diagnose further.

The text output from MediaInfo GUI would be a good start.

Thanks Markus - Is this what you’re looking for?

General
Unique ID                                : 204966747203753736456657206246816841616 (0x9A3328DBD46A968A8BE8E0C2F4CF7F90)
Complete name                            : D:\TV.Series\Game.of.Thrones.1080p\Season 6\Game of Thrones S06E01 The Red Woman 1080p Bluray.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 9.74 GiB
Duration                                 : 50 min 4 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 27.9 Mb/s
Movie name                               : Game of Thrones S06E01 The Red Woman 1080p Blu-ray Remux AVC Atmos - KRaLiMaRKo
Encoded date                             : UTC 2017-02-03 03:27:15
Writing application                      : mkvmerge v9.8.0 ('Kuglblids') 64bit
Writing library                          : libebml v1.3.4 + libmatroska v1.4.5

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 50 min 4 s
Bit rate mode                            : Variable
Bit rate                                 : 23.9 Mb/s
Maximum bit rate                         : 34.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (23976/1000) FPS
Original frame rate                      : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.480
Stream size                              : 8.34 GiB (86%)
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : Atmos / TrueHD
Codec ID                                 : A_TRUEHD
Duration                                 : 50 min 4 s
Bit rate mode                            : Variable
Bit rate                                 : 3 914 kb/s
Maximum bit rate                         : 6 855 kb/s
Channel(s)                               : Object Based / 8 channels
Channel positions                        : Object Based / Front: L C R, Side: L R, Back: L R, LFE
Sampling rate                            :  / 48.0 kHz
Frame rate                               : 1 200.000 FPS (40 spf)
Compression mode                         : Lossless
Stream size                              : 1.37 GiB (14%)
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text #1
ID                                       : 3
Format                                   : PGS
Muxing mode                              : zlib
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 11 min 31 s
Bit rate                                 : 6 115 b/s
Count of elements                        : 166
Stream size                              : 516 KiB (0%)
Title                                    : Forced
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text #2
ID                                       : 4
Format                                   : PGS
Muxing mode                              : zlib
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 43 min 58 s
Bit rate                                 : 10.5 kb/s
Count of elements                        : 1088
Stream size                              : 3.29 MiB (0%)
Title                                    : SDH
Language                                 : English
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : en:00:00:00.000
00:01:56.116                             : en:00:01:56.116
00:09:34.616                             : en:00:09:34.616
00:19:05.603                             : en:00:19:05.603
00:29:02.366                             : en:00:29:02.366
00:35:32.464                             : en:00:35:32.464
00:41:22.063                             : en:00:41:22.063
00:48:42.336                             : en:00:48:42.336


Yes, thanks I think that will do it. I’ll take a further look.

Edit: this should be fixed in develop.

1 Like

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