-
Notifications
You must be signed in to change notification settings - Fork 403
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
height not divisible by 2 #58
Comments
你后来解决这个问题了吗, 我遇到了相似的情况 |
same problem |
any news on this? |
Dont care, use cv2.imencode(".jpg", frame)[1].tobytes() to replace frame.tobytes() |
input_frame[1] 换成(int)(input_frame[1]/2)*2 |
我替换了之后,产生下面的报错: |
有解决的办法吗 |
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
[libx264 @ 0x55714fd995c0] height not divisible by 2 (400x711)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
Traceback (most recent call last):
File "demo_video.py", line 132, in
writer(posed_frame)
File "demo_video.py", line 108, in call
self.ff_proc.stdin.write(frame.tobytes())
BrokenPipeError: [Errno 32] Broken pipe
请教下711是怎么来的呢 输入的视频分明长宽都是偶数
The text was updated successfully, but these errors were encountered: