Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3602338
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:44:02+00:00 2026-05-18T20:44:02+00:00

I am reading data from a special device that is producing around 20 MB/s

  • 0

I am reading data from a special device that is producing around 20 MB/s

/dev/dvb/adapter0/dvr0

I need to read the contents and copy to other fifos

    device_fd = os.open(video_device_file, os.O_RDONLY)
    while True:
        if jobm.has_jobs():
            chunk = os.read( device_fd, 1024 * 1000  )
            fifom.write2all(chunk)
        jobm.idle()

After running it for the whole night I received the following error:

[Errno 75] Value too large for defined data type

In the os.read line.

From google seems that is related to the c library and 32bit pointers but I don’t see how this can affect my python version that is a 64 bit one.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:44:02+00:00Added an answer on May 18, 2026 at 8:44 pm

    I don’t know what your jobm object is, I assume it’s created by you because this is the only Google result for a similar object, so correct me if I’m wrong.

    You seem to be opening the video device for reading, the video device is constantly producing video data, and instead of reading it, you’re idling. You don’t seem to be sending the device_fd to your jobm thing, so it can’t know if there’s activity on the fd, and so it is sleeping when you should be reading, which creates a buffer overflow.

    You need to always read data from device_fd if there is any available. Send the fd to the jobm, and make it utilize poll or select to look for activity on it.

    Edit: Excuse me, I missed a detail from your question. What I said still applies, but not as directly – you need to watch both your inputs and outputs, not only your outputs, for the reason that I’ve stated.

    If the fifos can’t handle the output, and as a result you miss a read on your device, you get the issue you’re getting. You need to either 1) create a buffer that holds up to several hundred MB of data in case a pipe is late for its writing, 2) drop packets. DVB apps should handle it if some part of the data is missing. You can also simply catch and ignore the exception, although it would lead to minor corruption and missing data in the output.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my C# application reads data from special USB device. The data are read as
When reading data from the Input file I noticed that the ¥ symbom was
I'm reading data from a device which measures distance. My sample rate is high
We use a data acquisition card to take readings from a device that increases
I'm reading data from a table( from a MySQL Database) with Hibernate SQL Query.
I'm reading XML data from the HttpServletRequest in my servlets doPost() and passing the
Right now, I'm particularly interested in reading the data from MP3 files (ID3 tags?),
How much data should be in a table so that reading is optimal? Assuming
I'm developing an application that reads data from a serial port and sends it
I have a C#.Net application that accesses data from a commercial application backed by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.