Cycling between --term-playing-msg='\n${filename}'
and --really-quiet
, and cycling video mode at the same time
#14557
-
I would like to be able to swith between This is for a script meant to be user agnostic, so I am trying to avoid having to ship an @guidocella on IRC kindly showed me tricks that could be assembled using
However, this is based on showing the statusline when in text mode, and hiding it when in sixel mode (to avoid breaking the sixel cover with text refreshes). Sadly, this does not show the filename like the Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Thank you. I have two issues with that unfortunately:
I've tried different combinations of escaping or single and double quotes, with no success so far (but I understand this goes into shell scripting territory, not mpv). |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thank you! I got what I wanted with this:
|
Beta Was this translation helpful? Give feedback.
-
You can use |
Beta Was this translation helpful? Give feedback.
-
Turns out I overlooked an issue with the status not being refreshed properly after having switched to sixel and back to text view. This video shows it (the black screen is when I press https://asciinema.org/a/fQ2ptq0phNf1OAKWnHRbb1dZV The command I'm using: mpv somefile.mp3 someotherfile.mp3 --no-config \
--vo=sixel \
--no-video \
--msg-level=all=error,statusline=status \
--term-status-msg='${playlist}\n${?pause==no:▶ }${?pause==yes:⏸ }${percent-pos}% [${time-pos}/${duration}] ${filename} ${?pause==yes:(paused)}' \
--input-conf='memory://_ cycle-values term-status-msg "Sixel shown here but not supported by asciinema" "${playlist}\\n${?pause==no:▶ }${?pause==yes:⏸ }${percent-pos}% [${time-pos}/${duration}] ${filename} ${?pause==yes:(paused)}"; cycle vid' I noticed it when fiddling with the playlist shown by the OSD. After going back from Sixel (or after cycling back, don't know which is the cause), nothing gets refreshed in the text output anymore. |
Beta Was this translation helpful? Give feedback.
--term-playing-msg
is only printed at the start of playback, you want--term-status-msg
for text that can be changed during playback.