Raspberry Vitaly
Posts: 6
Joined: Thu Apr 27, 2017 7:02 am

Ble with record video

Mon Jul 24, 2017 8:07 am

Hello,
When I try to run the command:
sudo ffmpeg -f video4linux2 -i /dev/video0 -video_size 640x480 -r 25 output.avi
to record video.

In this time,I try to connect with Bluetooth.

The BT cannot connect.
the exception I get is:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Did you encounter with this?
Do you have a clue what can be done?

Thanks

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 17867
Joined: Sat Jul 30, 2011 7:41 pm

Re: Ble with record video

Mon Jul 24, 2017 8:32 am

I'm guessing that the ffmpeg commandis taking up all the CPU timne, which is stopped the BT from responding in a sane time. What does 'top' say?

Also, why are you running it under sudo? I don't think that is necessary.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

Raspberry Vitaly
Posts: 6
Joined: Thu Apr 27, 2017 7:02 am

Re: Ble with record video

Mon Jul 24, 2017 9:04 am

top result:
1156 root 20 0 299860 197172 137736 S 80.6 20.9 40:21.35 ffmpeg
80.6 % cpu and 20.9 % mem.

all the other processes take less than 1%.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 17867
Joined: Sat Jul 30, 2011 7:41 pm

Re: Ble with record video

Thu Jul 27, 2017 2:22 pm

Can you run ffmpeg as a normal user? Does that make any difference?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

Danielya
Posts: 15
Joined: Thu May 04, 2017 12:25 pm

Re: Ble with record video

Sun Jul 30, 2017 3:00 am

Hi,
I'm on Vitaly's team so answering on his behalf...

Running the commands without sudo does not make any difference

KyysmaWen
Posts: 6
Joined: Mon May 15, 2017 12:57 pm
Location: Россия

Ble with record video

Thu Aug 03, 2017 4:56 pm

Thanks. Need to get back out there and make and catch some more. Work has kept me off the water the last few weeks.

Danielya
Posts: 15
Joined: Thu May 04, 2017 12:25 pm

Re: Ble with record video

Sun Aug 13, 2017 8:39 am

Hi,
Any news?

Return to “Camera board”

Who is online

Users browsing this forum: No registered users and 14 guests