[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SOLUTION] a temporary workaround solution using another language like "
From: |
Christopher M. Miles |
Subject: |
[SOLUTION] a temporary workaround solution using another language like "python" |
Date: |
Mon, 01 May 2023 21:08:49 +0800 |
User-agent: |
mu4e 1.10.3; emacs 30.0.50 |
I use another language "python" to replace "sh" to play video now. It successes.
Here is my example:
#+begin_src org
,* 《枕刀歌》
:PROPERTIES:
:DATE: [2021-05-13 Thu 20:09]
:Douban: https://movie.douban.com/subject/35350794/
:DIR: 枕刀歌
:EVAL: src_python{import os; video_file = "枕刀歌/《枕刀歌》SE05 江海阔 歌谣哼唱.mp4";
os.system("mpv \"%s\" " %(video_file))}
:END:
#+end_src
It's not as convenient as shell command directly but at least it works.
Seems the sh inline source block can't be used to play video using "mpv"
(I also tested other video player commands like "mplayer", "iina" etc).
So this python solution is a workaround.
--
[ stardiviner ]
I try to make every word tell the meaning that I want to express without
misunderstanding.
Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
signature.asc
Description: PGP signature
- Re: [Need Help] Error to evaluate "mpv" command in inline src block, Ihor Radchenko, 2023/05/01
- Re: [Need Help] Error to evaluate "mpv" command in inline src block, Christopher M. Miles, 2023/05/01
- ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively (was: [Need Help] Error to evaluate "mpv" command in inline src block), Ihor Radchenko, 2023/05/01
- Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively, Christopher M. Miles, 2023/05/01
- Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively, Ihor Radchenko, 2023/05/01
- Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively, Christopher M. Miles, 2023/05/01
- Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively, Ihor Radchenko, 2023/05/01
- Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively, Christopher M. Miles, 2023/05/01
- [SOLUTION] a temporary workaround solution using another language like "python",
Christopher M. Miles <=
- Message not available
- Re: [SOLUTION] a temporary workaround solution using another language like "python", Max Nikulin, 2023/05/01
- Re: [SOLUTION] a temporary workaround solution using another language like "python", Christopher M. Miles, 2023/05/01
- Re: [SOLUTION] a temporary workaround solution using another language like "python", Ihor Radchenko, 2023/05/01
- [CLOSED] [ANSWER] Re: a temporary workaround solution using another language like "python", Christopher M. Miles, 2023/05/02
- Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively (was: [Need Help] Error to evaluate "mpv" command in inline src block), Matt, 2023/05/02
- Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively (was: [Need Help] Error to evaluate "mpv" command in inline src block), Ihor Radchenko, 2023/05/03
- Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively, Christopher M. Miles, 2023/05/03
- Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively, Ihor Radchenko, 2023/05/03
- Re: ob-shell sessions will send final echo '...' as input key sequence when previous command reads input interactively, Christopher M. Miles, 2023/05/03
Re: [Need Help] Error to evaluate "mpv" command in inline src block, Christopher M. Miles, 2023/05/01