jwatte
Posts: 203
Joined: Sat Aug 13, 2011 7:28 pm

Why does raspividyuv hang?

Mon Jul 31, 2017 4:14 am

I pulled userland from github today, and built it.
I'm using a Raspberry Pi 2, with a camera 1.3.
When running raspivid, it captures/previews fine.
When running raspividyuv, it hangs after capturing the first frame!

Code: Select all

[email protected]:/usr/local/src/userland $ build/bin/raspivid -w 512 -h 384 -p 0,0,512,384 -t 0 -fli 60hz
#works fine

[email protected]:/usr/local/src/userland $ build/bin/raspividyuv -w 512 -h 384 -p 0,0,512,384 -t 0 -fli 60hz
#hangs after one frame
I'm wondering, because I'm also trying to write my own MMAL client program, and it, too, hangs after one or two frames.

jwatte
Posts: 203
Joined: Sat Aug 13, 2011 7:28 pm

Re: Why does raspividyuv hang?

Mon Jul 31, 2017 4:41 am

I also tried with a v2.1 camera, and it has the same behavior: hanging on raspividyuv but working with raspivid.
I'm using revision 9aab1498b531b50585b206232d6baea64c0789f7 from github, and a recent raspbian: Linux robot-raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5668
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: Why does raspividyuv hang?

Thu Jul 19, 2018 1:59 pm

Old thread I know, but someone else has just linked to it.
You haven't specified an output file, and the code unconditionally enables the capture port. The camera component is therefore taking a capture on that port and waiting for a buffer that never comes to put the image in.
I will do a bug fix, but otherwise add a -o filename option and it'll be happy.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
Please don't send PMs asking for support - use the forum.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Return to “Troubleshooting”

Who is online

Users browsing this forum: Zenron and 44 guests