mirror of
https://github.com/sbrow/nu-ffmpeg.git
synced 2025-12-29 16:23:11 -05:00
25 lines
536 B
Nu
Executable File
25 lines
536 B
Nu
Executable File
#!/usr/bin/env -S nu -n
|
|
|
|
use ../ffmpeg.nu;
|
|
use ../filters.nu *;
|
|
|
|
# Re-encode the video to 30fps
|
|
def main []: nothing -> any {
|
|
print '# Re-encode the video to 30fps'
|
|
print '('
|
|
print ' fmpeg cmd ['https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4'] []'
|
|
print ' | fps 30'
|
|
print ' | ffmpeg run'
|
|
print ')'
|
|
print ''
|
|
print 'Would run:'
|
|
|
|
(
|
|
ffmpeg cmd ['https://sample-videos.com/video321/mp4/720/big_buck_bunny_720p_1mb.mp4'] []
|
|
| fps 30
|
|
| ffmpeg cmd to-args
|
|
| ['ffmpeg' ...$in]
|
|
)
|
|
}
|
|
|