You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The video I am trying to play a video that has a resolution of 202x360. The first few frames get materialized fine, then sws_scale will cause the program to crash with exit code (0xc0000374). I have analyzed the target scan, stride, data, linesize - nothing seems off. The video plays fine in ffplay or any other player. I wanted to add a try catch to sws_scale, if it cant scale then skip the frame, but issue is the whole program crashes, can't try catch the method.
@MrBean2016 how can I get some error info from sws_scale? The program crashes instantly after it fails.
I could play the clip without any errors. I do not use the Nuget-packet, I use the source as an component in my project. The ffmpeg version is 6.0
If you play your clip with the sample application, does it work?
One way to debug your application might be activate native debugging since ffmpeg is a collection of native C-libraries. Another is to bump to the the latest FFMPEG 6.1 and see if the problem goes away. Also check if there are any async calls in GUI with callbacks into the GUI, that is often an area where problem occurs.
Sorry for the late reply. I am using ffmpeg version 6.1, (i tried 4.8 , 6.0 , 6.1) my sample app is just player in mainwindow. Here is a video of the crash. Please note the exact same video with normal aspect ratio plays perfectly.
sws_scale crashes with small resolution
The video I am trying to play a video that has a resolution of 202x360. The first few frames get materialized fine, then sws_scale will cause the program to crash with exit code (0xc0000374). I have analyzed the target scan, stride, data, linesize - nothing seems off. The video plays fine in ffplay or any other player. I wanted to add a try catch to sws_scale, if it cant scale then skip the frame, but issue is the whole program crashes, can't try catch the method.
Issue Categories
Steps to Reproduce
exampleTiktokRes.mp4
Expected Results
Sample Code
Crashes from this method:
ffmediaelement/Unosquare.FFME/Container/VideoComponent.cs
Line 256 in ff63396
The text was updated successfully, but these errors were encountered: