Ask Your Question
0

Open different video with different format

asked 2013-11-18 05:54:06 -0600

Hello every one, I am a newbie to opencv. Without any formality let me ask my query. It is about the format of the video I want to process. Can I play with video formats (like .mts) other than .avi videos in openCV? If yes then how? What are the function that I need to learn about? And if no the what is the way (other than using a conventional video conversion software )? AND MOST IMPORTANT THING IS THAT MY INPUT VIDEO FORMAT IS .mts. Thanks :)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-11-20 06:27:45 -0600

Actually, I know that OpenCV uses ffmpeg library in linux and windows, which makes use of fourcc codecs internally. The different codecs can be found here. However this is still dependent of the container that is used for your video. I do know from experience that openCV has no problem in opening a avi, mp4, mpeg and raw container. I guess it is a simple go and try out using the VideoCapture functionality.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-11-18 05:54:06 -0600

Seen: 2,473 times

Last updated: Nov 20 '13