Whishow
A python based online video streaming player
1. Install
pip install whishow
2. Usage
demo 1: Simple play
cmd:
python -m whishow <video_path_or_url>
e.g.
python -m whishow rtmp://mobliestream.c3tv.com:554/live/goodtv.sdp
demo 2: Multithreading based stream processing and frame playback in Python
from whishow import STREAM,PLAY
import keyboard
import threading
# init the stream reader, named stm.
stm = STREAM()
stm.init_state(url=url,
cache_size=10*60,
video_frame_quality=50)
# init the whishow player, and connect the audio/video stream of stm.
ply = PLAY()
ply.init_state(chunk_size=1,
video_frame_shift=20,
audio_fps=stm.AUDIO_FPS,
video_fps=stm.VIDEO_FPS,
Q_audio_play=stm.Q_audio_play,
Q_video_play=stm.Q_video_play,
asr_results=[])
# esc for exit
def engine():
while 1:
if keyboard.is_pressed('esc'):
print("exit ..")
break
time.sleep(0.1)
stm.running = False
ply.running = False
# stream reader
def stream():
stm.read(video_dst_frame_size=video_dst_frame_size,
is_play=True,
is_asr=False)
# stream palyer
def play():
ply.run()
p0 = threading.Thread(target=engine,args=())
p1 = threading.Thread(target=stream,args=())
p2 = threading.Thread(target=play,args=())
p0.start()
p1.start()
p2.start()
p0.join()
p1.join()
p2.join()
3. Contact us
Metadata
Release files for whishow 1.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| whishow-1.3.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for whishow-1.3.5-py2.py3-none-any.whl |
Release files / whishow-1.3.5-py2.py3-none-any.whl
| Download URL | whishow-1.3.5-py2.py3-none-any.whl |
|---|---|
| Size | 9.8 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c893423e908daf3457772779fe13851edbaa78e3795a5871ee479f6025292973
|
|
BLAKE2b-256 checksum How to use checksums |
7c57d9aaa94a8a67be0a87bddc8e392cf5829da51f9cb30e3e16de555d656b4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Security for whishow 1.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.