5 ms·
youtube-dl -f bestvideo[ext=mp4]+bestaudio[ext=m4a] -o "XBox One Story by Tony Chen.mp4" https://www.youtube.com/watch?v=U7VwtOrwceo start "" "XBox One Stor
by anonymfus 7y ago
youtube-dl -f bestvideo[ext=mp4]+bestaudio[ext=m4a] -o "XBox One Story by Tony Chen.mp4" https://www.youtube.com/watch?v=U7VwtOrwceo
start "" "XBox One Story by Tony Chen.mp4"
- RandomBacon 7y agoJust a friendly reminder to everyone, don't copy and paste commands into the terminal. There could be invisible characters that can execute unwanted operations. Explanation/example: https://thejh.net/misc/website-terminal-copy-paste https://thejh.net/misc/website-terminal-copy-paste Previous HN discussions: https://news.ycombinator.com/item?id=10554679 https://news.ycombinator.com/item?id=10554679 and https://news.ycombinator.com/item?id=5508225 https://news.ycombinator.com/item?id=5508225
- morsch 7y agoFWIW, that relies on hiding input via CSS, which -- outside of a separate exploit of HN's comment sanitiser -- is not an option in a HN comment.
- erinaceousjones 7y agofish shell gets around this nicely it appears; no commands are run until you explicitly hit enter (so you see the nefarious extra hidden commands before they're ran), even with the newline chars it seems to understand you're pasting a block
- Simon_says 7y agoty
- vocatus_gate 7y agoYou can also just do "youtube-dl U7VwtOrwceo" No need to tell it best quality; it does that automatically.
- anonymfus 7y agoActually automatically it selects it wrong. If formal quality parameter is the same it chooses by bitrate, so it very often and in this case too goes for AAC audio and VP9 video, which happens just because of the properties of the codecs.