Commit graph

527 commits

Author SHA1 Message Date
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
cbb6c5a055 Added tiesont to contributors list
Helping other users of this library

Former-commit-id: af67cc2fbb
2021-02-03 23:58:11 +01:00
Malte Rosenbjerg
9f9640877d Merge pull request #167 from rosenbjerg/master
3.4.0

Former-commit-id: d598d846a8
2021-02-03 23:54:38 +01:00
Malte Rosenbjerg
2056412cbf Merge branch 'release' into master
Former-commit-id: 09d8c00d80
2021-02-03 23:50:05 +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
Malte Rosenbjerg
f65a983803 Merge pull request #159 from hey-red/fix-formats
Fix incorrect condition

Former-commit-id: 89fdef4766
2021-01-24 00:56:54 +01:00
hey-red
ce12f753c0 Fix incorrect condition
Former-commit-id: d16efbda31
2021-01-23 05:40:03 +03:00
Malte Rosenbjerg
c82333bd12 Merge pull request #148 from rosenbjerg/master
3.3.0

Former-commit-id: 9604127f7a
2020-12-19 01:35:33 +01:00
Malte Rosenbjerg
3d640f9e08 Add NotifyOnOutput
Former-commit-id: cfee86199b
2020-12-18 00:40:09 +01:00
Malte Rosenbjerg
74c7dfddd6 Merge pull request #143 from rosenbjerg/feature/support-for-specifying-output-encoding
Support specifying output encoding for ffmpeg and ffprobe output

Former-commit-id: 8fe7377bbd
2020-12-14 18:16:24 +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
758d191a18 Merge pull request #141 from rosenbjerg/master
Also include output data on non-zero ffmpeg exitcode

Former-commit-id: 2815ca06f6
2020-12-09 11:03:56 +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
f10c326a81 Merge pull request #140 from rosenbjerg/master
Include std out in FFMpegException

Former-commit-id: ec59363af1
2020-12-09 08:35:41 +01:00
Malte Rosenbjerg
28ba868054 Merge pull request #139 from rosenbjerg/dev/include-ffmpeg-stdout-in-exception
Include ffmpeg std output in exception

Former-commit-id: fa49e137f5
2020-12-08 23:37:06 +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
0d57b95f13 Increase timeout time
Former-commit-id: 502c4415e7
2020-12-07 22:07:41 +01:00
Malte Rosenbjerg
d70cae5e49 Merge pull request #138 from rosenbjerg/master
Use .NET 5 in release pipeline

Former-commit-id: 668aa794ec
2020-12-07 22:01:22 +01:00
Malte Rosenbjerg
f30ad52a0e Use .NET 5 in release pipeline
Former-commit-id: 04f78b01e5
2020-12-07 22:00:43 +01:00
Malte Rosenbjerg
3904df0288 Merge pull request #137 from rosenbjerg/master
Fix dispose error with Snapshot in memory + tests refactored + matrix tests

Former-commit-id: f5aebb4caf
2020-12-07 21:38:05 +01:00
Malte Rosenbjerg
c1881bcff7 Update FFMpegCore.csproj
Former-commit-id: 02877f6326
2020-12-07 21:07:00 +01:00
Malte Rosenbjerg
1b406bf39d Merge pull request #136 from rosenbjerg/refactor-tests
Refactor tests

Former-commit-id: 2e1ffb0e02
2020-12-07 21:04:48 +01:00
Malte Rosenbjerg
d2c4d81196 Use webm for streaming test
Former-commit-id: d64f2dddeb
2020-12-07 21:00:43 +01:00
Malte Rosenbjerg
c2f7b36a5e Test with .NET 5.0
Former-commit-id: 4c24189f6b
2020-12-07 18:07:23 +01:00
Malte Rosenbjerg
5311f99419 Convert to mp3 instead of opus
Former-commit-id: f9090ba9fe
2020-12-07 17:52:47 +01:00
Malte Rosenbjerg
ec943f5ba4 Prevent double GH actions on push to branch with active PR
Former-commit-id: a38b985b65
2020-12-07 17:51:25 +01:00
Malte Rosenbjerg
20f1b44e85 Output ffmpeg formats
Former-commit-id: 8c7dee1b98
2020-12-07 17:49:02 +01:00
Malte Rosenbjerg
27de93d64c Reencode raw file
Former-commit-id: 1a15c08ea2
2020-12-07 17:41:31 +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
2c1831587f Do not matrix test on macos-latest due to missing libgdiplus
Former-commit-id: 56608e600e
2020-12-06 01:03:13 +01:00
Malte Rosenbjerg
1fe78db170 Run matrix tests
Former-commit-id: ed5b5a8a32
2020-12-06 00:59:51 +01:00
Malte Rosenbjerg
039613f2be Use FedericoCarboni/setup-ffmpeg@v1-beta for CI
Former-commit-id: 24ef1a83df
2020-12-06 00:55:55 +01:00
Malte Rosenbjerg
3879c9ff4d Merge pull request #135 from rosenbjerg/master
Explicit Release build

Former-commit-id: df10f84a9c
2020-12-06 00:53:53 +01:00