Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use a video as an input instead of the camera #26

Open
Altomand opened this issue Feb 10, 2023 · 1 comment
Open

How do I use a video as an input instead of the camera #26

Altomand opened this issue Feb 10, 2023 · 1 comment
Assignees
Labels
Hardware:Dev Board Coral Dev Board issues subtype:Mendel Linux Mendel Linux Build/installation issues type:support Support question or issue

Comments

@Altomand
Copy link

Altomand commented Feb 10, 2023

Description

I changed the src path to a video saved on the Coral dev mini however I get this error even after converting the video to the required format
Traceback (most recent call last):
File "detect11.py", line 404, in
main()
File "detect11.py", line 400, in main
videofmt=args.videofmt)
File "/home/mendel/google-coral/example-object-tracker/gstreamer/gstreamer.py", line 275, in run_pipeline
pipeline = GstPipeline(pipeline, user_function, src_size, mot_tracker)
File "/home/mendel/google-coral/example-object-tracker/gstreamer/gstreamer.py", line 39, in init
self.pipeline = Gst.parse_launch(pipeline)
gi.repository.GLib.Error: gst_parse_error: could not link videoscale0 to queue1, videoscale0 can't handle caps video/x-h264, width=(int)640, height=(int)480, framerate=(fraction)30/1 (3)

Click to expand!

Issue Type

Support

Operating System

Mendel Linux

Coral Device

Dev Board

Other Devices

No response

Programming Language

Python 3.7

Relevant Log Output

Traceback (most recent call last):
  File "detect11.py", line 404, in <module>
    main()
  File "detect11.py", line 400, in main
    videofmt=args.videofmt)
  File "/home/mendel/google-coral/example-object-tracker/gstreamer/gstreamer.py", line 275, in run_pipeline
    pipeline = GstPipeline(pipeline, user_function, src_size, mot_tracker)
  File "/home/mendel/google-coral/example-object-tracker/gstreamer/gstreamer.py", line 39, in __init__
    self.pipeline = Gst.parse_launch(pipeline)
gi.repository.GLib.Error: gst_parse_error: could not link videoscale0 to queue1, videoscale0 can't handle caps video/x-h264, width=(int)640, height=(int)480, framerate=(fraction)30/1 (3)
@google-coral-bot google-coral-bot bot added Hardware:Dev Board Coral Dev Board issues subtype:Mendel Linux Mendel Linux Build/installation issues type:support Support question or issue labels Feb 10, 2023
@alkurop
Copy link

alkurop commented Aug 13, 2023

This issue also happened to me. Please check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware:Dev Board Coral Dev Board issues subtype:Mendel Linux Mendel Linux Build/installation issues type:support Support question or issue
Projects
None yet
Development

No branches or pull requests

3 participants