讓Image Viewer可查看heic檔
sudo apt update
sudo apt install heif-gdk-pixbuf
完成後右鍵點選圖片,以Image Viewer應用程式開啟即可
在檔案瀏覽器中可顯示縮圖
sudo apt install heif-thumbnailer
讓Image Viewer可查看heic檔
sudo apt update
sudo apt install heif-gdk-pixbuf
完成後右鍵點選圖片,以Image Viewer應用程式開啟即可
在檔案瀏覽器中可顯示縮圖
sudo apt install heif-thumbnailer
from pytube import YouTube
with open('list.txt', 'r') as f:
for url in f:
if url.strip(' \t\n\r') != '':
print('Downloading {}'.format(url))
yt = YouTube(url)
yt.streams.filter().get_highest_resolution().download(filename=yt.title+".mp4")
from pytube import YouTube
from pydub import AudioSegment
with open('list.txt', 'r') as f:
for url in f:
if url.strip(' \t\n\r') != '':
print('Downloading {}'.format(url))
yt = YouTube(url)
yt.streams.filter().get_audio_only().download(filename=yt.title+".mp4")
print('Converting {}'.format(url))
AudioSegment.from_file(yt.title+".mp4").export(yt.title+".mp3", format="mp3")
pip install virtualenv
pip list
mkdir test
cd test
virtualenv [-p path/to/python] myenv01
(path/to/python可用which python進行查詢)
source myenv01/bin/activate
pip list
deactivate
Step 1: 在 Ubuntu 上安裝 ffmpeg
Step 2: 為 Python 安裝 ffmpeg package
Step 3: 為Python 安裝 pydub package
Step 4: Python程式碼如下
在Linux系統中新增使用者:
useradd 使用者名稱
useradd -g 主要群組 使用者名稱
useradd -g 主要群組 -G 次要群組1,次要群組2 使用者名稱
創建完成後會自動在/home目錄下建立一個使用者的家目錄
更改使用者所屬的群組
usermod -g 主要群組 使用者名稱
usermod -a -G 次要群組 使用者名稱