Giter Club home page Giter Club logo

Comments (4)

aureliencousin avatar aureliencousin commented on June 5, 2024

Same problem here, I tried different resolutions and they all seem to have encoding problems. The only one working so far for me is the default one (640*480)

from pistreaming.

adrianobarroso avatar adrianobarroso commented on June 5, 2024

I think is something related to byte size.

Like the standard starts with 640x480. So it works if you use 1280x960 that is twice the initial resolution.

from pistreaming.

waveform80 avatar waveform80 commented on June 5, 2024

Sorry for the long delay replying; there's a big clue as to why this is happening in the console output:

Initializing HAT
Initializing camera
Initializing websockets server on port 8084
Initializing HTTP server on port 8082
Initializing broadcast thread
Spawning background conversion process
Starting recording
/usr/lib/python3/dist-packages/picamera/encoders.py:544: PiCameraResolutionRounded: frame size rounded up from 1296x730 to 1312x736
  width, height, fwidth, fheight)))
Starting websockets thread
Starting HTTP server thread
Starting broadcast thread
192.168.80.198 - - [10/Sep/2017 11:31:01] "GET /index.html HTTP/1.1" 200 -
192.168.80.198 - - [10/Sep/2017 11:31:02] "GET /styles.css HTTP/1.1" 200 -
192.168.80.198 - - [10/Sep/2017 11:31:02] "GET /jsmpg.js HTTP/1.1" 200 -

Unencoded output from the Pi's camera module is always in 32x16 blocks and thus resolutions selected must be a multiple of these blocks. The rounding warning in the output provides the resolution that was rounded to. If you use that resolution instead (in this case 1312x736) it'll work happily (well, more or less - MPEG1 requires quite a lot of bandwidth and processing power at that resolution).

from pistreaming.

waveform80 avatar waveform80 commented on June 5, 2024

Closing as I think this is satisfactorily answered - do feel free to re-open if it's still not working for you!

from pistreaming.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.