uvjustin
414f167508
Remove pts adjustments in stream ( #42399 )
...
* Remove unnecessary pts adjustments
* Add comments
* Use -inf for initial last_dts to be more clear
* Use video first_pts as common adjuster in recorder
* Remove seek(0) before av.open
2020-11-16 15:13:33 -05:00
uvjustin
66dccd86bd
Modify wait timeout in stream ( #42794 )
...
* Set wait timeout to 40
* Use dynamic wait_timeout
* Catch error in container open
* Get restart times from const.py
* Fix test_stream_keepalive
2020-11-11 12:32:56 -05:00
springstan
a967f689c7
Remove unnecessary instances of dict.keys() ( #42518 )
2020-10-28 20:43:48 +01:00
uvjustin
f8d87bff16
Fix AVError and allow more missing DTS packets in stream ( #42277 )
...
* Fix AVError and allow more missing DTS in stream init
* Avoid recreating container demux iterator
* Relax missing dts requirement
* Fix spelling error
* Fix error message count
* Add timeout to av.open read
* Increase STREAM_TIMEOUT to 30
2020-10-24 22:55:12 -04:00
uvjustin
6a59e79bc6
Remove duplicated finalize_stream code in stream ( #42171 )
2020-10-21 23:36:54 +02:00
Colin Robbins
6f8e3d2544
Update stream integration for Python 3.9 which removed isAlive from threading in favor of is_alive ( #42051 )
...
Python 3.9 compact
2020-10-18 23:42:50 -04:00
uvjustin
ce0e08838f
Fix timestamp overflow error in stream ( #41951 )
2020-10-16 11:48:45 -04:00
uvjustin
9270585a44
Cap AVC profile level at 4.1 in stream master playlist ( #41592 )
...
* Cap AVC profile level at 4.1
* Use smaller multiplier in bandwidth calculation
2020-10-15 16:37:27 -04:00
uvjustin
1c6d0d138d
Adjust dts warning messages in stream ( #41467 )
...
* Adjust dts warning messages
* Wait for second packet with overflow dts condition
* Rename dts gap watch variable
* Remove out of order packet warning
2020-10-11 12:55:13 -04:00
uvjustin
6c18feb4ed
Allow only one packet with no dts in stream init ( #41129 )
...
* Allow only one packet with no dts in stream init
* Call finalize_stream() on exit
2020-10-11 12:52:51 -04:00
uvjustin
e85d1deddd
Return target duration of 1 when no segments ( #40518 )
2020-09-30 11:46:35 -04:00
uvjustin
5658abfaca
Log timestamp overflow in stream ( #39844 )
2020-09-30 11:45:59 -04:00
uvjustin
9a32e28574
Create master playlist for cast ( #40483 )
...
Co-authored-by: Jason Hunter <hunterjm@gmail.com>
2020-09-27 22:38:14 +02:00
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