gstsdlplay

Rating: 
5
Your rating: None Average: 5 (2 votes)

simple minimalistic python app that plays a given file or stream using gstreamer and sdl2.
universal app (sailfish & desktop)

usage: python3 /usr/lib/python3.8/site-packages/gstsdlplay/gstsdlplay.py [file-or-stream]

can be paused by touch(FINGERDOWN) or mouse(MOUSEBUTTONDOWN)
on desktop fullscreen-window can be closed by [arrow-up] in SFOS by performing normal window-closure-gesture

seeking:
small step -/+ : [arrow-left] [arrow-right] or 2-Finger-Swipe left/right
big step -/+ : [k] [l] or 2-Finger-Swipe down/up

can add (you'll have to modify gstsdlplay.py)
10-band-equalizer ( set tenbandeq = True ) - you can customize band0-9 gains
bs2b ( set headphonemode = True ) [libbs2b and libgstbs2b.so needed]
playback-speed ( set pitch = True ) - default 150% (e.g. for podcast episodes) but should be set to 100% for livestreams
echo ( set echo = True )

basically you can add any audio-filter / audio-effect in gstreamer that is available on your device

based on:
https://github.com/py-sdl/py-sdl2/blob/master/examples/ttf.py
https://gitlab.freedesktop.org/gstreamer/gst-python/-/blob/discontinued-...

sha256sum filename:
941428081cfb37d24d441e1996cc65d000589fa6be4448da1f5937956f3b0ae2 gstsdlplay-0.3.0.0-1.noarch.rpm
e28b8a6c4d2953fa20a54a864056a254d2566528e4092d75b1a0d6d30bcd2eae gstsdlplay-0.3.0.1-1.noarch.rpm

Screenshots: 
Application versions: 
AttachmentSizeDate
File gstsdlplay-0.1-1.noarch.rpm12.76 KB26/04/2023 - 20:16
File gstsdlplay-0.1.0.1-1.noarch.rpm12.79 KB26/04/2023 - 20:16
File gstsdlplay-0.2.0.0-1.noarch.rpm13.71 KB10/05/2023 - 20:09
File gstsdlplay-0.2.0.1-1.noarch.rpm13.63 KB10/05/2023 - 20:09
File gstsdlplay-0.3.0.0-1.noarch.rpm13.64 KB12/05/2023 - 01:04
File gstsdlplay-0.3.0.1-1.noarch.rpm13.58 KB12/05/2023 - 01:04
Changelog: 

0.3:
*improved seeking (touch devices)

0.2:
*seeking added
*fakevideosink added (audio part of a video file can now be played)
*closed SDL-window in PAUSED state -> PLAYING due to no input handling anymore