Videos Become Execute-to-Play
protip: if you prepend #!/usr/bin/env mpv to your MPEG2-TS videos, they become execute-to-play! alba@BCN-AUMEND-LT01 /tmp> echo '#!/usr/bin/env mpv' >> video2.ts alba@BCN-AUMEND-LT01 /tmp> cat video2.ts | video2.ts alba@BCN-AUMEND-LT01 /tmp> chmod +x video2.ts alba@BCN-AUMEND-LT01 /tmp> ./video2.ts Video --vid=1 (h264 860x600 30 fps) Audio --aid=1 (mp2 1ch 44100 Hz 384 kbps) AO: [pipewire] 44100Hz mono 1ch s16 VO: [gpu] 800x600 yuv420p AV: 00:00:04 / 00:00:05 (80%) A-V: 0.000 Dropped: 3
A screenshot shows a post explaining that prepending an mpv shebang to MPEG2-TS video files lets them be executed directly like scripts. The terminal demonstrates making the file executable and running it, while a color-bar test screen plays; the joke is the absurdly convenient repurposing of a video file as an executable. EN: A screenshot shows a post explaining that prepending an mpv shebang to MPEG2-TS video files lets them be executed directly like scripts. The terminal demonstrates making the file executable and running it, while a color-bar test screen plays; the joke is the absurdly convenient repurposing of a video file as an executable.
social media post / публикация в соцсетиterminal window / окно терминалаcomputer desktop / рабочий стол компьютераshell prompt / приглашение командной строкиvideo file / видеофайлMPEG2-TS video / видео MPEG2-TSshell script / скрипт оболочкиcommand-line text / текст командной строкиcolor-bar test pattern / тестовая цветная таблицаblack terminal background / чёрный фон терминалаgreen foliage wallpaper / обои с зелёной листвойplayback status text / текст статуса воспроизведения
- @gentoomemes / 16472 2025-03-17
- Type
- image
- Size
- 564×800 · 58.7 KiB
- Mood
- absurd, technical
- Language
- en
- Added