Skip to content

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

Open
@Altomand

Description

@Altomand

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions