Commit graph

40 commits

Author SHA1 Message Date
Tomas Gužauskas
ef08fd93a9 Add HDR color properties support in FFProbe analysis
Add hdr video test
2024-01-30 00:52:25 +02:00
Phillip Fisher
38789162eb Add chapters to FFProbe 2023-02-25 11:29:41 -06:00
Malte Rosenbjerg
54e216d3e0 Bump nuget version and cleanup 2023-02-21 18:27:26 +01:00
Malte Rosenbjerg
3837edee8c Init (#389)
Former-commit-id: 4ec200528c
2023-02-04 23:42:13 +01:00
pklaes
737eea3a98 fix: Switch source for rotation property from 'tags/rotate' to 'side_data_list/rotation' (incl. test case) (#388)
Former-commit-id: d051cd06d2
2023-02-04 22:17:39 +01:00
Malte Rosenbjerg
693acabac4 Cleanup after splitting into two packages (#386)
* Move PosterWithAudio to FFMpegCore

* Reduce windows only tests

* Update Directory.Build.props

* Create .editorconfig

* More cleanup

* Enable implicit usings

* Remove unused method

* Apply dotnet format

* Fix unused variable in AudioGateArgument

* Fix boolean conditions in AudioGateArgument

* Merge boolean conditions into pattern

* Use target-typed new

* Add linting to CI

* Add CUDA to HardwareAccelerationDevice enum

* Increase timeout for Video_Join_Image_Sequence

* Adjust Video_Join_Image_Sequence timeout

* Fix expected seconds in Video_Join_Image_Sequence

* Increase timeout for Video_TranscodeToMemory due to macos agents

Former-commit-id: f9f7161686
2023-02-02 21:19:45 +01:00
Tom Bogle
7dfefbdfdb Added ability to retrieve bit depth from media streams for lossless encodings (#359)
* Added ability to retrieve bit depth from media streams for lossless encodings

* Shortened sample AIFF file used in tests

Former-commit-id: db7e1e4995
2023-02-01 08:09:16 +01:00
keg247
1dd2685aff Add SampleAspectRatio property to VideoStream
Former-commit-id: 02de377093
2023-01-31 22:41:57 +01:00
Malte Rosenbjerg
766bec2112 Cleanup
Former-commit-id: 476c8f33c0
2023-01-29 23:01:26 +01:00
Malte Rosenbjerg
c35372f5d9 Merge branch 'master' into patch-3
Former-commit-id: b8298d90b3
2022-04-05 21:35:58 +02:00
Malte Rosenbjerg
cfbecdfa9c Handle null dictionaries
Former-commit-id: 1c851dc3ff
2022-03-24 21:15:28 +01:00
Malte Rosenbjerg
f9d9458ebb Remove duplicated property
Former-commit-id: c817381139
2022-03-24 21:14:00 +01:00
Malte Rosenbjerg
6a7714a157 Make Tags and Disposition dictionaries case-insensivite #295
Former-commit-id: 90155efe75
2022-03-24 20:45:49 +01:00
Malte Rosenbjerg
21e5b9634f Expose avg_frame_rate as AverageFrameRate on VideoStream #300
Former-commit-id: 2133d31021
2022-03-24 20:27:09 +01:00
Jonas Kamsker
f06131a10f Added errordata to analysis
Former-commit-id: 3324cbb528
2022-01-12 01:03:51 +01:00
Rich Gerber
f47e64789b Change Int32 to long for BitRate
Former-commit-id: b8fefc6a0d
2021-10-26 11:47:46 -07:00
alex6dj
2b6a74dd7e Use boolean instead on generic int for disposition state value
Former-commit-id: d79bbaef97
2021-09-07 12:48:05 -04:00
alex6dj
57e2585f52 Get extra disposition data in MediaStream
Former-commit-id: 41ec1a10dd
2021-09-06 23:08:36 -04:00
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
alex6dj
bd7dcf9edd Basic ffprobe subtitle support
Former-commit-id: f80d1fa3a6
2021-07-31 15:34:47 -04: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
77e2403902 Init
Former-commit-id: 4f28983972
2021-03-05 18:06:40 +01: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
hey-red
e9ac0951ee Add tags on media stream and format
Former-commit-id: f603163e25
2021-01-29 16:03:59 +03: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
79607c580f Implement IMediaAnalysis in MediaAnalysis class
Former-commit-id: 725c8b31ee
2020-08-12 17:18:10 +12:00
Malte Rosenbjerg
e264c93f67 Make tags more flexible (dictionary)
Former-commit-id: 0c19874be3
2020-08-11 00:46:08 +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
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
5ee26d52ad trim excess fractions of duration tag
Former-commit-id: 9be3fc5a07
2020-06-16 07:42:14 +02:00
Hmarik
38e3baf7b7 Fix null reference exception in ParseAudioStream
Former-commit-id: 6b294ff510
2020-06-03 20:06:51 +03: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
Максим Багрянцев
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
c3b5cd997e Cleanup
Former-commit-id: 72366d573a
2020-05-09 17:53:03 +02:00
Malte Rosenbjerg
bd55018f4f Major refactoring
Former-commit-id: ec043ef075
2020-05-08 11:07:51 +02:00