timvideos / HDMI2USB-litex-firmware

A version of the HDMI2USB firmware based around LiteX tools produced by @Enjoy-Digital (based on misoc+migen created by @M-Labs)
https://hdmi2usb.tv
BSD 2-Clause "Simplified" License
145 stars 71 forks source link

Support video capture from Canon HV30 cameras #132

Open mithro opened 9 years ago

mithro commented 9 years ago

Linux Australia owns 4 (maybe 5?) Canon HV30 cameras. We would like to use them with the HDMI2USB. Sadly they only 1080i60 on their HDMI output.

Stage 1 - Allow capture of 1080i60 signal

The camera however does support 1080p24 and 1080p30 internally and will write this progressive format to the HDV tape using pulldown. This means that it is likely using a similar pulldown method to generate the HDMI signal.

Steps to proceed;

mithro commented 9 years ago

http://eugenia.queru.com/2008/06/29/basic-canon-hv20hv30-knowledge/

mithro commented 9 years ago

http://the-gadgeteer.com/2009/08/10/canon-vixia-hv30-hd-camcorder-review/

mithro commented 9 years ago
enjoy-digital commented 8 years ago

HV30 is now working with Opsis (video_mode 12). It seems to always output 720x480 but probably in progressive for DV mode and pulldown for HD modes.

Not sure it will be easy to get HD from these cameras, do you really need 720p? (At least it will be too short to implement pulldown in hardware and doing it in software will probably not be possible: for that the encoder would need to be tightly synchronized with video input).

mithro commented 8 years ago

@enjoy-digital Looks like your camera is currently in NTSC mode (720x480@60Hz) can you also test in PAL mode (you'll need the tool at http://nextdayvideo.com.au/HVhack.rar to switch your camera).

mithro commented 8 years ago

@enjoy-digital After putting my camera into NSTC mode. I did managed to get some output from my HV30 but it is horrible mangled. https://goo.gl/photos/icLZAX5t7CnN12GD9

The status sometimes shows 720x0 or 720x something else, but not consistently.

Process for using the HVHack thing above;

mithro commented 8 years ago
HDMI2USB>debug pll
framebuffer PLL:
0006 0008 0000 4400 1708 0097 0501 8288 4201 0d90 00a1 0111 1004 2028 0802 2800 0288 8058 020c 0200 1210 400b fc21 0b21 7f5f c0eb 472a c02a 20b6 0e96 1000 d6ce 
dvisampler0 PLL:
0006 0008 0000 4400 1718 008e 0501 8288 4201 0d90 00a1 0111 1004 2028 0802 2800 0288 8058 020c 0200 1210 400b fc21 0b21 7f5f c0eb 472a c02a 20b6 0e96 1000 d6ce 
dvisampler1 PLL:
0006 0008 0000 4400 1708 008e 0501 8288 4201 0d90 00a1 0111 1004 2028 0802 2800 0288 8058 020c 0200 1210 400b fc21 0b21 7f5f c0eb 472a c02a 20b6 0e96 1000 d6ce