element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
AMD
  • Products
  • Manufacturers
  • AMD
  • More
  • Cancel
AMD
Forum Problem with PYNZ-Z2 and HDMI output from camera
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join AMD to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 26 replies
  • Answers 16 answers
  • Subscribers 23 subscribers
  • Views 7722 views
  • Users 0 members are here
  • pynq z2
  • hdmi
  • pynq
  • pynqstarter
Related

Problem with PYNZ-Z2 and HDMI output from camera

Fred27
Fred27 over 5 years ago

I'm currently making sure I'm in a good position to hit the ground running with the upcoming PYNQ-Z2 workshops. I bought the recommended kit including an Apeman A77 camera and thought I'd just have a quick poke around in advance. I ran through the "getting started" and the Pynq 2.5 image includes some simple HDMI examples. (I hope I'm not jumping too far ahead, but like to be prepared.)

 

Anyway, as I start to run the HDMI example I get a kernel died error (as shown). You can see on screen what's been run. This is just wiring HDMI out to show what's on HDMI in. The error is completely repeatable. Nothing noteworthy in /var/log/jupyter.log to give any clue.

image

 

As quick Google suggested that maybe the image is too high resolution, and when I checked the camera on my TV it outputs 1080p at 60fps regardless of the resolution of video being captured. Could 1080p be too much?  Time to switch to a Raspberry Pi 4 where I can change resolution properly. The above example ran quite happily with the Pi at a lower resolution, but surprised me when it also ran using the Pi at 1920x1080 at 60fps too.

 

Is this camera (Apeman A77) compatible with the HDMI on the PYNQ-Z2? I'd have expected it to be as it was the recommended kit and the Crosstour one listed now is essentially the same model.

 

I'll try to do more digging into any subtle differences between the HDMI output of the Pi and the camera, but all I have is a TV that shows some info on the input. Anyone else have any ideas?

  • Sign in to reply
  • Cancel

Top Replies

  • beacon_dave
    beacon_dave over 5 years ago +3 suggested
    Are you aware that the HDMI out IP provided in the PYNQ-Z2 the base overlay doesn't fully support 1080p video ? https://pynq.readthedocs.io/en/v2.5.1/pynq_overlays/pynqz2/pynqz2_base_overlay.html#hdmi…
  • Fred27
    Fred27 over 5 years ago +3
    Thanks for all your help beacon_dave My TV reports that the Pi and the camera are outputting the same format - 1080p60, sYCC601 colourspace, 8-bit depth, and YCbCr 4:2:2 pixel format. I tried connecting…
  • Fred27
    Fred27 over 5 years ago in reply to beacon_dave +2 suggested
    I wasn't aware of those details. Maybe that's it - a borderline implementation of 1080p where output from the Pi 4 works and the camera doesn't. If that's the case it's frustrating that a recommended camera…
  • ralphjy
    0 ralphjy over 5 years ago

    Hi Fred,

     

    I saw this discussion but I haven't used my PYNQ-Z2 in a while and I'd never used it with an HDMI source.  Since I've only tried PYNQ V2.5 with my Ultra96-v2 I thought I should try it out with the PYNQ-Z2 before the workshop.

     

    I have an Apeman A80 and I tried it out with that same base_overlay_video notebook that you tried.  I have the camera resolution set for FHD P60 and it seems to work fine.

     

    Here's the image capture of my desktop from further down the notebook:

    image

     

    The only time I killed the kernel was when I tried to execute the following cell before the base overlay had completed loading (I wasn't paying attention...).

     

    Just thought that I'd let you know that my camera is working.

     

    Ralph

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Fred27
    0 Fred27 over 5 years ago in reply to ralphjy

    I did try COLOR_IN_YCBCR but with the earlier example. I'll try with that one when I get a chance but as it blows on hdmi_in.configure() I expect it will be the same.

     

    Glad to hear your A80 is working. It's a later version of my A77 so maybe there are a few improvements. I can see already you've turned off the on screen display of battery level, etc. which I can't do on the A77.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • ralphjy
    0 ralphjy over 5 years ago in reply to Fred27

    The setting to turn off the display is waaaaaaay down the list.  It is called OSD (On Screen Display).  I'm sure you have that setting.  The output would be unusable without it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Fred27
    0 Fred27 over 5 years ago in reply to ralphjy

    That setting is definitely not there on the A77. image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 5 years ago

    Status update.

     

    The Apeman A66 camera I ordered has since completed its tour of Europe (and the English Lake District) and finally ended up on my door step this afternoon.

     

    That's where the good news ends.

     

    Unfortunately the A66 doesn't appear to work with the PYNQ-Z2 as a live video source, so another one to avoid for this workshop.

     

    The best I was able to get it to do was to display some low quality still photographs from its microSD card via the PYNQ-Z2 and only after first establishing the video connection on the PYNQ-Z2 using a low-end CP-255D video scaler as an HDMI source first.

     

    It looks like the micro HDMI output on the A66 camera is only intended for playback of still photos from its microSD card. For live video, it would appear that you need to use the USB webcam mode.

     

    The A66 camera was able to detect the PYNQ-Z2 initialising the HDMI interface as it switched to external display mode whilst executing the code in the Jupyter notebook.

     

    In addition, the PYNQ-Z2 demo code wouldn't work with the HDMI solid state media player or the HDMI DVD player I had to hand either, although I didn't try connecting either of them after establishing the video connection with the scaler.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • ralphjy
    0 ralphjy over 5 years ago in reply to beacon_dave

    It seems odd that the A80 would work and the A66 and A77 wouldn't, but I guess they could have changed the interface.  It seems really odd that the A7X cameras don't have the ability to shut off the OSD.  I noticed that the A66 does have that setting.  Are we missing something?  I haven't seen any complaints about it but I also haven't seen any reviews using the HDMI out.

     

    I tried the OKCAM app on my Android tablet and it's painful to use, but it does work to operate the camera remotely.

     

    I also did verify that if I run the camera at a higher resolution than 1080p60 that I do kill the kernel.

     

    I'll consider myself fortunate that my camera seems to work.  I'll keep my fingers crossed for the workshop.

     

    My tablet seems to have an HDMI output so I'm also going to give that a try.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 5 years ago in reply to ralphjy

    Yes, it is odd that there appears to be significant differences in the operation between the various camera models.

     

    The OSD option is there on the A66. There are 5 screens of option settings but nothing obvious to get live camera video out of the HDMI port.

     

    As soon as the PYNQ-Z2 is configured to use the HDMI ports, the camera's on-screen display briefly switches from live video mode to photo viewer mode then turns itself off. Once displaying on HDMI output, the camera buttons only allow you to cycle through the stored images; there doesn't appear to be any way to access the settings menu or put it back in camera mode. How does this behaviour compare with the A80 ? Does the A80 automatically go into photo viewer mode or does it remain in the mode the camera was in before connecting the display ? Once viewing on the HDMI display, do all the camera buttons on the A80 operate the same as they do when using the internal display ?

     

    Does the A80 have the USB webcam mode ? I'm just wondering if some HDMI features were lost when they implemented that feature. Something I need to try is what happens on the HDMI output when the camera is in USB webcam mode. You however need the camera to be connected to a host computer via USB before you get the settings for mass storage or webcam use.

     

    What doesn't really help is all the auto standby features of modern equipment. The camera needs to see the EDID or CEC signal from the display device to wake up its HDMI output. The display needs to see a valid sync signal from the source device to come out of standby. PYNQ expects to see a stable input signal to avoid killing the kernel. Ideally could do with a couple of PYNQ notebooks to test one half at a time, e.g. camera to PYNQ-Z2 and PYNQ-Z2 to display, with options for the PYNQ-Z2 to output EDID info from its HDMI input, or to pass the EDID through from the display via its HDMI output.

     

    I have a Kodak PlaySport action cam which has a mini HDMI output but unfortunately it has become rather temperamental and no longer reliably powers up. Shame as it was a robustly built camera otherwise.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Fred27
    0 Fred27 over 5 years ago

    I'm very happy with my Raspberry Pi as a HDMI source. It works fine, is very and unsurprisingly I have one or two lying around.

     

    Luckily, my boys seem to have taken to the A77 and intend to be YouTube superstars. image It already has a new home.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 5 years ago in reply to ralphjy

    I was looking through the Q&A on Amazon for the A80 camera and spotted this:

    image

    which sounds the same as what I'm experiencing on the A66 version of the camera. 

     

    It looks like current versions of the camera no longer support the live video out on HDMI feature that previous versions supported. Does your A80 have the 2" screen (diagonal) or the smaller 1.8" one, as this may be an indicator of when features changed ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Fred27
    0 Fred27 over 5 years ago in reply to beacon_dave

    My A77 has a 2" screen. It does support live video out (with some OSD constantly overlaid on top) and my TV is happy to display this, just not the PYNQ-Z2. To be honest, I've given up on the camera as an input for these workshops. It's fine as a camera though.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
<>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube