Skip to content

videoio: Fixed relative paths handling in GStreamer backend - #15877

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
mshabunin:fix-gst-relative-34
Nov 10, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
mshabunin:fix-gst-relative-34

Conversation

@mshabunin

Copy link
Copy Markdown
Contributor

This pullrequest changes

Replaced g_filename_to_uri call with gst_filename_to_uri which handles relative paths correctly.

Test scenario:

cap = cv2.VideoCapture('test.mp4', cv2.CAP_GSTREAMER) # did not work - fixed
cap = cv2.VideoCapture('/home/user/test.mp4', cv2.CAP_GSTREAMER) # worked

@alalek alalek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@opencv-pushbot
opencv-pushbot merged commit fccf284 into opencv:3.4 Nov 10, 2019
@alalek alalek mentioned this pull request Nov 11, 2019
@mshabunin
mshabunin deleted the fix-gst-relative-34 branch July 14, 2020 17:15
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants