#mplayer #mpv
@hpr

There is a .bash_aliases entry that follows me between machine, and is forgotten unless I hear chipmunk speech in sped up audio in either mplayer or mpv.

alias mplayer="mplayer -af scaletempo"

https://kenfallon.com/speeding-up-speech-with-mplayer

Speeding up Speech with mplayer | KenFallon.com

Video downscaler and converter-to-MP4 (and most-metadata remover) for posting to #GotoSocial to avoid [#1688]:

#!/bin/mksh set -A args -- -sn -dn if [[ $1 = -na ]]; then args+=(-an) shift fi filterpost=':force_original_aspect_ratio=decrease:force_divisible_by=4,setsar=1/1' doone() ( in=$(realpath "$1") || exit 255 out=${in%.@(qt|mov|MOV)}.mp4 ID_VID_0_ROTATE=0 ID_VIDEO_WIDTH=-1 ID_VIDEO_HEIGHT=-1 eval "$(/usr/share/mplayer/midentify.sh "$in" | \ grep -E '^ID_(VID_0_ROTATE|VIDEO_WIDTH|VIDEO_HEIGHT)=[0-9]*$')" if [[ $ID_VID_0_ROTATE = @(0|180|360) ]]; then w=$ID_VIDEO_WIDTH h=$ID_VIDEO_HEIGHT elif [[ $ID_VID_0_ROTATE = @(90|270) ]]; then w=$ID_VIDEO_HEIGHT h=$ID_VIDEO_WIDTH elif [[ $ID_VIDEO_WIDTH != -1 || $ID_VIDEO_HEIGHT != -1 ]]; then print -ru2 "E: unknown rotation: ${ID_VID_0_ROTATE@Q}" exit 1 fi if [[ $ID_VIDEO_WIDTH = -1 && $ID_VIDEO_HEIGHT = -1 ]]; then print -ru2 "W: unknown size; halving" args+=(-vf "scale=iw/2:ih/2$filterpost") elif (( w > h )); then args+=(-vf "scale='min(640,iw)':-1$filterpost") else args+=(-vf "scale=-1:'min(640,iw)'$filterpost") fi set -x ffmpeg -i "$in" "${args[@]}" "$out" ) if (( $# == 1 )) && [[ -e $1 ]]; then doone "$1" else (( $# > 0 )) || set -- IMG* select file in "$@"; do doone "$file" exit $? done fi

Save as ~/.etc/bin/vidscale, for example, and make executable. You’ll need mplayer (for midentify) and ffmpeg (for the actual rotating and scaling).

Result:

-rw-r--r-- 1 1000 1000 1235951 25. Jan 22:39 IMG_2991.mp4 -rw-r--r-- 1 1000 1000 13433761 25. Jan 21:49 IMG_2991.qt

That’s from 1280×720 to 360×640, so a mere 2:1 integer downscale, keeping audio, so not all that much; I’d have expected about 10 MB ipv under 1¼ MB. I didn’t test it for larger sides but will expect it to work. I didn’t test anamorphic videos (nōn-square pixels) as input but added the incantation most likely needed to make it work.

I wrote this because of frustration with having to specify width or height, ImageMagick can do “larger side” but ffmpeg cannot, and with rotation in metadata flags (which #ffmpeg uses but #mplayer ignores) vs. rotated #video (ffmpeg output).

[bug] Video upload recorded with an iPhone results in 422 Unprocessable entity

### Describe the bug with a clear and concise description of what the bug is. I'm on an iPhone 11 and use Toot! to upload a video somebody sent me from a newer iPhone. On the phone the info I see is: - Apple iPhone 14 HEVC - 1080p 1080×1920 25MB Dolby Vision - 30 FPS - 00:23 On the clie...

Codeberg.org
فيديو مارضيش يشتغل على
vlc
واشتغل على
mplayer
والبيه ده مش ظاهرة فيه ازار التوقف والتشغيل وانا اعاني

mplayer show it s button

https://askubuntu.com/questions/24460/how-can-i-display-a-progress-bar-in-mplayer


How can I Display a Progress Bar in mplayer


Permanent Display (Configuration File)
To have the progress bar and time information display automatically for all videos, you can add a setting to your MPlayer configuration file:

Open or create the MPlayer configuration file, typically located at ~/.mplayer/config (or %APPDATA%\mplayer\config on Windows).
Add the following line to the file:

osdlevel = 2

This sets the default OSD level to show seek/progress, timer, and total time information.

You can also start MPlayer from the command line with the -osdlevel option:
bash

mplayer -osdlevel 2 your_video_file.mp4

Using these methods will enable the built-in visual feedback for playback progress within MPlayer's video output.


#mplayer
#video
#linux
#cachyos
How can I Display a Progress Bar in mplayer?

Is there a way to display a progress bar in mplayer (running without a gui)? (I'm launching the mplayer command from the terminal like $ mplayer video.avi .) Or is there simply any kind of perce...

Ask Ubuntu

For #DigitalIndependenceDay, here's a list of #FreeSoftware I use frequently:

✉️ Mailing: #ClawsMail
🖥️ Desktop: #XFCE
🎬 Media: #VLC, #mplayer
🖌️ 2D GFX: #GIMP, #Inkscape
🧊 3D GFX: #Blender, #Blockbench
🎙️ Audio: #Tenacity, #LMMS
⌨️ Coding: #Vim, #Git, #Forgejo
🗨️ Chatting: #HexChat (IRC), #Element (Matrix)
🌐 Browsing: #Firefox / #IceCat
🧩 Browsing add-ons: #NoScript, #Greasemonkey
🏢 Office: #LibreOffice, #Gnumeric

#DID

Download FFmpeg

MPlayer - The Movie Player

Website for MOC. You're better off working with the version that comes with your Linux distribution or BSD flavor since that one has all the libraries compiled necessary to run.

https://moc.daper.net/download/

#VLC #libdvdcss #MOC #MPlayer #FFMPEG #command #line #VLC_i #Bash #sh #csh #ksh #zsh #fish #Linux #OpenSource #programming

Download | MOC - music on console

My motto is; be grateful for all OpenSource software you like to use, give credits to the programmers when you find more useful parameters in your beloved software.

When I play audio files my player of choice has always been MOC; music on console has been stable for decades, is the lightest player I could find and is reminiscent of Midnight Commander / Norton Commander interface.
MOC uses an ncurses interface, has all you need at the fingertips and can play many legacy formats like C64 VIC songs {Last Ninja!} Amiga modules {Das Boot!} with ease.

MOC was released before Video LAN IIRC {I checked}

At a certain point I wanted to play my DVDs in Linux. Logical since my Linux uptime was much, much higher cumulatively, than my win32 uptime, where I gamed. Wine either did not exist yet or could do very little for gaming in general.

Then I learned about libdvdcss thus also about Video LAN.
The fantastic thing about libdvdcss is that you don't have to mess with the region of your player. In that period you had to download libdvdcss yourself from the Video LAN site.
You could only change that region for four times before it becomes permanent at the 5th.

libdvdcss is mighty.

I glanced over VLC, yet didn't brother to download the source code, since I use MPlayer to play my videos in combination with the Mighty FFMPEG library suite. When I finally came around to play with VLC I immediately noticed, how smooth it was coded. I also glanced over the Lua interface, yet left it untouched since I played with MOC, MPlayer / FFMPEG.

VLC X11 UI is handy when you want to move faster than in MPlayer, which made me play more often with VLC when I was in X11.

It was only very recent, that I started to play with VLC in bash.
I was on a notebook which was air gapped so I could not download MOC.
I invoked

`vlc -I
`

What popped up was so beautiful that I was CLI heaven. Every parameter you could think of, where you would normally need to wander with your mouse, you can just type in and get prompted to your shell. You can also do that over the network LAN by the way (wow!)

TIL another powerful feature of VLC cli. If you take the time to add the lyrics of the songs in the album to the directory where the songs reside, VLC will happily show them to you.

I was floored.

This is so efficient.

VLC will not go messing on your internet connection which may be bandwidth metered like mine. VLC cli has so many features you just have to check them out on your own, to see which one you like and then play with them just like I do.

Another impressive feature
One problem we have when we have to downmix 5.1 or 7.1 audio to 2.0 is that the downmix becomes too soft, often 16 decibels too soft. Video LAN fixed that so simple & elegantly.
Video LAN Client is the only one which can push its volume up to 200%!

Thank you Video LAN programmers for this amazing work.

https://www.videolan.org/developers/libdvdcss.html

#VLC #libdvdcss #MOC #MPlayer #FFMPEG #command #line #VLC_i #Bash #sh #csh #ksh #zsh #fish #Linux #OpenSource #programming

libdvdcss - VideoLAN

libdvdcss

[Перевод] Как в Quake.exe появился стек TCP/IP

Quake, выпущенный в июне 1996 года, за срок своей жизни был вынужден оседлать три технологические волны. Наряду с появлением карт аппаратного 3D-ускорения и развитием Интернета, сложности у разработчиков игры вызвала и смена поколений операционных систем. Стремясь к распространению Windows 95 и Windows NT, Microsoft начала процесс замены своей старой операционной системы MS-DOS. С 1996 по 1997 год доля DOS на рынке упала на 50%. Некоторые разработчики, например, Blizzard North, делали рискованный шаг и создавали игры наподобие Diablo только для Windows 95. Компания id Software же пошла на подвиг по созданию единого двоичного файла quake.exe , способного работать и в DOS, и в Windows. Ещё более впечатляет то, что разработчикам удалось реализовать стек TCP/IP Quake лучше, чем у Windows 95. Давайте разберёмся, как им это удалось.

https://habr.com/ru/articles/968396/

#id_software #ms_dos #quake #mplayer #deathmatch #сетевые_игры

Как в Quake.exe появился стек TCP/IP

Quake, выпущенный в июне 1996 года, за срок своей жизни был вынужден оседлать три технологические волны. Наряду с появлением карт аппаратного 3D-ускорения и развитием Интернета, сложности у...

Хабр