GithubHelp home page GithubHelp logo

TGrabs FATAL: Segmentation Fault about trex HOT 4 CLOSED

mooch443 avatar mooch443 commented on August 17, 2024
TGrabs FATAL: Segmentation Fault

from trex.

Comments (4)

mooch443 avatar mooch443 commented on August 17, 2024 1

Thanks a bunch! This was a bug in my TGrabs code and will be fixed in the next release.
Edit: Just so you know - your intuition that it had to do with an empty video was entirely correct.

from trex.

MarkJThomas avatar MarkJThomas commented on August 17, 2024

Hey Stefan, I am by no way an expert but I had an issue whereby the TGRAB couldn't read some frames of my video and the forced exited the programme. So, after searching for some possible solutions I found one with FFmpeg using terminal:

ffmpeg -i video.mkv -c copy video_fixed.mkv

This seemed to correct the missing frames and then worked after. Maybe worth giving it a go!

All the best!
Mark

from trex.

mooch443 avatar mooch443 commented on August 17, 2024

Hey both!

First of all, this can definitely happen with broken videos, and (as @MarkJThomas mentioned above), this can be fixed easily. A lot of video players "ignore" this and skip frames, but TGrabs currently does not. If this is a "real" crash, then I would first ask: Is this reproducible/does it happen every time with the same videos? In that case it would be great to be able to debug it (e.g. if you could provide a small clip that provokes it and the settings you used).

Best
-Tristan

from trex.

StefanMPopp avatar StefanMPopp commented on August 17, 2024

Thanks for the answers!
Yes, it is reproducible. I have tried copying and reencoding the video with no success.
Could it have to do with the fact that for a while no blobs are detected (because there are no objects to be detected in the frame)?

Here is a short video file that produces the error for me.

TGrabs .settings:
average_samples = 10
averaging_method = max
image_invert = true
threshold = 75
blob_size_range = [0.0001,0.002]
framerate = 25

from trex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.