Commit graph

99 commits

Author SHA1 Message Date
Sergey Nechaev
67af2aa01d Move cancellation check outside of the ThrowIfExitCodeNotZero() and call it separately in all the async code paths. 2025-10-27 13:36:42 +01:00
Sergey Nechaev
560c791802 Update the ThrowIfExitCodeNotZero() to check the exit code before handling cancellation.
This preserves the original semantics and contract (throw only if the ffprobe exits with a non-zero code).
2025-10-27 13:30:59 +01:00
Sergey Nechaev
b863f5d19e FFProbe: Do not throw FFMpegException if cancellation was requested.
Throw OperationCancelledException in this case to provide more uniform and expected behavior.

Fixes #594
2025-10-27 13:30:59 +01:00
Malte Rosenbjerg
7c070765b8 Remove stray space 2025-10-17 21:51:43 +02:00
Malte Rosenbjerg
0d78315a4a Fix formatting 2025-10-16 12:46:37 +02:00
Malte Rosenbjerg
c6a38fabdc Fix newline between properties formatting 2025-10-16 12:44:01 +02:00
Malte Rosenbjerg
ce87dc8a36 Run full code cleanup 2025-10-16 12:38:57 +02:00
Malte Rosenbjerg
10bc004888
Merge pull request #546 from brett-baker/main
Add Copy option to Audio Codec.  Add Crop option to Arguments
2024-12-04 20:56:58 +01:00
Malte Rosenbjerg
5d654af5f8 dotnet format 2024-12-04 21:51:43 +02:00
Malte Rosenbjerg
045068c70e
Merge branch 'main' into main 2024-12-04 20:46:04 +01:00
Malte Rosenbjerg
cf9111881d
Merge branch 'main' into add-video-stream-level-to-ffprobe-analysis 2024-12-04 19:29:31 +01:00
Brett Baker
ff42378834 null check on title to not fail Media Analysis
If the title is missing from the analysis metadata, the analysis fails.  Added null check and default value of "TitleValueNotSet".
2024-11-13 08:45:00 -05:00
Kaaybi
f86d999035 feat: add video-stream level to ffprobe analysis 2024-09-18 12:08:16 +02:00
Tomas Gužauskas
ef08fd93a9 Add HDR color properties support in FFProbe analysis
Add hdr video test
2024-01-30 00:52:25 +02:00
Vortex
df123bb191 Fix: Changed "Chapter" Modell since "Id", "Start" and "End" returned by ffprobe can contain values larger than Int32.MaxValue 2023-10-16 03:20:31 +02:00
Malte Rosenbjerg
f8407bce24 Merge branch 'main' into pr/431 2023-10-05 12:00:06 +02:00
Malte Rosenbjerg
ed30b14687 Align with main branch 2023-10-05 09:24:44 +02:00
Malte Rosenbjerg
54e5d0860c
Merge branch 'main' into feature/custom-ffprob-arguments 2023-10-05 09:21:21 +02:00
Malte Rosenbjerg
7f283e9113
Merge branch 'main' into main 2023-10-05 09:21:13 +02:00
Malte Rosenbjerg
b31c8da7ae Fix tags container null ref exception 2023-10-05 08:58:50 +02:00
vfrz
b2488303cf feature: custom ffprobe arguments 2023-04-12 21:47:36 +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
jeroenvanderschoot
c2db2a35a1 Add Uri support for Frame Analysis,
skipped Stream support as this cannot support MP4's with moov atom in the end of the file, and input pipes do not support seek.


Former-commit-id: 31b93b3ed6
2023-01-31 20:39:00 +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
93c2b62a08 Clean warnings
Former-commit-id: 787804c3a2
2022-03-24 20:46:02 +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
549856f619 Make properties on MediaStream classes for deserialization #296
Former-commit-id: fc86a64b9e
2022-03-24 20:37:27 +01:00
Malte Rosenbjerg
c84c68407d Support cancellationtoken on async ffprobe calls #299
Former-commit-id: da251e99ad
2022-03-24 20:34:25 +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
Malte Rosenbjerg
18fb77985a Merge branch 'master' into update/update-instances-dependency
Former-commit-id: 1022f88019
2022-03-12 19:07:05 +01:00
Malte Rosenbjerg
52bf2ec4d0 Init
Former-commit-id: 7f8bd24058
2022-03-12 19:06:46 +01:00
Notheisz57
eec2c3b375 Update FFProbe.cs
Pass FFOptions argument in call to GlobalFFOptions.GetFFProbeBinaryPath

Former-commit-id: 1d2c0f760b
2022-01-29 19:29:45 -08:00
Jonas Kamsker
f06131a10f Added errordata to analysis
Former-commit-id: 3324cbb528
2022-01-12 01:03:51 +01:00
Jonas Kamsker
974c984d6c Update FFProbeAnalysis.cs
Former-commit-id: 07470ec153
2022-01-12 01:01:40 +01:00
Alex Zhukov
4608b590e1 parse ffprobes -show_packets output
Former-commit-id: 239e2aef42
2021-11-08 06:28:16 -08:00
Malte Rosenbjerg
079760d044 Support for specyfying process working directory through FFOptions (#272)
Former-commit-id: c2d28055c1
2021-11-01 18:13:23 +01:00
Rich Gerber
f47e64789b Change Int32 to long for BitRate
Former-commit-id: b8fefc6a0d
2021-10-26 11:47:46 -07:00
Malte Rosenbjerg
3ea68c4fb8 Merge branch 'master' into pr/255
Former-commit-id: 2b7cd6f7ca
2021-10-21 20:40:25 +02:00
Malte Rosenbjerg
75fa1db64f Minor improvements
Former-commit-id: 79bc918917
2021-10-21 20:36:54 +02:00
Konstantin Samburov
9f3debb9f1 Fix throwing exception for AnalyseAsync if ExitCode not 0.
Former-commit-id: 9ff82337f6
2021-10-11 12:25:41 +09:00
Andrew Morgan
dbccc116fe Adding support for ffprobe show frames
Former-commit-id: 93131a7cd0
2021-09-24 10:23:59 +01:00