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: patch-diff.githubusercontent.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:d800dbe1-bc56-8fe4-afb2-e706f37eecdc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CDFA:CDD1B:25CFCEB:3017AA6:6991A563 |
| html-safe-nonce | fc51cfe44cec837531b5c633def5333dc474548f012eb629b7a0438c31d8a1ed |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREZBOkNERDFCOjI1Q0ZDRUI6MzAxN0FBNjo2OTkxQTU2MyIsInZpc2l0b3JfaWQiOiI1MjIxODgzNzk2NDQ2NjE4OTc5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 93ef2f0b68a0e40cb1676521170e7e40b8ca6c3b8bad63683a194db85f0ada93 |
| 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