Title: ValueError: Parse the argument FAILED · Issue #4 · UsingNet/nvcodec-python · GitHub
Open Graph Title: ValueError: Parse the argument FAILED · Issue #4 · UsingNet/nvcodec-python
X Title: ValueError: Parse the argument FAILED · Issue #4 · UsingNet/nvcodec-python
Description: I am trying to encode videos frames, like from nvcodec import VideoSource, VideoDecoder, VideoEncoder import numpy as np import cv2 import ctypes if __name__=="__main__": video_stream = cv2.VideoCapture("00021.mp4") encFile = open("test....
Open Graph Description: I am trying to encode videos frames, like from nvcodec import VideoSource, VideoDecoder, VideoEncoder import numpy as np import cv2 import ctypes if __name__=="__main__": video_stream = cv2.VideoCa...
X Description: I am trying to encode videos frames, like from nvcodec import VideoSource, VideoDecoder, VideoEncoder import numpy as np import cv2 import ctypes if __name__=="__main__": video_stream = c...
Opengraph URL: https://github.com/UsingNet/nvcodec-python/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ValueError: Parse the argument FAILED","articleBody":"I am trying to encode videos frames, like \r\nfrom nvcodec import VideoSource, VideoDecoder, VideoEncoder\r\n\r\nimport numpy as np\r\nimport cv2\r\nimport ctypes\r\n\r\n\r\n\r\n\r\n\r\n \r\n \r\n```\r\n\r\nif __name__==\"__main__\":\r\n video_stream = cv2.VideoCapture(\"00021.mp4\")\r\n encFile = open(\"test.h264\", \"wb\")\r\n encoder = VideoEncoder(224, 224)\r\n\r\n while True:\r\n success, frame = video_stream.read()\r\n if not success:\r\n break\r\n frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)\r\n\r\n packets = encoder.encode(frame)\r\n print(packets)\r\n \r\n encFile.write(packets)\r\n \r\n \r\n \r\n encFile.close()\r\n```\r\n\r\nwhen I an runing the code, I am getting following error?\r\nValueError: Parse the argument FAILED! You should pass ABGR image numpy array by height*width*channel!\r\n","author":{"url":"https://github.com/rizwanishaq","@type":"Person","name":"rizwanishaq"},"datePublished":"2021-09-14T14:39:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4/nvcodec-python/issues/4"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:c0991c66-bca7-1d21-74c3-26dc5c7edeec |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA2E:19F937:C24FD7:F7D912:69914857 |
| html-safe-nonce | 30cf6d5ff37251fc7998f0e7361404259903bb99fef87b7e8aa95cbeb7f4a11b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTJFOjE5RjkzNzpDMjRGRDc6RjdEOTEyOjY5OTE0ODU3IiwidmlzaXRvcl9pZCI6IjkxODk3MjI3NTUzMjg0MzA5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c117577a0388058146fe7ca52eae5e3064d852c8f5636129091e4f3393bfd2b5 |
| hovercard-subject-tag | issue:996099937 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UsingNet/nvcodec-python/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad2d5f9587394a309749ca9407375c81847847cda4a85355e0313115928aa988/UsingNet/nvcodec-python/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad2d5f9587394a309749ca9407375c81847847cda4a85355e0313115928aa988/UsingNet/nvcodec-python/issues/4 |
| og:image:alt | I am trying to encode videos frames, like from nvcodec import VideoSource, VideoDecoder, VideoEncoder import numpy as np import cv2 import ctypes if __name__=="__main__": video_stream = cv2.VideoCa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rizwanishaq |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/UsingNet/nvcodec-python git https://github.com/UsingNet/nvcodec-python.git |
| octolytics-dimension-user_id | 23328403 |
| octolytics-dimension-user_login | UsingNet |
| octolytics-dimension-repository_id | 355603481 |
| octolytics-dimension-repository_nwo | UsingNet/nvcodec-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 355603481 |
| octolytics-dimension-repository_network_root_nwo | UsingNet/nvcodec-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width