uvjustin
8e0bb92c79
Disable audio in stream when audio stream profile is None ( #40521 )
2020-09-24 14:35:52 +02:00
uvjustin
8d3e4b6b3f
Ignore packets with missing dts in peek_first_pts ( #40299 )
2020-09-20 21:26:24 -04:00
uvjustin
b0ba0e77f8
Remove skip_sidx container option in stream ( #39970 )
...
* Remove skip_sidx container option
* Add comment
2020-09-12 15:19:37 -04:00
uvjustin
9b29d09d45
Set output timescale to input timescale ( #39946 )
2020-09-11 14:07:45 -04:00
uvjustin
4ee5a29bc0
Disable audio for HLS or mpegts input ( #39906 )
2020-09-10 15:55:55 -04:00
Jason Hunter
1a78d96014
allow creating directories from camera snapshot, stream record, and tensorflow file out ( #39728 )
2020-09-06 18:54:24 -04:00
uvjustin
c9a4deb118
Set log level for libav.mp4 in stream ( #39719 )
...
Also add @uvjustin to codeowners
2020-09-06 20:46:36 +02:00
Chris Talkington
a0663d84d2
fix black for stream ( #39622 )
2020-09-03 11:54:04 -05:00
Eric Severance
9baa7c6c24
Restart keepalive streams ( #38863 )
2020-09-03 12:22:00 -04:00
Ville Skyttä
b4bac0f7a0
Exception chaining and wrapping improvements ( #39320 )
...
* Remove unnecessary exception re-wraps
* Preserve exception chains on re-raise
We slap "from cause" to almost all possible cases here. In some cases it
could conceivably be better to do "from None" if we really want to hide
the cause. However those should be in the minority, and "from cause"
should be an improvement over the corresponding raise without a "from"
in all cases anyway.
The only case where we raise from None here is in plex, where the
exception for an original invalid SSL cert is not the root cause for
failure to validate a newly fetched one.
Follow local convention on exception variable names if there is a
consistent one, otherwise `err` to match with majority of codebase.
* Fix mistaken re-wrap in homematicip_cloud/hap.py
Missed the difference between HmipConnectionError and
HmipcConnectionError.
* Do not hide original error on plex new cert validation error
Original is not the cause for the new one, but showing old in the
traceback is useful nevertheless.
2020-08-28 13:50:32 +02:00
Franck Nijhof
1c2ebdf307
Upgrade black to 20.8b1 ( #39287 )
2020-08-27 13:56:20 +02:00
uvjustin
dc2d0b9297
Add audio to stream ( #38846 )
...
* Add audio to stream component
* Use container options to do most fmp4 formatting
* Add test for treatment of different audio inputs
* Add test for treatment of different audio inputs
* pcm_mulaw frames should be s16
* Use seek to get BytesIO length
* Remove unused utcnow
* Remove peek_next_audio_pts
* only demux audio and video packets - ignoring data and subtitle streams
Co-authored-by: Jason Hunter <hunterjm@gmail.com>
2020-08-19 23:18:54 -04:00
Eric Severance
4d1ef02802
Stream clients operate on a copy of the intnernal self._outputs dict ( #38766 )
2020-08-11 17:20:43 -04:00
uvjustin
5355fcaba8
Add H.265 support to stream component ( #38125 )
...
* Add H.265 support to stream component
* Change find_box to generator
* Move fmp4 utilities to fmp4utils.py
* Add minimum segments and segment durations
* Remove MIN_SEGMENTS
* Fix when container_options is None
* Fix missing num_segments and update tests
* Remove unnecessary mock attribute
* Fix Segment construction in test_recorder_save
* fix recorder with lookback
Co-authored-by: Jason Hunter <hunterjm@gmail.com>
2020-08-11 17:12:41 -04:00
J. Nick Koston
57883ec10a
Fix variable error during stream close ( #38417 )
2020-07-30 16:58:17 -10:00
Ville Skyttä
ac0dbb17af
Attrs cleanups ( #37849 )
2020-07-14 10:30:30 -07:00
Paulus Schoutsen
9ac1475251
Simplify logger integration ( #37780 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2020-07-13 10:20:18 -07:00
Dermot Duffy
eb6fda8387
Allow an extra packet without dts (for Arlo camera streaming) ( #37792 )
...
* Allow 1 packet without dts. See https://github.com/twrecked/hass-aarlo/issues/151 .
* Reset boolean once a packet with dts is found.
* Fix no-else-continue lint error.
2020-07-13 09:47:33 -04:00
Franck Nijhof
53545c984b
Log lines do not end with a full stop ( #37527 )
2020-07-05 23:04:19 +02:00
Patrick Kishino
e80fac36d8
Bumped PyAv to 8.0.2 to fix mac os stream issue ( #36396 )
2020-06-03 08:00:50 +02:00
Jason Hunter
8cd905487e
Bump pyAV and close unclosed outputs ( #35960 )
...
* bump pyAV and close unclosed outputs
* skip stream from coverage for now
* fix divide by zero error
2020-05-22 18:13:37 +02:00
Jason Hunter
40d3d64027
Fix recording duration flag ( #34648 )
2020-04-24 14:18:58 -07:00
Franck Nijhof
24840b54ac
Add yamllint (in pre-commit and CI) ( #33676 )
...
* Add yamllint (in pre-commit and CI)
* Fix linting for all YAML files
* Bump and add it to requirements
* Fix gen_requirements for pre-commit, remove 'v' from version
2020-04-05 10:33:45 +02:00
Rami Mosleh
e1cc2acdf9
Specify rtsp_transport for Onvif Camera ( #31918 )
...
* specify rtsp_transport for onvif camera
* remove used variable
* Update homeassistant/components/stream/__init__.py
Co-Authored-By: Paulus Schoutsen <paulus@home-assistant.io>
* change options to stream_options
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-03-06 09:59:57 -08:00
Christian Clauss
df7d2b3aeb
Fix typos found by codespell ( #31243 )
...
* Fix typos found by codespell
* Fix typos found by codespell
* codespell: Furture ==> Future
* Update test_config_flow.py
* Update __init__.py
* Spellcheck: successfull ==> successful
* Codespell: unsuccesful ==> unsuccessful
* Codespell: cant ==> can't
* Codespell: firware ==> firmware
* Codespell: mimick ==> mimic
2020-01-31 08:33:00 -08:00
Franck Nijhof
bfa0edaf92
Migrate Integration Quality Scale from docs to manifest: internal ( #30551 )
2020-01-07 20:58:49 +01:00
Franck Nijhof
a84741392b
Format all manifests with prettier ( #30521 )
2020-01-06 21:28:23 +01:00
Ville Skyttä
130571c478
Remove no longer needed auth.util, use secrets instead ( #29861 )
2019-12-12 16:46:33 +01:00
springstan
94b6cbc571
Move imports to top for stream ( #29548 )
2019-12-08 09:48:28 +01:00
Pascal Vizeli
841ce8ade9
Fix uvloop warning ( #29341 )
2019-12-03 11:08:28 +01:00
Paulus Schoutsen
bb5da77f2c
Import shuffle ( #27935 )
...
* Simplify persistent_notification ws command
* Move cors import inside setup
* Fix stream imports
2019-10-19 12:44:51 -07:00
Michał Mrozek
9aa28dfd54
move imports in stream component ( #27647 )
2019-10-14 14:20:18 -07:00
Moritz Fey
da29c1125f
add content for services.yaml for ccomponent stream ( #27610 )
2019-10-13 22:13:31 -07:00
Franck Nijhof
c7da781efc
Update documentation link URL for integrations in all manifests ( #27114 )
2019-10-02 09:25:44 -07:00
Franck Nijhof
445c741b30
Use literal string interpolation in integrations R-S (f-strings) ( #26392 )
2019-09-03 21:14:39 +02:00
Paulus Schoutsen
9b3aa9bbd1
Remove uvloop from default install and warn about stream+shell_command ( #25929 )
...
* Add warning about uvloop and shell_command
* Remove uvloop from docker files"
* Add ffmpeg
2019-08-15 14:11:39 -07:00
Ville Skyttä
a54ade1189
Spelling fixes ( #25666 )
2019-08-02 23:20:06 +02:00
Paulus Schoutsen
4de97abc3a
Black
2019-07-31 12:25:30 -07:00
Franck Nijhof
31f569ada9
Batch of Component(s) -> Integration(s) ( #24972 )
2019-07-05 15:24:26 -07:00
Paulus Schoutsen
c296e9b9bb
Update owner stream integration
2019-06-23 12:00:06 -07:00
droopanu
f87209605b
Add a TCP timeout of 5 seconds to ffmpeg ( #23617 )
...
Add a TCP timeout of 5 seconds to ffmpeg to fix stream getting stuck when network connectivity is lost
https://github.com/home-assistant/home-assistant/issues/22741
2019-05-05 20:59:56 -04:00
Paulus Schoutsen
a52f96b23a
Add stub services.yaml and make validation mandatory ( #23213 )
2019-04-18 15:13:35 -07:00
cgtobi
2c07bfb9e0
Remove dependencies and requirements ( #23024 )
...
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit fe7171b4cd
.
* Remove dependencies and requirements
* Revert "Remove dependencies and requirements"
This reverts commit 391355ee2c
.
* Remove dependencies and requirements
* Fix flake8 complaints
* Fix more flake8 complaints
* Revert non-component removals
2019-04-12 10:13:30 -07:00
Jason Hunter
43487aa0d6
Stream Timestamp Fixes ( #22912 )
...
* reset timestamps for streams that do not do so when first requested
* update inline comments to be more descriptive
2019-04-08 23:24:51 -07:00
Jason Hunter
8c657d4254
use the input stream codec as the template for the output streams ( #22747 )
2019-04-04 23:40:22 -07:00
Paulus Schoutsen
cfe4cf30ad
Add manifests ( #22699 )
...
* Add manifests
* Update auto name
* Update codeowners
* Add requirements from platforms
* Minor cleanup
* Incorporate changes from awarecan PR
2019-04-03 21:14:45 -07:00
Tobias Sauerwein
048b100eea
Clean up docstrings ( #22679 )
...
* Clean up docstrings
* Fix long lines
* Fix more docstrings
* Fix more docstrings
* Fix more docstrings
2019-04-03 17:40:03 +02:00
Jason Hunter
26726af689
Stream Record Service ( #22456 )
...
* Initial commit of record service for live streams
* fix lint
* update service descriptions
* add tests
* fix lint
2019-03-27 21:47:07 -07:00
Jason Hunter
bad0a8b342
Camera Preferences + Preload Stream ( #22339 )
...
* initial commit for camera preferences and preload stream
* cleanup and add tests
* respect camera preferences on each request stream call
* return the new prefs after update
2019-03-26 08:31:29 -04:00
Jason Hunter
baa4945944
reset unsub to None on timeout ( #22404 )
2019-03-26 08:39:09 +01:00