Comments (4)
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.
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.
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.
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)
- Syntax Error
- Audio Enhancement Suggestion !!! HOT 2
- IPv6 support missing?
- Taking stills HOT 3
- git clone fails with gnutls_handshake() failed error in the push function HOT 1
- Rasbian Buster
- python3-ws4py The following packages have unmet dependencies: python3-ws4py : Depends: python3:any (>= 3.3.2-2~) HOT 1
- [Question] How "low latency" HOT 2
- after Exit via Ctrl+C, Start fail again.
- BrokenPipeError After Refreshing Web Page
- Trying to get working on a public website
- Getting error in Raspberry pi zero w
- hello! ctr+C Stopping recording .Is there another way to stop recording?thank you!
- Change of resolution produces script failure
- Segmentation fault HOT 1
- What is the version of `jsmpg.js` in the repo? HOT 1
- Autostart at reboot HOT 3
- How do I save a video to my hard drive
- Script does not fully close on CTRL-C
- Webpage cannot be reached HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pistreaming.