Comments (5)
I've found a usable way around it (at least for my needs). I put an if statement around the broadcast output write to basically do it every 2nd time (increment an integer or alternate a boolean) and also cut the buffer read size in half in the broadcast thread. This effectively records and displays at 12 fps. The video playback speed is 2x though since it still plays at 24 fps. So 1 minute of recording makes a 30 second video. For my purposes this is fine since the video size is reduced by half and it makes it easier to sift through hours of footage as it runs faster.
from pistreaming.
Hmm, I can't test right now but for when I get a second, what framerate are you trying? (and I assume you're modifying the framerate by tweaking the FRAMERATE= line at the top of server.py rather than anywhere else?)
from pistreaming.
Yes. I set it to several, but specifically I'm trying somewhere in the 12-15 range. I am using the broadcasting thread to save the data to a file as well and to keep the file size down I want to reduce the frame rate. Bit rate is more important than frame rate in my case. I did look in the jsmpg.js file and noticed the PICTURE_RATE array does not go below 23.976, so I assume that is the limiting factor.
from pistreaming.
Ah, found it - avconv bombs out with the following error (which you don't see because its output is suppressed):
[mpeg1video @ 0x10e7c20] MPEG1/2 does not support 15/1 fps
The above was when I attempted 15fps but you get much the same for anything below 24fps. I don't know the MPEG1/2 standards well enough to know what frame rates are supported, but I'd hazard a guess that they bottom out at 24fps from what you've described.
from pistreaming.
Heh - well, it's a cunning method! Glad you found something that'll work 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.