Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>>> But I failed to execute mpv command: >>>> >>>> #+begin_src org >>>> Test src_sh{mpv "枕刀歌/《枕刀歌》SE05 江海阔 歌谣哼唱.mp4"} >>>> #+end_src >>> >>> May you elaborate what you mean by "failed"? >> >> The "failed" means the MPV video player window does not show up, no video, no audio. > > Interesting. I tried harder to reproduce following your steps. > Now, I used a video file with CJK name: > > * 《枕刀歌》 > :PROPERTIES: > :DATE: [2021-05-13 Thu 20:09] > :Douban: https://movie.douban.com/subject/35350794/ > :DIR: 鸟瞰古 > :EVAL: src_sh{mpv "鸟瞰古/【人文纪录片】鸟瞰古代中国.Ancient.China.from.Above P1 鸟瞰古代中国.Ancient.China.from.Above.S01....flv"} > :END: > > And I can reproduce - mpv windows shows up, but no video and no sound. > Then, I tried to open the same video in usual way... and still no sound > - until I press "m" to unmute. > > So, it looks to me like mpv is somehow trying to interpret "echo" commands the > ob-shell is sending after "mpv ...." is executed: > > ob_comint_async_shell_start_d1cc7563-be0c-4ed0-a4c2-d1b545333983 > org_babel_sh_prompt> =[input] No key binding found for key 'c'. > ... > [input] No key binding found for key '''. > [input] No key binding found for key 'b'. > ... > [input] No key binding found for key '''. > > These "No key binding found statements" a likely from "echo" commands > attempted to be sent to the terminal. I have similar output in session buffer too. Here is the output in my session buffer. When I press Tab key to expand upper headline. I check the inline src block session buffer, here is the output: #+begin_example bash-5.2$ bash-5.2$ PROMPT_COMMAND=;PS1="org_babel_sh_prompt> ";PS2= org_babel_sh_prompt> echo 'ob_comint_async_shell_start_d1cc7563-be0c-4ed0-a4c2-d1b545333983' mpv "枕刀歌/《枕刀歌》SE05 江海阔 歌谣哼唱.mp4" echo 'ob_comint_async_shell_end_d1cc7563-be0c-4ed0-a4c2-d1b545333983' ob_comint_async_shell_start_d1cc7563-be0c-4ed0-a4c2-d1b545333983 org_babel_sh_prompt> =[input] No key binding found for key 'c'. [input] No key binding found for key 'h'. [input] No key binding found for key '''. [input] No key binding found for key 'b'. [input] No key binding found for key 'c'. [input] No key binding found for key 'n'. [input] No key binding found for key 'a'. [input] No key binding found for key 'y'. [input] No key binding found for key 'n'. [input] No key binding found for key 'c'. [input] No key binding found for key 'h'. [input] No key binding found for key 'n'. [input] No key binding found for key 'c'. [input] No key binding found for key 'c'. [input] No key binding found for key '-'. [input] No key binding found for key 'b'. [input] No key binding found for key 'c'. [input] No key binding found for key '-'. [input] No key binding found for key '-'. [input] No key binding found for key 'a'. [input] No key binding found for key 'c'. [input] No key binding found for key '-'. [input] No key binding found for key 'b'. [input] No key binding found for key '''. Resuming playback. This behavior can be disabled with --no-resume-playback. Video --vid=1 (*) (h264 1920x1080 25.000fps) (+) Audio --aid=1 (*) (aac 2ch 48000Hz) AO: [coreaudio] 48000Hz stereo 2ch floatp Mute: yes C-c C-c> Saving state. Exiting... (Quit) org_babel_sh_prompt> echo $SHELL /bin/zsh org_babel_sh_prompt> #+end_example I also try to add "sleep 1;" command before "mpv ..." command to delay mpv executing. Still not success. Don't know ob-shell which part did your said "echo" commands. I don't know where to dig this issue. Hope you can help. Thanks for your reproducing problem and dive in. -- [ 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