This script has been made for you due to the problem of deleting the monthly video files of the virtual class of Tabriz University and not adding the possibility of offline download within the site.
💎 Enjoy it 💎
On Windows, download latest version of Python & Ffmpeg & KMPlayer and install Python and KMPlayer.
On Ubuntu, open your terminal by pressing Ctrl+Alt+T
and install the FFmpeg & KMPlayer & Python package, by typing:
sudo apt-get update
sudo apt-get install ffmpeg
sudo apt-get install python3.8
sudo apt-get install kmplayer
On Android, install Termux and KMPlayer and enter following commands in Termux:
pkg install python
pkg install ffmpeg
- If you are a Windows user, extract after downloading the code, then copy
ffmpeg.exe
to that folder, else this unnecessary. - In order to have a video version of the held class, you need to get the address of the desired class.
Then open commands.text and insert command as following and pressing Ctrl+s
:
echo class_link_1 > saved_file_name_1
echo class_link_2 > saved_file_name_2
...
Now, if you are a Windows user hold shift
and right click
on the code folder and select Terminal or PowerShell and enter the following command:
python main.py
Otherwise:
cd code_folder_path
python main.py
At the end, follow the instructions that you see inside Terminal or PowerShell or Termux.
If the master has used the share screen
feature, the output will be a video file in flv
format, otherwise an audio file will be saved in the output
folder.
If the teacher allows a student to speak or share screen, the audio and video will not be inserted into the output at the appropriate time
Copyright 2021 ErfanSn
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http:https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.