Commit Graph

620 Commits

Author SHA1 Message Date
Erwin de Haan
a430568082 Unwrapped OpenRead and CopyFile 2019-01-28 22:09:58 +01:00
Erwin de Haan
d7c6d16250 Unwrapped CreateDirectory and DeleteDirectory 2019-01-28 22:09:56 +01:00
Erwin de Haan
3a831994f6 Unwrapped GetDirectoryName and DirectorySeperatorChar 2019-01-28 22:06:34 +01:00
Bond_009
a709cbdc64 Fix more analyzer warnings 2019-01-27 12:12:44 +01:00
Tthecreator
0b80902cc8 Set EnableRaisingEvents correctly for SubtitleEncoder 2019-01-22 16:52:26 +01:00
Andrew Rabert
d16f38dbe1 Merge pull request #623 from wtayl0r/inject-logger-factories
Replaced injections of ILogger with ILoggerFactory
2019-01-20 18:12:50 -05:00
Andrew Rabert
a1fcf4ea0d Merge pull request #613 from MatMaul/mediaencoding-dev
Update MediaEncoding
2019-01-20 18:11:51 -05:00
Mathieu Velten
da16de48aa Revert back to 10e57ce8d21b4516733894075001819f3cd6db6b for MediaEncoding
Remove some duplicate code that were causing warnings
2019-01-20 22:50:09 +01:00
William Taylor
65cd3ed597 Replaced injections of ILogger with ILoggerFactory
This makes resolving dependencies from the container much easier as
you cannot resolve with primitives parameters in a way that is any
more readable.

The aim of this commit is to change as little as possible with the end
result, loggers that were newed up for the parent object were given the same
name. Objects that used the base or app loggers, were given a new logger with
an appropriate name.

Also removed some unused dependencies.
2019-01-20 21:05:12 +00:00
Claus Vium
e8cf72e925 Change CanExtractSubtitles to true to allow conversion during direct streaming 2019-01-20 21:03:18 +01:00
Andrew Rabert
3a6624f701 Merge pull request #629 from cvium/fix_subtitleencoder
Fix subtitle converter misinterpreting 0 valued endTimeTicks
2019-01-20 11:35:20 -05:00
Claus Vium
2b47006662 Remove unneeded variable 2019-01-20 17:06:40 +01:00
Claus Vium
2dc14aa85d Remove CodePages from csproj 2019-01-20 11:41:33 +01:00
Claus Vium
26e20d1cd5 Fix subtitle converter misinterpreting 0 valued endTimeTicks 2019-01-20 08:17:31 +01:00
cvium
790266d314 Add package ref for codepages 2019-01-20 06:30:52 +01:00
cvium
b35dcbb9f0 Remove MediaBrowser.Text since it violates licenses and is overall hacky 2019-01-20 06:30:50 +01:00
Erwin de Haan
c5430f86b0 Fixed csproj and xml identation. 2019-01-19 15:01:16 +01:00
Erwin de Haan
38f96af079 Reformat JustAMan review pt2 changes
Refs #575
2019-01-17 20:24:39 +01:00
Erwin de Haan
e867446437 ReSharper format: conform inline 'out' parameters. 2019-01-13 21:46:33 +01:00
Erwin de Haan
65bd052f3e ReSharper conform to 'var' settings 2019-01-13 21:37:13 +01:00
Erwin de Haan
a36658f6f0 ReSharper Reformat: Properties to expression bodied form. 2019-01-13 21:31:14 +01:00
Erwin de Haan
9fa60ec934 Find+Sed BOM removal all toher files, except test files. 2019-01-13 21:20:44 +01:00
Erwin de Haan
089ad8e7c2 Find+Sed BOM removal *.xml,*.csproj,*,json,*.sln,*.txt 2019-01-13 21:10:15 +01:00
Erwin de Haan
8f41ba4d3a Find+Sed BOM removal *.cs: MediaBrowser.LocalMetadata-MediaBrowser.Model 2019-01-13 21:02:23 +01:00
Erwin de Haan
742bef5b5f EditorConfig reformat: Non-CS files. 2019-01-13 20:45:51 +01:00
Erwin de Haan
f2e50f50bd Visual Studio Reformat: MediaBrowser.MediaEncoding 2019-01-13 20:26:04 +01:00
Erwin de Haan
e2751d42e8 Merge branch 'dev' into code-cleanup 2019-01-11 12:50:36 +01:00
Andrew Rabert
e5c2dbdf23 Merge pull request #540 from joshuaboniface/api-keys
Update Emby API keys to our own
2019-01-10 23:02:29 -05:00
Joshua M. Boniface
15c89d281e Merge pull request #506 from hawken93/linting
Removing tabs and trailing whitespace
2019-01-10 19:54:18 -05:00
Erwin de Haan
ec1f5dc317 Mayor code cleanup
Add Argument*Exceptions now use proper nameof operators.

Added exception messages to quite a few Argument*Exceptions.

Fixed rethorwing to be proper syntax.

Added a ton of null checkes. (This is only a start, there are about 500 places that need proper null handling)

Added some TODOs to log certain exceptions.

Fix sln again.

Fixed all AssemblyInfo's and added proper copyright (where I could find them)

We live in *current year*.

Fixed the use of braces.

Fixed a ton of properties, and made a fair amount of functions static that should be and can be static.

Made more Methods that should be static static.

You can now use static to find bad functions!

Removed unused variable. And added one more proper XML comment.
2019-01-10 20:38:53 +01:00
Anthony Lavado
5900ab8c68 Update OpenSubtitles User Agent to our own 2019-01-10 13:26:52 -05:00
Bond_009
f520ddc966 Remove useless properties from IEnvironmentInfo 2019-01-08 17:35:56 +01:00
hawken
bd169e4fd4 remove trailing whitespace 2019-01-07 23:27:46 +00:00
Andrew Rabert
237187bfc0 Merge pull request #456 from Bond-009/subencoder
SubtitleEncoder: stop using tuples for clarity
2019-01-06 18:29:12 -05:00
Anthony Lavado
0a715f9196 Merge pull request #435 from Bond-009/ffmpeglogs
Reduce log spam from ffmpeg info
2019-01-06 16:59:37 -05:00
Bond_009
73fd0cd8c6 SubtitleEncoder: stop using tuples for clarity
* Replace Tuples with a ValueTuple or a struct
2019-01-06 21:02:25 +01:00
Bond_009
abddc4786c Reduce log spam from ffmpeg info 2019-01-05 22:40:33 +01:00
Bond_009
59d8d9a82c Fix nullrefexception in SubtitleEncoder 2019-01-04 18:52:04 +01:00
Anthony Lavado
a06a5c8d18 Merge branch 'dev' into project-updates 2019-01-02 14:02:48 -05:00
Bond_009
ec47c5b0f7 Remove unused FontConfigLoader 2019-01-02 15:12:52 +01:00
Bond_009
f3030812ea Use static regex 2019-01-02 16:21:24 +03:00
Bond_009
d6f3ca859e Change regex to multiline
ex: https://regex101.com/r/bn9IOy/12
2019-01-02 16:21:24 +03:00
Bond_009
c05e8088d6 Remove extra capture group from regex
https://regex101.com/r/bn9IOy/11/
2019-01-02 16:21:24 +03:00
Bond_009
12c43cd769 Use regex to check if ffmpeg output contains codec
Demo of the regex: https://regex101.com/r/bn9IOy/10/
2019-01-02 16:21:24 +03:00
Bond_009
0042b96c80 Use ValueTuple and Linq 2019-01-02 16:21:24 +03:00
Bond_009
96ad22a009 Reduce log spam and clean up EncoderValidator 2019-01-02 16:21:24 +03:00
Anthony Lavado
87812d1e7f Fix spacing to C#/Visual Studio standards
- This is a fix automatically applied by Visual Studio
2019-01-02 01:22:21 -05:00
Bond_009
c99b45dbe0 Remove some warnings 2019-01-02 02:35:40 +03:00
Bond_009
ea4c914123 Fix exception logging 2018-12-30 22:44:39 +01:00
Bond_009
0c1b9d3bff Rebase 2018-12-30 22:44:38 +01:00
Bond_009
b0ca979bed MediaBrowser.MediaEncoding use same layout/style as other csprojs 2018-12-29 23:57:22 +01:00
Andrew Rabert
a86b71899e Add GPL modules 2018-12-27 18:27:57 -05:00
Mathieu Velten
1d7d52ff9e Port MediaEncoding and Api.Playback from 10e57ce8d21b4516733894075001819f3cd6db6b 2018-12-14 17:32:54 +01:00
Luke Pulverenti
40442f887b consolidate emby.server.core into emby.server.implementations 2017-08-09 15:56:38 -04:00
Luke Pulverenti
d8e2887071 update container value 2017-08-04 16:29:34 -04:00
Luke Pulverenti
b89af7af43 fixes #2121 - background roku thumbnail generation (or maybe... any scheduled task?) should be "niced" 2017-08-01 15:43:39 -04:00
Luke Pulverenti
d270b10db6 move auto-organize to plugin 2017-07-27 01:18:39 -04:00
Luke Pulverenti
bd32c8ba49 update lg dlna profile 2017-07-13 15:04:59 -04:00
Luke Pulverenti
a759b09577 support max audio bit depth 2017-06-26 11:10:52 -04:00
Luke Pulverenti
1e5c3db9eb support individual library refreshing 2017-06-23 12:04:45 -04:00
Luke Pulverenti
6ff89eab78 fixes #2588 - OpenSubtitlesDownloader doesn't respect X-Ratelimit-Requests-Remaining 2017-06-22 15:14:58 -04:00
Luke Pulverenti
ce47f63389 3.2.20.5 2017-06-18 03:11:55 -04:00
Luke Pulverenti
1663b258a7 update home sections 2017-06-13 02:33:29 -04:00
Luke Pulverenti
9f0e6d17c8 add hevc cuvid 2017-06-12 03:11:54 -04:00
Luke Pulverenti
2c54390c38 enable h264_cuvid decoder 2017-06-10 14:24:53 -04:00
Luke Pulverenti
42d0b070b4 update project files 2017-06-04 17:08:56 -04:00
Luke Pulverenti
820b4873fb move methods to base class 2017-06-04 16:28:27 -04:00
Luke Pulverenti
3e15b28b18 add IsInterlaced param 2017-05-29 08:35:59 -04:00
Luke Pulverenti
33014f77aa update GetItems method 2017-05-26 02:48:54 -04:00
Luke Pulverenti
404171023f clean up build configs 2017-05-16 01:44:06 -04:00
Luke Pulverenti
0beb803aed add sample rate condition 2017-05-13 15:31:25 -04:00
Luke Pulverenti
e915ceda1b dummy up audio bitrates when needed 2017-05-10 22:57:48 -04:00
Luke Pulverenti
ef41f919a6 fix movie db find by external id 2017-05-08 14:07:42 -04:00
Luke Pulverenti
696a6b34ea improve smb support 2017-05-04 14:14:45 -04:00
Luke Pulverenti
53024bd149 removed dead code 2017-05-04 03:01:35 -04:00
Luke Pulverenti
fc7ab45fb3 unify audio conversion 2017-04-27 14:13:16 -04:00
Luke Pulverenti
da39d9a5bf update folder queries 2017-04-27 14:12:44 -04:00
Luke Pulverenti
8755886761 switch to hwaccel auto 2017-04-21 16:03:07 -04:00
Luke Pulverenti
4d7d8961b4 update encoding detection 2017-04-18 01:53:39 -04:00
Luke Pulverenti
561028c907 update automated checkins 2017-04-17 15:01:16 -04:00
Luke Pulverenti
8eb4c034b4 update audio sync params 2017-04-15 15:45:33 -04:00
Luke Pulverenti
4154fdf9c6 update omdb info parsing 2017-04-12 13:09:12 -04:00
Luke Pulverenti
e56faea17a update vsync 2017-04-09 17:38:59 -04:00
Luke Pulverenti
463cb3e354 update live stream management 2017-04-04 02:01:20 -04:00
Luke Pulverenti
abc54d1ea3 determine interlaced from ffprobe data 2017-03-26 00:20:00 -04:00
Luke Pulverenti
c9be9b4141 update hls params 2017-03-24 11:03:49 -04:00
Luke Pulverenti
38e05b11e2 unify encodng param creation 2017-03-19 14:59:05 -04:00
Luke Pulverenti
59ac045c6b increase unification of param building 2017-03-19 02:10:11 -04:00
Luke Pulverenti
44a4e662ac update hdhomerun model info caching 2017-03-16 13:21:24 -04:00
Luke Pulverenti
ce1ed2bea7 update hls to support mpeg2video 2017-03-15 15:57:18 -04:00
Luke Pulverenti
1f63a30ee7 update mjpeg stream detection 2017-03-07 14:05:44 -05:00
Luke Pulverenti
ce3f2bdd20 reduce AnalyzeDurationMs for live tv 2017-03-05 10:38:36 -05:00
gerrit507
c70dfc713b Add hevc hw-decoders and encodrs to var required.
These hardware decoders should be added for letting emby recognize this hw-decoders and encoders. This in addition to  #2506 and on the dev branch as wished.
2017-03-04 11:51:06 +01:00
Luke Pulverenti
a181425e54 omit input container when hw encoding 2017-03-01 15:29:42 -05:00
Luke Pulverenti
0ee1a0d7bd fix mapping multiple tuner channels to same epg channel 2017-02-18 22:46:09 -05:00
Luke Pulverenti
03317b291d improve subtitle responses 2017-02-16 02:14:12 -05:00
Luke Pulverenti
58fad600c9 restore changes 2017-02-09 19:42:57 -05:00
Luke Pulverenti
35415d6a50 add error handling 2017-02-09 18:59:27 -05:00
Luke Pulverenti
8deb423883 restore config settings for now 2017-02-08 13:50:33 -05:00
Luke Pulverenti
b35051463b restore features 2017-02-06 01:05:34 -05:00
Luke Pulverenti
f94353250f disable input modifiers for now 2017-02-06 01:04:38 -05:00
Luke Pulverenti
2a34c30313 update input params 2017-02-06 01:03:01 -05:00
Luke Pulverenti
5edaf12d40 move encoding methods to shared classes 2017-02-02 11:02:01 -05:00
Luke Pulverenti
45398959d7 update media probe 2017-01-31 16:25:29 -05:00
Luke Pulverenti
ab026ab2de restore localized guids switch 2017-01-29 15:00:29 -05:00
Luke Pulverenti
3ff216f05a update ShortOverview 2017-01-26 15:27:12 -05:00
Luke Pulverenti
045fdaf387 update live stream bitrates 2017-01-26 01:26:58 -05:00
Luke Pulverenti
2ebcbdece8 update now playing screen 2017-01-24 00:52:47 -05:00
Luke Pulverenti
8d668095bb add IsRemote property 2017-01-20 12:53:48 -05:00
Luke Pulverenti
80a9bbf5ef support rtp protocol 2017-01-18 01:05:33 -05:00
Luke Pulverenti
c0ddeaab77 update maxrate 2017-01-02 18:15:16 -05:00
Luke Pulverenti
dbba636290 handle unknown video stream 2017-01-01 15:47:54 -05:00
Luke Pulverenti
9da48106c8 update logging 2016-12-29 16:50:53 -05:00
Luke Pulverenti
cb8751f985 fixes #2365 - External bitmap subtitles are loaded incorrectly 2016-12-26 16:22:45 -05:00
Luke Pulverenti
a5ffea5752 update video audio encoding 2016-12-26 14:47:37 -05:00
Luke Pulverenti
e265d8efec fix bdinfo path 2016-12-24 02:41:25 -05:00
Luke Pulverenti
5833aedb15 update bitrate filter 2016-12-23 03:50:32 -05:00
Luke Pulverenti
f8c88aa632 add null checks 2016-12-22 10:58:31 -05:00
Luke Pulverenti
27c4c30082 update media info bitrate 2016-12-20 00:23:33 -05:00
Luke Pulverenti
de9cd28a79 remove tvos dts hack no longer needed 2016-12-14 15:58:55 -05:00
Luke Pulverenti
afabbfa22b add ios dts workaround 2016-12-13 12:04:37 -05:00
Luke Pulverenti
e936f49518 update use of shellexecute 2016-12-09 20:58:52 -05:00
Luke Pulverenti
7ed6c67db0 update xml parsing 2016-12-03 18:57:34 -05:00
Luke Pulverenti
83ad945015 update xml readers 2016-12-03 16:46:06 -05:00
Luke Pulverenti
f5467021b0 update probing 2016-12-03 15:00:41 -05:00
Luke Pulverenti
232da3f17b fixes #2324 - [BUG] FFProbe: StartIndex cannot be less than zero 2016-12-03 14:42:34 -05:00
Luke Pulverenti
c30b82ab44 update recording encoder 2016-11-29 14:13:20 -05:00
Luke Pulverenti
52227ce00d update save methods 2016-11-19 03:40:13 -05:00
Luke Pulverenti
ffb1ec76a7 update components 2016-11-19 02:51:07 -05:00
Luke Pulverenti
7a2cb6da5a add subtitle fix for tizen 2016-11-17 22:12:03 -05:00
Luke Pulverenti
9b5a4c22e3 update image & subtitle extraction 2016-11-14 01:44:21 -05:00
Luke Pulverenti
635c8d50a3 update character escaping 2016-11-13 22:44:54 -05:00
Luke Pulverenti
0e9cd51f9c update .net core startup 2016-11-13 16:04:21 -05:00
Luke Pulverenti
3c55747cd6 fixes #2285 - [BUG] VAAPI Transcoding (Does not work with certain codecs) 2016-11-13 15:27:09 -05:00
Luke Pulverenti
227dd0a42d rework result factory 2016-11-10 09:41:24 -05:00
Luke Pulverenti
a8b340cbb2 update portable projects 2016-11-08 13:44:23 -05:00
Luke Pulverenti
1539836ca1 update didl xml 2016-11-06 12:30:44 -05:00
Luke Pulverenti
f52373609e move classes to portable project 2016-11-03 18:34:16 -04:00
Luke Pulverenti
7cf0f79f85 update thumbnail sampling 2016-11-02 13:08:34 -04:00
Luke Pulverenti
eefab227cc update xml parsing 2016-11-02 13:08:20 -04:00
Luke Pulverenti
8ab5e5aca9 update ffmpeg override behavior 2016-11-01 14:29:29 -04:00
Luke Pulverenti
3952360ce8 reduce imported people 2016-11-01 14:28:36 -04:00
Luke Pulverenti
b1276dc208 make media encoding project portable 2016-11-01 00:07:12 -04:00
Luke Pulverenti
b28857feea update nvenc 2016-10-31 22:23:00 -04:00
Luke Pulverenti
3094cd7ff3 update project targets 2016-10-30 03:11:37 -04:00
Luke Pulverenti
4807be3b09 update nuget 2016-10-29 19:40:36 -04:00
Luke Pulverenti
bfe2b501a6 normalize subtitle names 2016-10-29 16:02:31 -04:00
Luke Pulverenti
da20e8dcd2 continue with .net core targeting 2016-10-29 16:02:21 -04:00
Luke Pulverenti
89ff1f2af6 update components 2016-10-28 14:35:17 -04:00
Luke Pulverenti
31c8c3bf7f make open subtitle project portable 2016-10-27 18:54:56 -04:00
Luke Pulverenti
3d7f75eea3 more steps to make provider project portable 2016-10-26 15:29:56 -04:00
Luke Pulverenti
0189f4c49d move provider project towards portability 2016-10-26 14:25:03 -04:00
Luke Pulverenti
049dca644d add more to .net core solution 2016-10-25 23:59:51 -04:00
Luke Pulverenti
ef6b90b8e6 make controller project portable 2016-10-25 15:02:04 -04:00
Luke Pulverenti
07791d46a5 rework scheduled tasks in preparation of common project going portable 2016-10-23 15:14:57 -04:00
Luke Pulverenti
ce47beba84 use portable libraries 2016-10-22 16:30:37 -04:00
Luke Pulverenti
c7f559f8ce make model project portable 2016-10-21 22:08:34 -04:00
Luke Pulverenti
ccaf2f43a6 exclude mpeg4 with level -99 from vaapi 2016-10-20 02:36:34 -04:00
Luke Pulverenti
55f47d2120 update recording defaults 2016-10-16 13:11:32 -04:00
Luke Pulverenti
d5b5c8e1a5 update display of active recordings 2016-10-11 02:46:59 -04:00
Luke Pulverenti
50e6686987 update live stream management 2016-10-07 11:08:13 -04:00
Luke Pulverenti
a69ca6c55b avoid buffering http responses 2016-10-06 14:55:01 -04:00
Luke Pulverenti
c4e137e6cf update timer listings 2016-10-04 01:15:39 -04:00
Luke Pulverenti
d3583c1460 update lists 2016-10-03 02:28:45 -04:00
Luke Pulverenti
229172da50 update series recording editor 2016-09-30 14:43:59 -04:00
Luke Pulverenti
6a7fabc3bd add new guide settings 2016-09-30 02:50:06 -04:00
Luke Pulverenti
76c7bfcb67 update closing of streams 2016-09-29 08:55:49 -04:00
Jan Friedrich
3d260bd13c vaapi: copy decoded frames to main memory only when necessary 2016-09-24 17:57:03 +02:00
Luke Pulverenti
eee9c0e048 update recording dialogs 2016-09-22 02:57:31 -04:00
Luke Pulverenti
d94598a75e update recording screens 2016-09-21 13:07:18 -04:00
Luke Pulverenti
5ca29f0fba normalize subtitle names 2016-09-20 11:21:09 -04:00
Jan Friedrich
1cf6cfb11c fix graphical subtitle transcoding with vaapi 2016-09-13 18:29:53 +02:00
Luke Pulverenti
064ea27994 update default image extraction timeouts 2016-09-09 14:26:05 -04:00
Luke Pulverenti
3a4b0ea018 limit transcoding to level 41 2016-09-07 22:55:54 -04:00
Luke Pulverenti
9c7eef891b add configurable encoding params 2016-09-04 11:01:31 -04:00
Luke Pulverenti
2d7c82d0dd add loopback handler 2016-09-03 13:16:36 -04:00
Luke Pulverenti
c5c8426c20 fixes #219 - [Bug] Missing hardware device reference in convert job with vaapi transcoding 2016-09-02 00:13:28 -04:00
Luke Pulverenti
f5a6a418f5 update scaling with MaxHeight 2016-08-25 00:54:06 -04:00
Luke Pulverenti
e4851e1b25 reduce rescanning due to IsOffline 2016-08-24 02:13:15 -04:00
Luke Pulverenti
2e65c32ede add vaapi support 2016-08-23 12:31:16 -04:00
Luke Pulverenti
719ad3971e update genre validator 2016-08-19 01:58:35 -04:00
Luke Pulverenti
eb36b009ca update stream start events 2016-08-18 20:10:10 -04:00
Luke Pulverenti
845c4a0d62 update item by name validators 2016-08-18 11:13:18 -04:00
Luke Pulverenti
cc62faa1c2 update season queries 2016-08-18 01:56:10 -04:00
Luke Pulverenti
9349cc5beb update thread count on image extraction 2016-08-10 15:15:41 -04:00
Luke Pulverenti
112d5d6348 try to detect 3d type 2016-08-09 01:08:36 -04:00
Luke Pulverenti
7daf34f048 quote ffmpeg params 2016-08-07 16:13:30 -04:00
Luke
fec7c47824 Merge pull request #1932 from softworkz/ReduceWarnings
Reduced compiler warnings. No functional changes.
2016-08-05 20:37:21 -04:00
softworkz
23da61281e Reduced compiler warnings. No functional changes (except MediaEncoder.cs and AutomaticRestartEntryPoint.cs) 2016-08-05 23:15:48 +02:00
Luke Pulverenti
407d82ea11 support mp4 subtitles 2016-08-05 16:35:11 -04:00
Luke Pulverenti
79887b2c34 validate encoder presence 2016-08-05 01:12:25 -04:00
Luke Pulverenti
a363beb23c update probing 2016-08-03 02:38:27 -04:00
Luke Pulverenti
7e1a0baf9b update media probe 2016-08-03 00:33:34 -04:00
Sven Van den brande
219cba7506 Removed redundant Collection Initializers
Removed Using directives that are not required
2016-07-29 21:18:03 +02:00
Luke Pulverenti
efebac4d6b don't use hardware encoding with folder rips 2016-07-10 11:44:11 -04:00
Luke Pulverenti
a23144726e add startup null check 2016-07-08 00:00:37 -04:00
Luke Pulverenti
42b6e88aa7 fix validation logging 2016-07-07 23:21:06 -04:00
Luke Pulverenti
88be568b40 update subtitle extraction 2016-07-07 11:56:09 -04:00
Luke Pulverenti
08e58886f7 update metadata editor 2016-07-02 22:47:39 -04:00
Luke Pulverenti
dc49059f1b fix interlace detection stderr 2016-07-02 17:45:20 -04:00