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

I need an alternative to the MJPG format #14

Open
nicolastrognot opened this issue Sep 13, 2015 · 1 comment
Open

I need an alternative to the MJPG format #14

nicolastrognot opened this issue Sep 13, 2015 · 1 comment

Comments

@nicolastrognot
Copy link

Hello,

I implemented your code (from capture_video.py) into my own Python script, I tried a lot of thing to edit the format (from MJPG to something else like avi or mp4). How can we record into the avi format ?

What I tried to edit:
Line 41: video.mjpg > video.avi
Line 26: fourcc='MJPG' > I tried a lot of codecs which were compatible with AVI format but no one was able to work. (from this list: http://www.fourcc.org/codecs.php)

I never succeeded to display the result on VLC

Sorry for my english, I'm French,

Thank you

@despdx
Copy link

despdx commented Jan 27, 2018

So, did you even get MJPG to play? I can't seem to decode it. I cannot even confirm the output file is MJPG.

BTW, the set_format doesn't accept any kwargs anymore, on the version I have, at least. So, I'm perhaps all of this is deprecated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants