Ask Your Question
0

Can't open video file in android

asked 2019-03-18 21:25:37 -0600

luoyu510183 gravatar image

I tried to open some MP4 videos with VideoCapture, but it failed. I also tried some AVI videos, it resulted in the same. I can use Android APIs to save mp4 videos and open them. Why OpenCV can't? My OpenCV library is OpenCV-344-Android and OS is Android 8.1.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
1

answered 2019-03-19 02:00:14 -0600

berak gravatar image

opencv's android sdk has no backend to read or write video files(like ffmpeg or gstreamer).

there is a current pr to change that, but for now, you simply can't do this from opencv.

edit flag offensive delete link more

Comments

Thx for your comment! I'm trying to use the Android APIs instead.

luoyu510183 gravatar imageluoyu510183 ( 2019-03-19 03:05:40 -0600 )edit
0

answered 2019-05-11 14:34:47 -0600

Afflospark gravatar image

I don't think so, if opencv has anything to handle such video files.

Please keep updating here, if you get anything about this. I would also love to hear that.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-03-18 21:25:37 -0600

Seen: 980 times

Last updated: May 11 '19