[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: pepe-happy.gif (75 KB, 640x640)
75 KB
75 KB GIF
Now you can download all the webms you want to your phone as mp4's or whatever with this simple script. Thank me later.
#!/bin/bash

set -e
IFS=$'\n\t'

url="${1:?No url given!}"
out_name=$(basename "$url")
output_path="${2:-${out_name%%.*}.mp4}"
log_level='warning'

ffmpeg -i "$url" -v "$log_level" "$output_path"

Usage
./script.sh https://is2.4chan.org/g/1721851369754000.webm
or
./script.sh https://is2.4chan.org/g/1721851369754000.webm name.mp4
>>
go back
>>
Fake
>>
don't use this it makes mustard gas
>>
File: 1721589461478829s.jpg (3 KB, 125x125)
3 KB
3 KB JPG
>he made a script so he doesn't need to type in long ass huge fucking commands into the terminal
I don't know if mentally disabled or genius
>>
Why would I need to change video containers if webm is supported in mobile devices for more than a decade?
>>
>>101556872
>"${1:?No url given!}"
????
>>
report and hide all frogroach spammers



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.