Skip to content

Tag: python

Receive RTP stream with gstreamer

I’m trying to stream from a linux-based microcontroller, using gstreamer, to a python script. This is to workaround some firmware issues on the microcontroller where it cannot open the camera directly with opencv/python. The launch output command looks like this for gstreamer: My question is, what would…

Django – can’t run server as sudo

I’m creating a soft AP in order to configure my raspberry wireless from it. I alread have an script to create a hotspot, a dhcp server and now i need to run a django app using sudo. (Yes, using sudo. I’m waking up my django server from my python script, and the script needs to run as sudo) I&#8217…

How to detect folder path i ran script for?

the below script is to unzip zip file and rename extaracted subtitles names according to tv show episodes names. and then convert them to utf-8. here is the problem: I want to run this script in a linux os and inside any tv show folder i want.but I want the path in fixing function to be detected from the fold…