这是indexloc提供的服务,不要输入任何密码
Skip to content

vasusen-code/ethon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ethon

install

pip install ethon

ethon.pyutils

from ethon.pyutils import rename, file_extension, youtube

#rename files
file = 'name of your file'
path = 'new name for your file'
rename(file, path)

#get file extension using path of file
path = 'path of your file'
extension = file_extension(path)

#Download videos from youtube
filename = youtube(url)

ethon.pyfunc

from ethon.pyfunc import bash, total_frames, video_metadata

#handy subprocess
o, e = bash(cmd)

#get total number of frames in a video
tf = total_frames(file)

#get basic metadata of video
data = video_metadata(file)
height = data["height"]
width = data["width"]
duration = data["duration"]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages