cmxl / FFmpeg.NET

.NET wrapper for common ffmpeg tasks
MIT License
611 stars 99 forks source link

Application completely freezes during a call GetMetaData on version 1.1.8 previous version works fine #3

Closed openlisp closed 5 years ago

openlisp commented 6 years ago
        try
        {
            var inputFile = new MediaFile(path);
            var ffmpeg = new FFmpeg.NET.Engine.FFmpeg();
            var data = ffmpeg.GetMetaData(inputFile);  /// here it is, no exception catched application just not continue indefinetelly
            duration =  data.Duration;
        } catch( Exception ex)
        {
            Debug.WriteLine(ex);
        }
cmxl commented 6 years ago

Hi openlisp, I cannot reproduce the issue. Can you please provide some more info?

Is your inputfile a valid file for ffmpeg? Have you tried it with the ffmpeg cli? What type of application do you use this code in? some asynchronous stuff around?

cmxl commented 6 years ago

@openlisp can you run the metadatatests successfully? https://github.com/cmxl/FFmpeg.NET/blob/6c2ab321757539b0057fcd9cfe04cb22ac2204cd/tests/FFmpeg.NET.Tests/MetadataTests.cs#L16