From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iG0yCtGZT2SfqAAASxT56A (envelope-from ) for ; Mon, 01 May 2023 12:52:01 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YBjnCdGZT2TEegEAauVa8A (envelope-from ) for ; Mon, 01 May 2023 12:52:01 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C11C67BCB for ; Mon, 1 May 2023 12:52:00 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptR7L-0007mv-Ne; Mon, 01 May 2023 06:50:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptR7L-0007ml-5X for emacs-orgmode@gnu.org; Mon, 01 May 2023 06:50:51 -0400 Received: from [39.171.215.100] (helo=Mac-mini.local) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptR7I-0004Ix-SQ for emacs-orgmode@gnu.org; Mon, 01 May 2023 06:50:50 -0400 Received: by Mac-mini.local (Postfix, from userid 501) id 495A18A9DC4C; Mon, 1 May 2023 18:50:40 +0800 (CST) References: <87354hs9pz.fsf@localhost> <87mt2oqyup.fsf@localhost> User-agent: mu4e 1.10.3; emacs 30.0.50 From: "Christopher M. Miles" To: Ihor Radchenko Cc: "Christopher M. Miles" , Org-mode Subject: Re: [Need Help] Error to evaluate "mpv" command in inline src block Date: Mon, 01 May 2023 18:46:29 +0800 In-reply-to: <87mt2oqyup.fsf@localhost> Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 39.171.215.100 (deferred) Received-SPF: softfail client-ip=39.171.215.100; envelope-from=numbchild@gmail.com; helo=Mac-mini.local X-Spam_score_int: 58 X-Spam_score: 5.8 X-Spam_bar: +++++ X-Spam_report: (5.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, MSGID_MULTIPLE_AT=1, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_PBL=3.335, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, SPOOFED_FREEMAIL_NO_RDNS=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: reject X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: numbchild@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682938320; a=rsa-sha256; cv=none; b=OWIwD0n3LNFBscVutFT2B2u4jzJOFFyN5bbn1eZrmqyoI//qieqB6CI/lNe1ROspYjiRjl 5Z6gO9wurwmtN3n+iZexlVtO4DmXxp6thK5QTg8uGeUFVbnVEIe+B50TUdGwDPKH2SDRUg juk1WMv831ZTKYtqe5tWSYwgSJR06cGKXn9GrXL8/lDC9VgjOCXYAS1U0qUzhN+WtfR/oP p52yqYRLXpq9taE93Fx6u+FNG2pvODtRvUEuLMWh+4lgJKYFoOzpiEnjVZ9rL3qnSfG+J+ v1FaeIY2uVwImGkA4BbqWbsR2xSD+9yFWXxCerUqxm/85KDx4KRK2NgtiiQY2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682938320; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=QqbaIN0EUufiaAb3fU3Vy0vwT2fgQ0SCe+fTstM7VYo=; b=OGB389mqU32+HI4yCS0h94X8g0rxAAPmKJDrgHS+O/sPjvzHNWUJNQDXeJ69Brdzp5br4k 2q/9VljLYZ5f5dXO+ApbbahFPvKLghrB9MC6nbZWMRfzY6LA854J34cPh0O5yhc+ysD2Yw q7rhCQ9j4oeiilOrtvGjLDlOgJsEZxA3qkxaAcLE31WVcKWfQVHqUDzsYb+IrYFvkQaBa1 7RIhtUQ1bapWTL2vkiC9Tc8LpcjddPXNRVNf+RwFLJ4Q/RUuMIor59rS8WbJuOobezxyxc I4+mS78kGHqAXDJnBVMjD+K6LaXbVq12/BgjnbXqZjNdiFW4RO8o/J+ToK3eSA== X-Migadu-Spam-Score: -4.01 X-Spam-Score: -4.01 X-Migadu-Queue-Id: C11C67BCB X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-TUID: iuXSDqt//fUf --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: > "Christopher M. Miles" writes: > >>>> But I failed to execute mpv command: >>>> >>>> #+begin_src org >>>> Test src_sh{mpv "=E6=9E=95=E5=88=80=E6=AD=8C/=E3=80=8A=E6=9E=95=E5=88= =80=E6=AD=8C=E3=80=8BSE05 =E6=B1=9F=E6=B5=B7=E9=98=94 =E6=AD=8C=E8=B0=A3=E5= =93=BC=E5=94=B1.mp4"} >>>> #+end_src >>> >>> May you elaborate what you mean by "failed"? >> >> The "failed" means the MPV video player window does not show up, no vide= o, no audio. > > Interesting. I tried harder to reproduce following your steps. > Now, I used a video file with CJK name: > > * =E3=80=8A=E6=9E=95=E5=88=80=E6=AD=8C=E3=80=8B > :PROPERTIES: > :DATE: [2021-05-13 Thu 20:09] > :Douban: https://movie.douban.com/subject/35350794/ > :DIR: =E9=B8=9F=E7=9E=B0=E5=8F=A4 > :EVAL: src_sh{mpv "=E9=B8=9F=E7=9E=B0=E5=8F=A4/=E3=80=90=E4=BA=BA=E6= =96=87=E7=BA=AA=E5=BD=95=E7=89=87=E3=80=91=E9=B8=9F=E7=9E=B0=E5=8F=A4=E4=BB= =A3=E4=B8=AD=E5=9B=BD.Ancient.China.from.Above P1 =E9=B8=9F=E7=9E=B0=E5=8F= =A4=E4=BB=A3=E4=B8=AD=E5=9B=BD.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" command= s the > ob-shell is sending after "mpv ...." is executed: > > ob_comint_async_shell_start_d1cc7563-be0c-4ed0-a4c2-d1b545333983 > org_babel_sh_prompt> =3D[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 sessi= on 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=3D;PS1=3D"org_babel_sh_prompt> ";PS2=3D org_babel_sh_prompt> echo 'ob_comint_async_shell_start_d1cc7563-be0c-4ed0-a= 4c2-d1b545333983' mpv "=E6=9E=95=E5=88=80=E6=AD=8C/=E3=80=8A=E6=9E=95=E5=88=80=E6=AD=8C=E3=80= =8BSE05 =E6=B1=9F=E6=B5=B7=E9=98=94 =E6=AD=8C=E8=B0=A3=E5=93=BC=E5=94=B1.mp= 4" 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> =3D[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=3D1 (*) (h264 1920x1080 25.000fps) (+) Audio --aid=3D1 (*) (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=20 /bin/zsh org_babel_sh_prompt>=20 #+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. =2D-=20 [ stardiviner ] I try to make every word tell the meaning that I want to express without mi= sunderstanding. Blog: https://stardiviner.github.io/ IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAmRPmX8ACgkQG13xyVro msPq5QgArqqkGdDf7mDn+drpOHmD0of2ZWHrEZKd07+rg4NLGk9GU1r7cdkTp+Jt wWYB3kwSiH2GPU+n7wgddayaBR+s8OpsPMy9uXT+t1HAKi2wyeBzFxFuJA+pqmk0 jGnIcyKZLBC5LHDyfuHTcmFzxByfgORnR0Wp8v4itC5jDe/53B12XLolm2hmalWR GIrlI0UgQGmFgjMfUAPjpCiOdIge8P7qbgnpJ8QMwkYuNW5jU3XemSLW0rs3lZsT llhC3ekFjokKcyswyhggB7Ol3YFgoW3IVG8hUOc0AeI06xI5TmpJFZ69k0hkG8Fg QoPrRkvvjz+ZYFmLoeuO0tKC7g5LxQ== =s/08 -----END PGP SIGNATURE----- --=-=-=--