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

Vertically Squished Video #76

Open
justinchevrier opened this issue Mar 26, 2015 · 3 comments
Open

Vertically Squished Video #76

justinchevrier opened this issue Mar 26, 2015 · 3 comments

Comments

@justinchevrier
Copy link

I've run into an issue using a BC-H16480A card. The encoders (I've tried the first 2 or 3) all output video that is squished vertically so that it only takes up about half the proper height and the remainder is filled with corruption/grey space. This happens in Zoneminder (1.28.0) as well as ffmpeg (version 2.6.1) with both H264 and MJPEG. I'm running code from head, but I've also tried going to back 2.4.11 with no change. Kernel version is 3.18.9 on AMD64 and the distribution is Gentoo. Cameras are NTSC at 704x480 resolution. I've been able to apply video filters via ffmpeg to crop and stretch the image, but I'm not sure if I'm losing detail, it looks not too bad though. Here is the command I used to do this:

ffmpeg -f v4l2 -input_format h264 -standard ntsc-m -s 704x480 -i /dev/video1 -vf "crop=704:240:0:0",scale=iw:ih*2 test.mp4

Screenshot:
00001-capture

Thoughts?

Thanks guys

@curtishall
Copy link
Member

Are your cameras PAL or NTSC?

@justinchevrier
Copy link
Author

They are NTSC.

@justinchevrier
Copy link
Author

I should add that if I capture video from the output device (/dev/video0) the video looks correct.

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