Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

OpenCV: FFMPEG: tag 0x34504d46/'FMP4' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)' #2

Open
hack-r opened this issue Sep 5, 2021 · 5 comments

Comments

@hack-r
Copy link

hack-r commented Sep 5, 2021

For the quick video Python example script:

OpenCV: FFMPEG: tag 0x34504d46/'FMP4' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'

appears to be the same or similar to https://stackoverflow.com/questions/57792837/opencv-ffmpeg-tag-is-not-supported-with-codec-id-12-and-format-mp4-mp4

I will try to work on it as well, but calling this out in case I don't follow through. Also I think the ipynb refers to an older non-existing version of the script that did not end in "_quick.py"

@hack-r
Copy link
Author

hack-r commented Sep 5, 2021

I replaced cv.VideoWriter_fourcc... with cv.VideoWriter_fourcc('m', 'p', '4', 'v') and it ran without error.

@mwilcox12014
Copy link

Env: Windows 11, anaconda 22.9 , python 3.11

fourcc = cv.VideoWriter_fourcc(*'mpv4')
sends the error:
OpenCV: FFMPEG: tag 0x3476706d/'mpv4' is not found (format 'mp4 / MP4 (MPEG-4 Part 14)')'

However below works without error:
cv.VideoWriter_fourcc('m', 'p', '4', 'v')

@Justinfungi
Copy link

i met the same issue. i have try *mp4v and m p 4 v both. Both of them are not working.

Can anyone explain the logit of the error and tell me how to fix it correctly

@pavlik-tikhomirov
Copy link

i met the same issue. i have try *mp4v and m p 4 v both. Both of them are not working.

Can anyone explain the logit of the error and tell me how to fix it correctly

mp4v and m p 4 v are the same thing ( is packing operator)
try *mpv4 exactly

@elyor04
Copy link

elyor04 commented Aug 8, 2023

you can also try *avc1

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

No branches or pull requests

5 participants