ffmpeg -i original.mp4 -vf fps=25 out%04d.png
ffmpeg -framerate 25 -pattern_type glob -i '*.png' -c:v libx264 -pix_fmt yuv420p out.mp4
ffmpeg -i original.mp4 -vf fps=25 out%04d.png
ffmpeg -framerate 25 -pattern_type glob -i '*.png' -c:v libx264 -pix_fmt yuv420p out.mp4
Array.from(document.getElementsByTagName("input"))
.filter( input => { return input.type==="checkbox" } )
.map( checkbox => { checkbox.checked = true })
class A
def foo
[1, 2, 3]
end
end
class B < A
def foo
super.map{ |n| n * 2 }
end
end
puts A.new.foo.to_s
puts B.new.foo.to_s
Output
[1, 2, 3]
[2, 4, 6]
Move files in current subdirectories to the current directory.
find . -mindepth 2 -type f -exec mv -t . -i '{}' +
Delete local folders that are empty.
find . -empty -type d -delete
# Get the HTML page content from urllib import request html = request.urlopen("https://silveiraneto.net").read() # Get the title tag from bs4 import BeautifulSoup title = BeautifulSoup(html, 'html.parser').find('title') print(title.string)
This uses the XML/HTML library BeautifulSoup . This could also be done using regex but playing with HTML and regex is usually a bad idea.