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

Trouble when starting fmp4streamer #15

Open
jpelletier opened this issue Aug 27, 2023 · 3 comments
Open

Trouble when starting fmp4streamer #15

jpelletier opened this issue Aug 27, 2023 · 3 comments

Comments

@jpelletier
Copy link

Platform: Raspberry pi 2W
OS: Raspberry Pi, Bullseye
Camera v1.3
Hardware works fine
Camera autodetect = 1

Configuration file:
fmp4.txt

Here is the messages displayed when running fmp4streamer
Capture d’écran de 2023-08-27 06-07-48

How can I make it run?

@soyersoyer
Copy link
Owner

If you are using Bullseye, please read the Readme's Raspberry section

@jpelletier
Copy link
Author

If you are using Bullseye, please read the Readme's Raspberry section

After enabling legacy support, I got this:
python fmp4streamer.py
Waiting for the first h264 frame...Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
self.run()
File "/home/slicer/Public/src/fmp4streamer-3.4.7/v4l2camera.py", line 298, in run
self.start_capturing()
File "/home/slicer/Public/src/fmp4streamer-3.4.7/v4l2camera.py", line 268, in start_capturing
self.capture_loop()
File "/home/slicer/Public/src/fmp4streamer-3.4.7/v4l2camera.py", line 244, in capture_loop
ioctl(self.fd, v4l2.VIDIOC_QBUF, buf)
OSError: [Errno 14] Bad address

@TobiasFriberg
Copy link

TobiasFriberg commented Nov 9, 2023

I'm getting a similar error

WARNING:root:Couldn't read fmp4streamer.conf, using default config
Waiting for the first h264 frame...Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
    self.run()
  File "/home/pi/fmp4streamer-3.4.7/v4l2camera.py", line 298, in run
    self.start_capturing()
  File "/home/pi/fmp4streamer-3.4.7/v4l2camera.py", line 267, in start_capturing
    ioctl(self.fd, v4l2.VIDIOC_STREAMON, struct.pack('I', v4l2.V4L2_BUF_TYPE_VIDEO_CAPTURE))
OSError: [Errno 22] Invalid argument

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

3 participants