Commit graph

489 commits

Author SHA1 Message Date
Warrick Wilson
cbd33fd553 Added CodecTag and CodecTagString properties to info derived from an FFProbe.Analyse() call. This allows for specific codecs to be identified to check compatibility with hardware limitations.
Former-commit-id: ac2b358fad
2021-08-09 14:52:39 -05:00
Malte Rosenbjerg
d73d7fa30e Load config file, if found, on first use
Former-commit-id: e363440118
2021-08-07 16:39:10 +02:00
Malte Rosenbjerg
3516440ca1 Specify README.md as nuget readme
Former-commit-id: 0efaf686f3
2021-08-07 14:54:48 +02:00
Malte Rosenbjerg
1f3d1ec429 Move Loop(1) to image FileInput. Fix for #206
Former-commit-id: 914003ee32
2021-08-07 14:40:58 +02:00
Malte Rosenbjerg
8b3aadda08 Merge branch 'master' of https://github.com/rosenbjerg/FFMpegCore
Former-commit-id: 28278301dc
2021-08-06 11:13:45 +02:00
Malte Rosenbjerg
4c521aadcc Merge branch 'master' into master
Former-commit-id: 3888a07ab2
2021-08-06 08:10:37 +02:00
alex6dj
8633937f52 Use long option for stream index for better clarity
Former-commit-id: 14d457b946
2021-08-05 15:14:37 -04:00
alex6dj
75386b6dac Document parameters
Former-commit-id: 6247bf6ea4
2021-08-05 15:11:23 -04:00
alex6dj
96ec0613d3 Subtitle hard-burn implementation.
Former-commit-id: 3a89062384
2021-08-05 14:37:32 -04:00
Malte Rosenbjerg
d755c1d526 Fix PcmAudioSampleWrapper namespace
Former-commit-id: fc23456eb1
2021-08-05 13:21:57 +02:00
Fedor Zhilkin
074404f08c Style guide fixes and minor refactoring
Former-commit-id: c30cf4c7ad
2021-08-03 21:58:40 +03:00
Fedor Zhilkin
8b5b6d8e79 Merge branch 'master' of github.com:rosenbjerg/FFMpegCore
Former-commit-id: 37109bab34
2021-08-03 21:57:30 +03:00
alex6dj
bd7dcf9edd Basic ffprobe subtitle support
Former-commit-id: f80d1fa3a6
2021-07-31 15:34:47 -04:00
Malte Rosenbjerg
06a519eefe Update nuget info
Former-commit-id: 0c9c526e2a
2021-07-16 01:10:54 +02:00
Malte Rosenbjerg
33ab024a60 Improve ffprobe exceptions
Former-commit-id: 27fb37700c
2021-07-16 01:02:38 +02:00
cephei
2f66d24fa5 support specific StandardOutputEncoding & StandardErrorEncoding for ffprobe
Former-commit-id: ab82e3cc0f
2021-07-08 20:17:09 +08:00
Patrick Krämer
0ba18c24ae Support cancellation token for cancelling FFMPEG processes
Former-commit-id: 3efc34565a
2021-07-07 20:16:14 +02:00
Malte Rosenbjerg
e8f9fa52ae Update nuget info
Former-commit-id: d5e8444cb8
2021-06-08 19:10:30 +02:00
Malte Rosenbjerg
bf020a7893 Merge branch 'master' into add-pcm-wrapper
Former-commit-id: f8692abc57
2021-06-08 18:55:09 +02:00
Malte Rosenbjerg
d9ef2f5d54 Remove -y
Former-commit-id: 366a1cd6c0
2021-06-08 18:49:22 +02:00
Julien Loir
7e9b3d20cd Add test for the new audio pipe
Former-commit-id: acd462a527
2021-05-25 16:14:40 +02:00
Malte Rosenbjerg
2ad0381413 Reorder using directives
Former-commit-id: be32a14619
2021-05-15 11:19:22 +02:00
Malte Rosenbjerg
2bdfcdcb7a Merge branch 'master' into add-pcm-wrapper
Former-commit-id: e56521b2bb
2021-05-15 11:17:46 +02:00
Malte Rosenbjerg
33878ab605 Cleanup in using directives
Former-commit-id: 6c3129d417
2021-05-15 11:17:12 +02:00
Malte Rosenbjerg
c75d5c434a Merge branch 'master' into add-pcm-wrapper
Former-commit-id: 9632bf5b30
2021-05-15 11:14:44 +02:00
Malte Rosenbjerg
4d3ba4192b Update nuget meta
Former-commit-id: 811471ed77
2021-05-14 01:08:01 +02:00
Malte Rosenbjerg
12e031dfb3 Fixes, renames and missing stuff
Former-commit-id: 27a2219b8e
2021-05-14 01:02:00 +02:00
Julien Loir
32dfb34724 Add simple support for PCM audio source wrapping
Former-commit-id: d8810682ef
2021-04-12 13:50:27 +02:00
Julien Loir
7bee36e2ca Add support for Format16bppRgb555 in Bitmap wrapper
Former-commit-id: 1711f98bd5
2021-04-12 13:49:36 +02:00
Julien Loir
4eafa4533c Move System.IO in usings on some classes
Former-commit-id: e10657169e
2021-04-12 13:48:55 +02:00
Victor Horobchuk
c690817135 update
Former-commit-id: 4e6ecda884
2021-03-22 12:25:13 +02:00
Victor Horobchuk
93496db720 Update
Former-commit-id: 4e85482988
2021-03-18 21:37:02 +02:00
Victor Horobchuk
d0afc5001b Update
Former-commit-id: ab8be5cd57
2021-03-17 09:58:01 +02:00
Victor Horobchuk
229fb93980 Add mirror and default ForceFormat for OutputPipeArgument
Former-commit-id: ec1b8a6b07
2021-03-17 00:09:56 +02:00
Malte Rosenbjerg
90f642d61d Update FFMpegCore.csproj
Former-commit-id: 97fe2cce60
2021-03-15 23:44:31 +01:00
Malte Rosenbjerg
eed36f579b Update nuget meta
Former-commit-id: 277f11d06e
2021-03-15 23:43:28 +01:00
Malte Rosenbjerg
263645f83b Fix tests
Former-commit-id: 1d6517796f
2021-03-15 23:43:22 +01:00
Malte Rosenbjerg
8817b4c765 Merge branch 'master' into master
Former-commit-id: 5a2ebcf0f3
2021-03-15 23:20:27 +01:00
Malte Rosenbjerg
e1f319e074 Move MediaAnalysis parsing helper methods to static class
Former-commit-id: 8a314f02ae
2021-03-15 23:17:56 +01:00
Malte Rosenbjerg
7340380bd0 Update nuget meta
Former-commit-id: 0a146251e7
2021-03-15 23:06:34 +01:00
Malte Rosenbjerg
aec737bbc5 Renaming to OutputUrlArgument
Former-commit-id: fc2802d5fb
2021-03-15 23:04:59 +01:00
Malte Rosenbjerg
8f5ebf4852 Merge branch 'master' of https://github.com/rosenbjerg/FFMpegCore
Former-commit-id: 340400966d
2021-03-15 22:53:51 +01:00
Malte Rosenbjerg
085788c4e4 Merge pull request #179 from Codinlab/OutputStream
Add OutputStreamArgument

Former-commit-id: ce7eb9228b
2021-03-15 22:53:42 +01:00
Malte Rosenbjerg
ffbce8fba9 Bump nuget dependencies
Former-commit-id: 0face0b6e4
2021-03-15 22:48:53 +01:00
Malte Rosenbjerg
d2ed98ee26 Move extension method from Bitmap to Image
Former-commit-id: 6882284593
2021-03-15 22:48:43 +01:00
Maxim Bagryantsev
fdc524d516 Moved Debug.WriteLine to Pipe disconnect
Former-commit-id: bbd9b7f55c
2021-03-15 20:44:48 +03:00
Maxim Bagryantsev
ba8904429d Fixed process hang on pipe images format mismatch
Former-commit-id: fe646752d3
2021-03-15 20:37:18 +03:00
Malte Rosenbjerg
7457168c44 Cleanup
Former-commit-id: df0205fb11
2021-03-07 00:26:08 +01:00
Malte Rosenbjerg
4a6fb20aab reorder method
Former-commit-id: 7444899106
2021-03-06 23:33:48 +01:00
Malte Rosenbjerg
f20c25d2ee change FrameRate on RawVideoPipeSource to double
Former-commit-id: cfda317883
2021-03-06 23:26:15 +01:00
Malte Rosenbjerg
4e1729875a Update nuget info
Former-commit-id: f40479e697
2021-03-06 23:17:23 +01:00
Malte Rosenbjerg
b3032a4ab2 Add ConfigureAwait(false)
Former-commit-id: a12c322de9
2021-03-06 23:05:38 +01:00
Malte Rosenbjerg
b776422ada Fix tests
Former-commit-id: e49290b217
2021-03-06 21:25:17 +01:00
Malte Rosenbjerg
32e5e97864 Merge branch 'master' into refactor-video-filter-args
Former-commit-id: 8452672ee6
2021-03-05 18:06:50 +01:00
Malte Rosenbjerg
77e2403902 Init
Former-commit-id: 4f28983972
2021-03-05 18:06:40 +01:00
Malte Rosenbjerg
4f06258557 Merge pull request #180 from Codinlab/CancelTimeout
Add cancel timeout

Former-commit-id: 47779dce4d
2021-03-05 18:00:38 +01:00
Thierry Fleury
50cb183ae2 Add cancel timeout
(cherry picked from commit 6383164f267516fbd50d50b2a511c15c25a168dc)


Former-commit-id: 9672713e63
2021-03-02 19:43:24 +01:00
Thierry Fleury
93e56e523c Add OutputStreamArgument
(cherry picked from commit 0c64c4d81d7055a582d8377123dbc3b7ba86e444)


Former-commit-id: 157a53690f
2021-03-02 19:40:50 +01:00
Thierry Fleury
22340a4575 Add InputDeviceArgument
Former-commit-id: 73531b3947
2021-02-28 14:50:55 +01:00
crypton
bff3406545 Format -ss timespan argument to calculate hours
Former-commit-id: bb08076db4
2021-02-12 22:16:55 -08:00
crypton
83c9478007 ffprobe duration parsing
- on large recordings (e.g. radio transmissions), ffprobe might return number of hours which is too large for TimeSpan.Parse (exception: The TimeSpan string '149:07:50.911750' could not be parsed because at least one of the numeric components is out of range or contains too many digits.)
- use regex groups to extract components (hours/minutes/seconds/millis) then parse/create new timespan from that
- NOTICE: this will discard microseconds provided by ffprobe, not sure if this is significant
- ffprobe has inconsitencies with how it represents millisecond component. Sometimes it may return just `82` for 820 milliseconds, so padding with 0s is required on the left. Likewise, sometimes it might return microseconds past milliseconds (first 3 significant figures); this is currently discarded
- Added InternalsVisibleTo to help with unit testing *just* the duration parsing function


Former-commit-id: 35ca34c0b0
2021-02-06 16:50:12 -08:00
Malte Rosenbjerg
1c016fed9a Merge branch 'master' into master
Former-commit-id: 6874ace962
2021-02-04 00:13:02 +01:00
Malte Rosenbjerg
10726acc69 Update FFMpegCore.csproj
Former-commit-id: 4cb80432f6
2021-02-03 23:20:26 +01:00
Malte Rosenbjerg
08c898b56d Return null when no format detected during analysis
Former-commit-id: 66cdb302ef
2021-02-03 23:20:12 +01:00
Malte Rosenbjerg
ffa53edb51 Merge pull request #165 from hey-red/expose-tags
Add tags on media stream and format

Former-commit-id: 8d2251c136
2021-01-29 17:50:39 +01:00
hey-red
e9ac0951ee Add tags on media stream and format
Former-commit-id: f603163e25
2021-01-29 16:03:59 +03:00
hey-red
ce12f753c0 Fix incorrect condition
Former-commit-id: d16efbda31
2021-01-23 05:40:03 +03:00
Malte Rosenbjerg
3d640f9e08 Add NotifyOnOutput
Former-commit-id: cfee86199b
2020-12-18 00:40:09 +01:00
Malte Rosenbjerg
be477197cc Support specifying output encoding for ffmpeg and ffprobe output
Former-commit-id: a4aba666cd
2020-12-09 17:07:41 +01:00
Malte Rosenbjerg
732e3a0772 Merge branch 'master' into master
Former-commit-id: de689dbb50
2020-12-09 11:02:26 +01:00
Malte Rosenbjerg
949dc76f3f Also include output data on non-zero ffmpeg exitcode
Former-commit-id: 6bdf9da683
2020-12-09 10:58:21 +01:00
Malte Rosenbjerg
76a977bcd6 Include ffprobe std output in exception
Former-commit-id: f648a4b234
2020-12-08 23:30:10 +01:00
Malte Rosenbjerg
e124bab800 Init
Former-commit-id: fb2e1e00aa
2020-12-08 23:27:25 +01:00
Malte Rosenbjerg
c1881bcff7 Update FFMpegCore.csproj
Former-commit-id: 02877f6326
2020-12-07 21:07:00 +01:00
Malte Rosenbjerg
ab277aa8fa Run post after ffmpeg has completed
Former-commit-id: 418cb943ff
2020-12-07 17:25:54 +01:00
Malte Rosenbjerg
ac82e17d25 Fix
Former-commit-id: 203da6300b
2020-12-07 01:20:13 +01:00
Malte Rosenbjerg
726c0f9800 Merge branch 'master' into refactor-tests
Former-commit-id: 7fd7ae369d
2020-12-07 01:14:19 +01:00
Malte Rosenbjerg
d172cb0dc7 Only post in continuation
Former-commit-id: 57258c6f5c
2020-12-07 01:13:32 +01:00
Malte Rosenbjerg
2fc64f3ac7 Merge branch 'dev/fixes' into refactor-tests
Former-commit-id: 6c51f634c2
2020-12-07 01:11:17 +01:00
Malte Rosenbjerg
105a9fd1f6 Partial revert
Former-commit-id: 8e2b146f95
2020-12-07 01:11:09 +01:00
Malte Rosenbjerg
ec671ff8bf Dump
Former-commit-id: 3ad127a682
2020-12-07 00:47:47 +01:00
Malte Rosenbjerg
02946e16d1 Return clone to avoid problems with disposing original memorystream
Former-commit-id: 25c650f7fc
2020-12-06 01:15:16 +01:00
Malte Rosenbjerg
4d6db5a9b5 Only disconnect if pipe not already disposed
Former-commit-id: 01b1dd228e
2020-12-06 01:06:31 +01:00
Malte Rosenbjerg
04751a8934 Update nuget info
Former-commit-id: 224126ce75
2020-12-06 00:34:59 +01:00
Malte Rosenbjerg
0248d98877 Skip disconnect on cancelled
Former-commit-id: db95448b14
2020-12-06 00:34:50 +01:00
Malte Rosenbjerg
f3e55c9ae3 Add debug info
Former-commit-id: fd723e06a9
2020-12-06 00:34:27 +01:00
Malte Rosenbjerg
c691dba8e8 Init
Former-commit-id: 8b45a6b680
2020-12-03 20:47:20 +01:00
Malte Rosenbjerg
c14af4eb66 Add license expression
Former-commit-id: 96e0a03630
2020-11-25 16:18:39 +01:00
Malte Rosenbjerg
717d61dd07 Update dependencies and add StreamPipeSink constructor
Former-commit-id: 5ba2ed97cf
2020-11-25 16:15:16 +01:00
Fedor Zhilkin
4b08805467 Refactoring
Former-commit-id: c47214b7aa
2020-11-13 02:09:52 +03:00
Fedor Zhilkin
0126cd1e77 Merge branch 'master' of https://github.com/rosenbjerg/FFMpegCore
Former-commit-id: c6bdf55a77
2020-11-13 01:36:00 +03:00
Malte Rosenbjerg
049cbc1dc6 Fix cancellation
Former-commit-id: 179cb15ba8
2020-10-28 19:26:33 +01:00
Malte Rosenbjerg
8efa3ff32c Merge branch 'release' into master
Former-commit-id: c79bc51bca
2020-10-27 01:01:12 +01:00
Malte Rosenbjerg
0a416d85fa Update nuget info
Former-commit-id: d4d0e9f3c2
2020-10-27 00:57:06 +01:00
Malte Rosenbjerg
b2c28adcd4 Fix output pipe hanging on unix sockets
Former-commit-id: 9feb9f5a22
2020-10-27 00:49:49 +01:00
Malte Rosenbjerg
b0e3d157d3 Cleanup
Former-commit-id: 6b1e411bfe
2020-10-27 00:49:28 +01:00
Malte Rosenbjerg
0f27130e8a Cancel on exit
Former-commit-id: 31685da18a
2020-10-25 18:23:55 +01:00
Malte Rosenbjerg
2b78be6d27 Use /tmp folder for unix sockets
Former-commit-id: 26f5b0f4f4
2020-10-25 17:50:28 +01:00
Malte Rosenbjerg
2966ea2fd8 Fix build warning
Former-commit-id: 564a9e6cfd
2020-10-25 17:44:09 +01:00
Malte Rosenbjerg
c49225af58 Check for existence before analysing with ffprobe
Former-commit-id: 61387fa5be
2020-10-25 17:12:16 +01:00
Malte Rosenbjerg
9819df3485 Remove unused files
Former-commit-id: d105ec4731
2020-10-24 23:33:52 +02:00
Malte Rosenbjerg
ca1035fde2 Add HardwareAccelerationArgument
Former-commit-id: 5fb2305b5b
2020-10-24 23:33:44 +02:00
Malte Rosenbjerg
9434715fba New API
Former-commit-id: 010e9947e9
2020-10-24 22:31:54 +02:00
Malte Rosenbjerg
af6480e1d9 Check ffmpeg/ffprobe availability #75
Former-commit-id: 0136d49edf
2020-10-24 22:18:16 +02:00
Malte Rosenbjerg
fee7d6f450 Fix unix socket naming
Former-commit-id: 3d50530c74
2020-10-24 22:17:33 +02:00
Ibrahim Islam
d2691b6f1f fixes typo
Former-commit-id: fc988b3bbe
2020-10-20 06:53:24 +07:00
Ibrahim Islam
a7c7eb4872 refactors to use string interpolation
Former-commit-id: 462069cefe
2020-10-20 06:35:51 +07:00
Ibrahim Islam
3fd637e44c shortens unique id generation
Former-commit-id: 577776f30f
2020-10-20 06:31:01 +07:00
Jochen Kühner
11585b6268 Update FrameRateArgument.cs
Bugfix framerate need "." as decimal seperator

Former-commit-id: ed537e6ab2
2020-10-15 00:15:40 +02:00
Fedor Zhilkin
e977511b17 Use map filtering
Use map filtering  doing snapshot


Former-commit-id: 981b3294c5
2020-09-17 20:56:28 +03:00
Fedor Zhilkin
f6132e2eba -map filtering
Add map filtering to choose videostream


Former-commit-id: e60fb71ff8
2020-09-17 20:50:38 +03:00
Malte Rosenbjerg
726e8cd486 #94
Former-commit-id: 76107fb93e
2020-08-27 17:22:23 +02:00
Malte Rosenbjerg
0d3f98a011 Fix #97
Former-commit-id: eea6adc6f1
2020-08-27 17:22:04 +02:00
Malte Rosenbjerg
d0bca699be Merge branch 'master' of https://github.com/rosenbjerg/FFMpegCore
Former-commit-id: 78919dcdcf
2020-08-27 16:38:10 +02:00
Malte Rosenbjerg
3ff2eb2cb6 Add creation-time getter property
Former-commit-id: 32e7f16979
2020-08-27 16:38:07 +02:00
Konstantin
e49a17bab1 Add using System.IO
Former-commit-id: e99b1b106f
2020-08-21 21:39:28 +09:00
Konstantin
2fcf389aba Fix pipe path for unix.
Replace fixed '/tmp' with Path.GetTempPath().

Former-commit-id: 4ecf05ec79
2020-08-21 20:10:57 +09:00
Rafael Carvalho
16df2f4424 Update MediaAnalysis's access modifier to internal
Former-commit-id: 1c79e139fd
2020-08-12 17:22:32 +12:00
Rafael Carvalho
b25d287422 Update existing references to use IMediaAnalysis
Former-commit-id: 37a04a37cd
2020-08-12 17:22:10 +12:00
Rafael Carvalho
79607c580f Implement IMediaAnalysis in MediaAnalysis class
Former-commit-id: 725c8b31ee
2020-08-12 17:18:10 +12:00
Rafael Carvalho
9ff34b250f Add IMediaAnalysis interface
Former-commit-id: 8c77ce0cdf
2020-08-12 17:17:34 +12:00
Malte Rosenbjerg
3f9e6c0d18 Update nuget info
Former-commit-id: e6139805a8
2020-08-11 00:48:38 +02:00
Malte Rosenbjerg
679b1b4c47 Handle video frame rotation #84
Former-commit-id: 3b5f677a2c
2020-08-11 00:46:44 +02:00
Malte Rosenbjerg
e264c93f67 Make tags more flexible (dictionary)
Former-commit-id: 0c19874be3
2020-08-11 00:46:08 +02:00
Malte Rosenbjerg
385e50bcee Update nuget info
Former-commit-id: a54a83589c
2020-08-08 20:13:57 +02:00
Malte Rosenbjerg
1b24a71636 Add snapshot overloads
Former-commit-id: 9bf2093517
2020-08-08 20:13:50 +02:00
xxbiohazrdxx
dc9dfddf25 Update DemuxConcatArgument.cs
Typo

Former-commit-id: cb2a9a8334
2020-07-31 11:51:16 -04:00
xxbiohazrdxx
ba67b60931 Change DemuxConcatArgument output to match FFmpeg format
Former-commit-id: 91b39b41a8
2020-07-31 11:46:12 -04:00
Malte Rosenbjerg
a88010d7a1 Changed input for SeekedFileInputArgument
Former-commit-id: ef49542de0
2020-07-26 02:55:42 +02:00
Malte Rosenbjerg
96af90ba7e Add SeekedFileInputArgument and such
Former-commit-id: 59abdd2343
2020-07-26 02:45:14 +02:00
Malte Rosenbjerg
ecec9d2ea4 Clean unused using directives
Former-commit-id: 8576154d3f
2020-07-20 15:26:34 +02:00
Malte Rosenbjerg
cd5116bd6f Write output messages to debug
Former-commit-id: c4c02d6d21
2020-07-20 15:26:20 +02:00
Malte Rosenbjerg
7b9ab9ae5b Upgrade nuget dependencies
Former-commit-id: 06d5d199f8
2020-07-20 15:25:48 +02:00
Malte Rosenbjerg
f0d4f12485 Fix warnings
Former-commit-id: 29d8829d48
2020-07-13 23:56:12 +02:00
Malte Rosenbjerg
40f22de444 Merge branch 'master' of https://github.com/rosenbjerg/FFMpegCore
Former-commit-id: 3785179a87
2020-07-13 23:54:49 +02:00
Malte Rosenbjerg
ef8edf2a6e Base file extension on video container info from ffmpeg
Former-commit-id: 442e69ce1d
2020-07-13 23:54:46 +02:00
Mike Cochran
8105333443 Added audio codec profile to AudioStream
Added the audio codec profile and accompanying test.


Former-commit-id: 24f79fe3c8
2020-07-06 16:33:50 -05:00
Malte Rosenbjerg
4456fa7b5e Update FFMpegCore.csproj
Former-commit-id: 2320217315
2020-06-21 21:23:59 +02:00
Malte Rosenbjerg
ec53c2ddc0 Fix NullRefException in ParseFormat
Former-commit-id: f3c99dffb6
2020-06-21 21:23:16 +02:00
Malte Rosenbjerg
8f832b929c Parse Format from FFProbe show_format
Former-commit-id: b7b15079eb
2020-06-20 14:50:46 +02:00
Malte Rosenbjerg
643d3d999e Update FFMpegCore.csproj
Former-commit-id: f0b83a8941
2020-06-18 22:23:25 +02:00
Malte Rosenbjerg
4e0ee69348 .NET Standard 2.0 support
Former-commit-id: 19856923c6
2020-06-18 21:44:45 +02:00
Malte Rosenbjerg
c3a2104d84 Move to separate files
Former-commit-id: 01d4474595
2020-06-18 21:37:12 +02:00
Malte Rosenbjerg
4f3d2c1fda Move to separate files
Former-commit-id: 552b5d811a
2020-06-18 21:36:59 +02:00
Malte Rosenbjerg
9b7bebfd84 Add demux concat
Former-commit-id: 4e5d464753
2020-06-16 07:42:35 +02:00
Malte Rosenbjerg
5ee26d52ad trim excess fractions of duration tag
Former-commit-id: 9be3fc5a07
2020-06-16 07:42:14 +02:00
Malte Rosenbjerg
f72a301d78 Update FFMpegCore.csproj
Former-commit-id: 257c63b385
2020-06-06 15:38:19 +02:00
Hmarik
38e3baf7b7 Fix null reference exception in ParseAudioStream
Former-commit-id: 6b294ff510
2020-06-03 20:06:51 +03:00
Malte Rosenbjerg
82d401b1cf Add overload to Join
Former-commit-id: a778ccd58f
2020-05-24 19:27:55 +02:00
Malte Rosenbjerg
2435b5aa8b Fix unit test
Former-commit-id: ac6b203f39
2020-05-24 19:17:21 +02:00
Malte Rosenbjerg
17c9db52dd Renaming
Former-commit-id: 39dd390e81
2020-05-24 19:17:14 +02:00
jianxingwu
2fa9255d40 PrepareSnapshotSize repair
Former-commit-id: 0da0b0c156
2020-05-15 17:26:34 +08:00
jianxingwu
bf5e732ad5 FFMpeg.Join error Invalid output file. File extension should be 'mpegts' required.
Former-commit-id: 738176479d
2020-05-15 17:03:29 +08:00
jianxingwu
a94fc05144 PrepareSnapshotSize error : ratio=source.PrimaryVideoStream.Width / 0
ratio=source.PrimaryVideoStream.Height / 0


Former-commit-id: 74593461d4
2020-05-15 16:58:56 +08:00
Malte Rosenbjerg
ff5b9e3b42 Minor adjustment
Former-commit-id: 82fc6e92c9
2020-05-13 00:11:53 +02:00
Malte Rosenbjerg
93733964aa Make process cancellable
Former-commit-id: b2085c4a8b
2020-05-12 23:52:07 +02:00
Malte Rosenbjerg
18cb87559d Snapshot improvements
completely in-memory is now possible


Former-commit-id: ca89cac2f0
2020-05-12 22:48:20 +02:00
Malte Rosenbjerg
aadcb6b5e1 Minor cleanup
Former-commit-id: 59f2afd2ca
2020-05-12 22:47:57 +02:00
Malte Rosenbjerg
5e1aef9adc Change default paths
Former-commit-id: 708189b837
2020-05-12 21:37:10 +02:00
Malte Rosenbjerg
d7a705e9ae Revert "Cleanup"
This reverts commit 152683323e [formerly d95f687e46].


Former-commit-id: 1dc7524ecd
2020-05-12 21:28:50 +02:00
Malte Rosenbjerg
152683323e Cleanup
Former-commit-id: d95f687e46
2020-05-12 21:05:00 +02:00
Malte Rosenbjerg
e0b7d652d9 Default to throwing on errors
Former-commit-id: 3855215000
2020-05-12 17:55:31 +02:00
Malte Rosenbjerg
02c05d1b29 Merge
Former-commit-id: 97d3d15a1f
2020-05-12 17:32:56 +02:00
Malte Rosenbjerg
c960419bae Merge branch 'master' of https://github.com/rosenbjerg/FFMpegCore
Former-commit-id: d9d42d459d
2020-05-12 17:31:41 +02:00
Malte Rosenbjerg
4361bf393b Support custom temp dir and cleanup
Former-commit-id: da399a69aa
2020-05-12 17:30:35 +02:00
Malte Rosenbjerg
20e2df244d Merge branch 'master' into fix/pix_fmt_order
Former-commit-id: ba43feb213
2020-05-12 17:29:24 +02:00
Максим Багрянцев
791cc4b300 Fixed color pallette (#58)
Former-commit-id: 29fd4a76c0
2020-05-12 18:26:52 +03:00
Максим Багрянцев
d47ef3b5b5 Removed empty Enums folder from project
Former-commit-id: d76a059a36
2020-05-12 17:55:17 +03:00
Максим Багрянцев
8c6d097305 Renamed files
Former-commit-id: 18cc364fff
2020-05-12 17:54:39 +03:00
Максим Багрянцев
fa7850b135 Updated PixelFormat namespace
Former-commit-id: 17fa6aafee
2020-05-12 17:53:52 +03:00
Максим Багрянцев
6416cea390 Added Codec, PixelFormat and ContainerFormat classes
Former-commit-id: bbc9305e2b
2020-05-12 17:44:14 +03:00
Malte Rosenbjerg
ca86c86f44 Slight renaming
Former-commit-id: f896ec126f
2020-05-11 00:50:49 +02:00
Malte Rosenbjerg
27fc3eaa28 Pass cancellation token through all input output tasks
Former-commit-id: b854d5b43b
2020-05-11 00:34:17 +02:00
Malte Rosenbjerg
563b5632f9 Add missing using for disposable
Former-commit-id: 48bb95e178
2020-05-11 00:04:53 +02:00
Malte Rosenbjerg
9115485464 Fix tests
Former-commit-id: f22c506f46
2020-05-11 00:02:35 +02:00
Malte Rosenbjerg
209b8d8dd6 Merge pull request #57 from max619/fix/invariant_culture_parsing
Fix FormatException in Media Analysis

Former-commit-id: 52444d439e
2020-05-10 23:57:37 +02:00
Malte Rosenbjerg
9dbaa959b8 QuietArgument -> VerbosityLevelArgument
Former-commit-id: 673af9b78b
2020-05-10 23:55:03 +02:00
Malte Rosenbjerg
afbca2e8d0 QuietArgument -> VerbosityLevelArgument
More options


Former-commit-id: af77e48f28
2020-05-10 23:17:30 +02:00
Malte Rosenbjerg
7315cf2916 Use ToLowerInvariant
Former-commit-id: 188f37c9ee
2020-05-10 23:16:52 +02:00
Максим Багрянцев
f01d514542 Fix FormatException when parsing doubles on systems whith ',' whole and fractional parts separator
Former-commit-id: 54c30c0e1e
2020-05-10 18:55:42 +03:00
Malte Rosenbjerg
f5febbd6ed Outcomment Format48bppRgb tests for now
Former-commit-id: 8583b02687
2020-05-10 14:15:32 +02:00
Malte Rosenbjerg
06539f7b39 Fixes
Former-commit-id: 8d74a3e0d7
2020-05-10 11:31:26 +02:00
Malte Rosenbjerg
c3b5cd997e Cleanup
Former-commit-id: 72366d573a
2020-05-09 17:53:03 +02:00
Malte Rosenbjerg
e8dcdc2238 Update nuget info
Former-commit-id: 821044f33d
2020-05-08 13:09:31 +02:00
Malte Rosenbjerg
bc533df330 Fix tests
Former-commit-id: f50ab577ae
2020-05-08 13:01:59 +02:00
Malte Rosenbjerg
bd55018f4f Major refactoring
Former-commit-id: ec043ef075
2020-05-08 11:07:51 +02:00
Malte Rosenbjerg
503eb3c248 Init
Former-commit-id: 14ea6b1ae1
2020-05-06 23:34:31 +02:00
Malte Rosenbjerg
72339049db Update NuGet info
Former-commit-id: 4abd656b74
2020-05-06 22:16:44 +02:00
Malte Rosenbjerg
0da37cca9f Fix tests
Former-commit-id: 494e38c14a
2020-05-06 21:15:06 +02:00
Malte Rosenbjerg
be932d3e49 Merge branch 'master' into feature/fluent-api
Former-commit-id: fe53609b38
2020-05-06 20:57:26 +02:00
Max Bagryantsev
80622fb16c Merge branch 'master' into feature/piping
Former-commit-id: 2bf113e01a
2020-05-05 15:14:47 +03:00
Malte Rosenbjerg
3e800c7e32 Merge pull request #52 from WeihanLi/fluent-config
config FFMpegOptions with delegate

Former-commit-id: 90ab2d255f
2020-05-03 23:39:58 +02:00
Максим Багрянцев
c7047b6a5f RawVideoPipeDataWriter updated
Former-commit-id: 5ad1a3931a
2020-05-02 13:39:48 +03:00
Максим Багрянцев
b9b13052b9 Changed RawVideoPipeDataWriter StreamFormat, Width, Height to be readonly
Former-commit-id: df63417e11
2020-05-02 13:33:44 +03:00
Weihan Li
955bf08fad Merge branch 'master' into clean-dependency
Former-commit-id: 398184225b
2020-05-02 18:14:03 +08:00
Weihan Li
ee2db4d887 Merge branch 'master' into fluent-config
Former-commit-id: 302ca6f0be
2020-05-02 18:13:44 +08:00
Максим Багрянцев
9e0c15cb64 StreamPipeDataWriter & StreamPipeDataReader using Stream.CopyTo
Former-commit-id: f132a3b731
2020-05-02 13:13:22 +03:00
Максим Багрянцев
ed1284fc31 Fixed VideoInfo ToString when no File is specified
Former-commit-id: b007e9105a
2020-05-02 13:07:34 +03:00
Максим Багрянцев
71bd6f3f88 Merge remote-tracking branch 'fork/master' into feature/piping
Former-commit-id: ee16064f4c
2020-05-02 13:02:01 +03:00
Максим Багрянцев
56fd0495ab Added ContainsOnlyOneOf insted of CountExistedKeys
Former-commit-id: b4dcd9ffb1
2020-05-02 12:41:47 +03:00
weihanli
480a10a13c clean project dependency
Former-commit-id: d6e6f3f36d
2020-05-02 11:41:51 +08:00
weihanli
16a318d664 config FFMpegOptions with delegate
Former-commit-id: 2c63f93b59
2020-05-02 11:26:54 +08:00
Weihan Li
4d156a31c9 Merge branch 'master' into features/raw-argument
Former-commit-id: 1688e0d6e4
2020-05-02 11:07:04 +08:00
weihanli
5a6d61cfe3 rename RawArgument to CustomArgument
Former-commit-id: eb521ae908
2020-05-02 11:05:44 +08:00
Malte Rosenbjerg
6f925f76a7 Merge branch 'master' of https://github.com/rosenbjerg/FFMpegCore
Former-commit-id: 1f7e663765
2020-05-01 10:07:43 +02:00
Malte Rosenbjerg
78e3f5e0c5 Add AudioBitrate as separate Argument
Former-commit-id: 4b88229f72
2020-05-01 10:07:40 +02:00
Максим Багрянцев
0ca11ec962 Added DrawTextOptions
Former-commit-id: 240c9bb23b
2020-04-30 15:13:47 +03:00
Максим Багрянцев
64363d2f71 Added Fluent API methods for ArgumentContainer
Former-commit-id: d8b2cbe3ca
2020-04-30 14:46:20 +03:00
Максим Багрянцев
50f353aac7 Added exit code checking to FFProbe stream methods
Former-commit-id: 883185b5ec
2020-04-28 22:43:53 +03:00
Максим Багрянцев
2a6347e1db Updated FFmpeg RunProcess and RunProcessAsyncFunctions
Former-commit-id: 412456857f
2020-04-28 22:40:00 +03:00
Максим Багрянцев
214859aa0b Updated FFProbe
Former-commit-id: 11edbbea2b
2020-04-28 22:39:26 +03:00
Максим Багрянцев
d94065d4b3 Changed ForceFormatArgument and VideoCodecArgument to string arguments
Former-commit-id: 06f5c319ad
2020-04-28 22:36:03 +03:00
Максим Багрянцев
b5361b69b0 Updated Input and Output Pipe arguments. Derived them from PipieArgument
Former-commit-id: b83479e1b6
2020-04-28 22:34:04 +03:00
Максим Багрянцев
e462b424eb Simplified ContainsInputOutput implementation
Former-commit-id: 1d51163a05
2020-04-28 18:50:29 +03:00
Максим Багрянцев
b0aedbad87 Added StreamFormat property to StreamPipeDataWriter
Former-commit-id: 6845fe3bc7
2020-04-28 18:43:54 +03:00
Максим Багрянцев
6bb03f6e14 Renamed IPipeSource to IpipeDataWriter
Former-commit-id: b7099f6709
2020-04-28 18:42:50 +03:00
Максим Багрянцев
9642e4473b Added OutputPipeArgument
Former-commit-id: 8434ffbba6
2020-04-28 18:39:39 +03:00
Максим Багрянцев
f48632c105 FromStream method to Video Info & added comments to FFprobe methods with stream
Former-commit-id: f56ea098a5
2020-04-28 15:44:27 +03:00
Максим Багрянцев
5c437211b2 Added ffprobe stream input
Former-commit-id: cfda0fc9ae
2020-04-28 15:21:48 +03:00
weihanli
985fc0cbc4 return null when file not exits
Former-commit-id: 1e24b0bef4
2020-04-28 19:40:31 +08:00
weihanli
9ffa2cb28a add RawArgument.cs
Former-commit-id: 5643544a3b
2020-04-28 12:31:16 +08:00
Максим Багрянцев
b0f46bc289 Added StreamPipeSource
Former-commit-id: 9903e333e6
2020-04-27 21:22:05 +03:00
Максим Багрянцев
9773828a62 Updated RawVideoPipeSource.cs
Former-commit-id: 9a4d200483
2020-04-27 19:47:56 +03:00
Максим Багрянцев
e21880c4a1 Added some summaries
Former-commit-id: 6f8c7915f8
2020-04-27 19:46:58 +03:00
Максим Багрянцев
f93566e749 Merge remote-tracking branch 'fork/master' into feature/piping
Former-commit-id: 9431f865e3
2020-04-27 19:42:56 +03:00
Максим Багрянцев
12faf7482d Replaced IInputPipe interface with System.IO.Stream
Former-commit-id: 4f51c3d32f
2020-04-27 19:35:53 +03:00
Максим Багрянцев
2c2ceacb41 Added input piping
Former-commit-id: 13d5e3d191
2020-04-27 19:23:31 +03:00
Malte Rosenbjerg
c1393697a3 Add AudioSamplingRateArgument
Former-commit-id: bc76d830d4
2020-04-15 16:46:28 +02:00
Malte Rosenbjerg
2809e0c47b Make output file existence check optional
Former-commit-id: d1a1864aa1
2020-04-15 00:40:51 +02:00
Malte Rosenbjerg
74c1222b9c Minor refactor and add async Convert
Former-commit-id: 7406cd0fa2
2020-03-02 23:48:52 +01:00
Malte Rosenbjerg
418b0e57c7 Fix progress and add unit test
Former-commit-id: 55a7e74817
2020-03-02 22:50:04 +01:00
Malte Rosenbjerg
85b75dfa75 Update dependency
Former-commit-id: 081627ef25
2020-03-01 13:06:48 +01:00
Malte Rosenbjerg
24c3eb475d Make output capacity configureable and set higher default
Fixes #42


Former-commit-id: cdcecda648
2020-03-01 12:55:57 +01:00
Malte Rosenbjerg
72a4e704ae Add missing using directive
Former-commit-id: c0e1742330
2020-02-27 22:37:58 +01:00
Malte Rosenbjerg
2809defe23 Correct valid transpose values
Former-commit-id: cdade1e73f
2020-02-27 22:31:32 +01:00
Malte Rosenbjerg
3ef90fa13f Add transpose argument
Former-commit-id: 21b35d349e
2020-02-27 21:48:15 +01:00
Malte Rosenbjerg
58c54458fe Add more audio codecs
Former-commit-id: 35a3f9035f
2020-02-27 21:13:18 +01:00
Malte Rosenbjerg
7b2a419c10 Cleanup
Former-commit-id: 46bc75c6d1
2020-02-27 21:12:48 +01:00
Malte Rosenbjerg
ff1c7e070b Use switch expression
Former-commit-id: 6561d0bec1
2020-02-27 20:24:20 +01:00
Malte Rosenbjerg
7d77c33609 Remove ArgumentStringifier + cleanup
No reason to split the responsibility


Former-commit-id: 0e2c788796
2020-02-27 20:16:17 +01:00
Malte Rosenbjerg
616a6d1c7d Move to separate file
Former-commit-id: 293ac4306a
2020-02-27 18:32:45 +01:00
Malte Rosenbjerg
3ff253f744 Add vbr support
Former-commit-id: 098917a5da
2020-02-27 18:31:57 +01:00
Malte Rosenbjerg
cc82f0b3fa Add more AudioQuality presets (enum)
Former-commit-id: 1badd3ba4c
2020-02-27 18:29:27 +01:00
Malte Rosenbjerg
fa3904ea91 Add argument for removing metadata
Former-commit-id: e688bcc674
2020-02-27 18:29:09 +01:00
Malte Rosenbjerg
a5c0eb639c Support for faststart
Former-commit-id: b806f2bbfb
2020-02-27 18:28:55 +01:00
Malte Rosenbjerg
06a046e3fe Support for crf
Former-commit-id: 170aefeb32
2020-02-27 18:28:49 +01:00
Malte Rosenbjerg
e24b652695 Add support for drawtext argument
Former-commit-id: ebd9ff0adc
2020-02-25 23:19:30 +01:00
Malte Rosenbjerg
1ac2664f58 Release branch init
Former-commit-id: 4ea246ee70
2020-02-21 17:40:03 +01:00
Malte Rosenbjerg
889820b32c Prepare nuget info
Former-commit-id: 4ea76c847a
2020-02-21 17:14:07 +01:00
Malte Rosenbjerg
0164c801c1 Merge branch 'master' of https://github.com/rosenbjerg/FFMpegCore
Former-commit-id: c41b124588
2020-02-20 23:04:54 +01:00