Commit graph

50 commits

Author SHA1 Message Date
Emem Adegbola
c66ad474e0 Refactor Analyse and GetFrames overloads to share backing logic 2025-12-19 22:18:25 +00:00
Emem Adegbola
ee1c1c3ff8 Reorder FFProbe methods and use overloads where possible
- Reordered public methods so Analyse, GetFrames and GetPackets (and their overloads) are grouped together for readability
- Updated synchronous overloads to call the corresponding async implementations and wait with ConfigureAwait(false).GetAwaiter().GetResult() to avoid duplicated logic
2025-12-19 22:18:25 +00:00
Emem Adegbola
c9d7b663ae Adds overloads to FFProbe.GetFrames methods that take streams 2025-12-19 22:18:25 +00:00
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
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
f8407bce24 Merge branch 'main' into pr/431 2023-10-05 12:00:06 +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
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
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
c35372f5d9 Merge branch 'master' into patch-3
Former-commit-id: b8298d90b3
2022-04-05 21:35:58 +02: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
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
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
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
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
Malte Rosenbjerg
7457168c44 Cleanup
Former-commit-id: df0205fb11
2021-03-07 00:26:08 +01:00
Malte Rosenbjerg
b3032a4ab2 Add ConfigureAwait(false)
Former-commit-id: a12c322de9
2021-03-06 23:05:38 +01:00
Malte Rosenbjerg
77e2403902 Init
Former-commit-id: 4f28983972
2021-03-05 18:06:40 +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
76a977bcd6 Include ffprobe std output in exception
Former-commit-id: f648a4b234
2020-12-08 23:30:10 +01:00
Malte Rosenbjerg
c691dba8e8 Init
Former-commit-id: 8b45a6b680
2020-12-03 20:47:20 +01:00
Malte Rosenbjerg
717d61dd07 Update dependencies and add StreamPipeSink constructor
Former-commit-id: 5ba2ed97cf
2020-11-25 16:15:16 +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
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
Rafael Carvalho
b25d287422 Update existing references to use IMediaAnalysis
Former-commit-id: 37a04a37cd
2020-08-12 17:22:10 +12:00
Malte Rosenbjerg
ecec9d2ea4 Clean unused using directives
Former-commit-id: 8576154d3f
2020-07-20 15:26:34 +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
17c9db52dd Renaming
Former-commit-id: 39dd390e81
2020-05-24 19:17:14 +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
4361bf393b Support custom temp dir and cleanup
Former-commit-id: da399a69aa
2020-05-12 17:30:35 +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
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