{"id":6790,"date":"2025-01-11T14:06:13","date_gmt":"2025-01-11T14:06:13","guid":{"rendered":"https:\/\/howtogeek.blog\/zh\/?p=6790"},"modified":"2025-01-11T14:06:13","modified_gmt":"2025-01-11T14:06:13","slug":"how-to-stream-plex-or-jellyfin-directly-from-your-terminal","status":"publish","type":"post","link":"https:\/\/howtogeek.blog\/zh\/how-to-stream-plex-or-jellyfin-directly-from-your-terminal\/","title":{"rendered":"\u5982\u4f55\u76f4\u63a5\u5f9e\u7d42\u7aef\u50b3\u8f38 Plex \u6216 Jellyfin"},"content":{"rendered":"<h3>\u5feb\u901f\u9023\u7d50<\/h3>\n<p>\u60a8\u60f3\u5c07\u60a8\u7684 Plex \u6216 Jellyfin \u4e32\u6d41\u5a92\u9ad4\u63d0\u5347\u5230\u4e00\u500b\u65b0\u7684\u6c34\u5e73\u55ce\uff1f\u76f4\u63a5\u5f9e\u60a8\u7684\u7d42\u7aef\u9032\u884c\u4e32\u6d41\u50b3\u8f38\u600e\u9ebc\u6a23\uff1f\u4f7f\u7528<a href=\"https:\/\/github.com\/mov-cli\/mov-cli-jellyplex\" rel=\"noopener noreferrer nofollow\" target=\"_blank\">mov-cli-jellyplex \u63d2\u4ef6<\/a>\uff0c\u60a8\u53ef\u4ee5\u3002\u8b93\u6211\u5011\u4f86\u63a2\u7d22\u4e00\u4e0b\u9019\u500b\u904e\u7a0b\u5427\uff01<\/p>\n<h2 id=\"what-is-mov-cli\">\u4ec0\u9ebc\u662f mov-cli\uff1f<\/h2>\n<p>mov-cli \u53ef\u80fd\u9084\u6c92\u6709\u51fa\u73fe\u5728\u60a8\u7684\u8996\u7dda\u4e2d\uff0c\u4f46\u5b83\u662f\u4e00\u500b\u5275\u65b0\u5de5\u5177\uff0c\u53ef\u8b93\u60a8\u76f4\u63a5\u900f\u904e\u7d42\u7aef\u4e32\u6d41\u50b3\u8f38\u5404\u7a2e\u5a92\u9ad4\u985e\u578b\u3002\u5c0d\u65bc\u90a3\u4e9b\u5728\u547d\u4ee4\u5217\u74b0\u5883\u4e2d\u8301\u58ef\u6210\u9577\u7684\u4eba\u4f86\u8aaa\uff0cmov-cli \u662f\u4e00\u500b\u904a\u6232\u898f\u5247\u6539\u8b8a\u8005\u3002<\/p>\n<p>\u8a2d\u5b9a\u8d77\u4f86\u5f88\u7c21\u55ae\u3002\u5b89\u88dd\u6307\u5357\u9069\u7528\u65bc\u591a\u7a2e\u5e73\u53f0\uff0c\u5305\u62ec<a href=\"https:\/\/github.com\/mov-cli\/mov-cli\/wiki\/Installation#-windows\" target=\"_blank\">Windows<\/a>\u3001<a href=\"https:\/\/github.com\/mov-cli\/mov-cli\/wiki\/Installation#-linux\" target=\"_blank\">Linux<\/a>\u3001<a href=\"https:\/\/github.com\/mov-cli\/mov-cli\/wiki\/Installation#-macos\" target=\"_blank\">macOS<\/a>\u3001<a href=\"https:\/\/github.com\/mov-cli\/mov-cli\/wiki\/Installation#-android-via-termux\" target=\"_blank\">Android<\/a>\uff0c\u751a\u81f3<a href=\"https:\/\/github.com\/mov-cli\/mov-cli\/wiki\/Installation#-ios-via-ish-shell\" target=\"_blank\">iOS<\/a>\u3002\u96d6\u7136\u6211\u5c07\u5728\u672c\u6307\u5357\u4e2d\u8a73\u7d30\u4ecb\u7d39 Windows \u5b89\u88dd\uff0c\u4f46\u6240\u6709\u5e73\u53f0\u90fd\u63d0\u4f9b\u4ee4\u4eba\u9a5a\u8a1d\u7684\u76f8\u4f3c\u9ad4\u9a57\u3002<\/p>\n<h2 id=\"how-to-install-mov-cli\">\u5982\u4f55\u5b89\u88dd mov-cli<\/h2>\n<p>\u70ba\u4e86\u6700\u5927\u9650\u5ea6\u5730\u63d0\u9ad8 jellyplex \u63d2\u4ef6\u7684\u9ad4\u9a57\uff0c\u60a8\u9700\u8981\u5148\u5b89\u88dd mov-cli\u3002\u5728\u672c\u6307\u5357\u4e2d\uff0c\u6211\u5011\u5c07\u91cd\u9ede\u653e\u5728 Windows \u5b89\u88dd\u3002<\/p>\n<p>\u5728\u958b\u59cb\u4e4b\u524d\uff0c\u8acb\u78ba\u4fdd\u60a8\u7684\u7cfb\u7d71\u4e0a\u5b89\u88dd\u4e86<strong>Scoop<\/strong> \u3002\u5982\u679c\u6c92\u6709\uff0c\u8b93\u6211\u5011\u958b\u59cb\u5427\uff1a<\/p>\n<p>\u4ee5\u7ba1\u7406\u54e1\u8eab\u5206\u555f\u52d5 Windows PowerShell \u4e26\u57f7\u884c\u4e0b\u5217\u547d\u4ee4\uff1a<\/p>\n<p> <code> <code>Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserInvoke-RestMethod -Uri https:\/\/get.scoop.sh | Invoke-Expression<\/code><\/code><\/p>\n<p>\u73fe\u5728 Scoop \u5df2\u5b89\u88dd\u5728\u60a8\u7684\u7cfb\u7d71\u4e0a\uff0c\u6253\u958b Windows \u547d\u4ee4\u63d0\u793a\u5b57\u5143\u4e26\u7e7c\u7e8c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88dd\u5176\u9918\u76f8\u4f9d\u6027\uff1a<\/p>\n<p> <code> <code>scoop install git python<\/code><\/code> <code> <code>scoop bucket add extras<\/code><\/code> <code> <code>scoop install mpv fzf<\/code><\/code><\/p>\n<p>\u6700\u5f8c\uff0c\u8981\u5b89\u88dd mov-cli \u672c\u8eab\uff0c\u60a8\u9700\u8981\u57f7\u884c\uff1a<\/p>\n<p> <code> <code>pip install mov-cli -U<\/code><\/code><\/p>\n<p>\u6b64\u8a2d\u5b9a\u53ef\u78ba\u4fdd\u60a8\u6e96\u5099\u597d git \u548c Python\uff0c\u4ee5\u53ca mpv\uff08\u60a8\u7684\u5a92\u9ad4\u64ad\u653e\u5668\uff09\u548c fzf\uff08\u7528\u65bc\u9078\u55ae\u5c0e\u822a\uff09\u3002\u73fe\u5728 mov-cli \u89f8\u624b\u53ef\u53ca\uff01<\/p>\n<h2 id=\"how-to-install-the-mov-cli-jellyplex-plugin\">\u5982\u4f55\u5b89\u88dd mov-cli-jellyplex \u63d2\u4ef6<\/h2>\n<p>\u4e00\u65e6\u4f60\u5b89\u88dd\u4e86 mov-cli\uff0c\u5b89\u88dd jellyplex \u5916\u639b\u5c31\u8b8a\u5f97\u8f15\u800c\u6613\u8209\u4e86\u3002\u4f46\u662f\uff0c\u60a8\u9700\u8981\u8abf\u6574\u914d\u7f6e\u4ee5\u5c07\u5176\u8207\u60a8\u7684 Jellyfin \u6216 Plex \u5e33\u6236\u9023\u7d50\u3002<\/p>\n<p>\u5728 Windows \u547d\u4ee4\u63d0\u793a\u5b57\u5143\u4e2d\u57f7\u884c\u4e0b\u5217\u547d\u4ee4\uff1a<\/p>\n<p> <code> <code>pip install mov-cli-jellyplex<\/code><\/code><\/p>\n<p>\u63a5\u4e0b\u4f86\uff0c\u900f\u904e\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5 mov-cli \u914d\u7f6e\uff1a<\/p>\n<p> <code> <code>mov-cli -e<\/code><\/code><\/p>\n<p>\u627e\u5230\u6a19\u984c\u70ba\uff1a\u7684\u90e8\u5206\uff1a<\/p>\n<p> <code> <code>[mov-cli.plugins]<\/code><\/code><\/p>\n<p>\u5728\u5176\u4e0b\u65b9\u52a0\u5165\u9019\u4e00\u884c\uff1a<\/p>\n<p> <code> <code>jelly = \"mov-cli-jellyplex\"<\/code><\/code><\/p>\n<p>\u60a8\u5df2\u6210\u529f\u5b89\u88dd\u63d2\u4ef6\uff01\u73fe\u5728\u662f\u6642\u5019\u6839\u64da\u60a8\u7684\u7279\u5b9a\u9700\u6c42\u9032\u884c\u914d\u7f6e\u4e86\u3002<\/p>\n<h2 id=\"how-to-configure-the-mov-cli-jellyplex-plugin\">\u5982\u4f55\u914d\u7f6e mov-cli-jellyplex \u63d2\u4ef6<\/h2>\n<p>\u9996\u5148\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b58\u53d6\u74b0\u5883\u8b8a\u6578\u6a94\u6848\uff1a<\/p>\n<p> <code> <code>mov-cli -e. env<\/code><\/code><\/p>\n<p>\u8acb\u8a18\u4f4f\uff0c\u6b64\u6587\u4ef6\u5305\u542b\u61c9\u4fdd\u5bc6\u7684\u654f\u611f\u8cc7\u6599\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u91dd\u5c0d Plex \u9032\u884c\u683c\u5f0f\u5316\u7684\u901a\u7528\u7bc4\u4f8b\uff1a<\/p>\n<p> <code> <code>PLEX_SERVER_ID=\"abunchofrandomtext\"PLEX_USERNAME=\"ilovemovies\"PLEX_PASSWORD=\"D0ntHaxM3Plz\"<\/code><\/code><\/p>\n<p><code>yourplexIP:32400\/identity<\/code>\u60a8\u53ef\u4ee5\u900f\u904e\u5c0e\u89bd\u81f3\u4e26\u6aa2\u67e5\u8a72\u6b04\u4f4d\u4f86\u627e\u5230\u60a8\u7684 Plex \u4f3a\u670d\u5668 ID <code>machineIdentifier=\"\"<\/code>\u3002\u5728\u60a8\u7684\u74b0\u5883\u8b8a\u6578\u4e2d\u4f7f\u7528\u6b64 ID\u3002<\/p>\n<h2 id=\"how-to-stream-movies-using-the-mov-cli-jellyplex-plugin\">\u5982\u4f55\u4f7f\u7528 mov-cli-jellyplex \u63d2\u4ef6\u4e32\u6d41\u96fb\u5f71<\/h2>\n<p>\u914d\u7f6e\u5b8c\u6210\u5f8c\uff0c\u60a8\u7684\u5916\u639b\u7a0b\u5f0f\u5c31\u53ef\u4ee5\u904b\u884c\u4e86\uff01\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f Jellyfin\uff0c\u8acb\u5617\u8a66\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p> <code> <code>mov-cli -s jelly The Avengers<\/code><\/code><\/p>\n<p>\u5c0d\u65bc Plex\uff0c\u8a9e\u6cd5\u7565\u6709\u4e0d\u540c\u3002\u8981\u4e32\u6d41\u96fb\u5f71\uff0c\u8acb\u8f38\u5165\uff1a<\/p>\n<p> <code> <code>mov-cli -s jelly.plex The Avengers<\/code><\/code><\/p>\n<p>\u5305\u542b\u201c.plex\u201d\u5f8c\u7db4\u8868\u660e\u5b83\u5c08\u9580\u91dd\u5c0d Plex\u3002\u9019\u7a2e\u5340\u5225\u81f3\u95dc\u91cd\u8981\uff0c\u4e26\u4e14\u53ef\u80fd\u6703\u5728\u672a\u4f86\u7684\u66f4\u65b0\u4e2d\u767c\u751f\u8b8a\u5316\u3002<\/p>\n<p>\u57f7\u884c\u547d\u4ee4\u5f8c\uff0c\u53ea\u9700\u5f9e\u51fa\u73fe\u7684\u6e05\u55ae\u4e2d\u9078\u64c7\u96fb\u5f71\uff0c\u6309 Enter \u9375\uff0c\u7136\u5f8c\u76f4\u63a5\u5f9e\u7d42\u7aef\u6a5f\u4eab\u53d7\u96fb\u5f71\u9ad4\u9a57\uff01<\/p>\n<p>\u5c0d\u65bc\u90a3\u4e9b\u722d\u8ad6\u662f\u5426\u9078\u64c7 Jellyfin \u9084\u662f Plex \u7684\u4eba\uff0c\u8acb\u6df1\u5165\u4e86\u89e3\u6211\u5011\u5c0d Jellyfin \u70ba\u4f55\u812b\u7a4e\u800c\u51fa\u6210\u70ba\u6700\u7d42\u9078\u64c7\u7684\u5168\u9762\u6982\u8ff0\u3002\u6216\u8005\uff0c\u4e86\u89e3 Plex \u7684\u8a73\u7d30\u8cc7\u8a0a\u3002<\/p>\n<h3>\u984d\u5916\u7684\u898b\u89e3<\/h3>\n<h4><strong>1. \u6211\u53ef\u4ee5\u5728\u5176\u4ed6\u4f5c\u696d\u7cfb\u7d71\u4e0a\u4f7f\u7528mov-cli\u55ce\uff1f<\/strong><\/h4>\n<p>\u662f\u7684\uff01 mov-cli \u8207 Windows\u3001Linux\u3001macOS\u3001Android \u548c iOS \u76f8\u5bb9\uff0c\u4f7f\u5176\u5728\u4e0d\u540c\u74b0\u5883\u4e0b\u5177\u6709\u901a\u7528\u6027\u3002<\/p>\n<h4><strong>2.\u5b89\u88dd\u904e\u7a0b\u4e2d\u9047\u5230\u932f\u8aa4\u600e\u9ebc\u8fa6\uff1f<\/strong><\/h4>\n<p>\u5982\u679c\u60a8\u9047\u5230\u554f\u984c\uff0c\u8acb\u78ba\u4fdd\u6240\u6709\u5148\u6c7a\u689d\u4ef6\u5747\u5df2\u6b63\u78ba\u5b89\u88dd\uff0c\u4e26\u67e5\u95b1\u5b98\u65b9 GitHub \u7db2\u7ad9\u4e0a\u63d0\u4f9b\u7684\u6587\u4ef6\u4ee5\u53d6\u5f97\u6545\u969c\u6392\u9664\u63d0\u793a\u3002<\/p>\n<h4><strong>3. \u6211\u5982\u4f55\u77e5\u9053\u6211\u7684 Jellyfin \u6216 Plex \u4f3a\u670d\u5668\u662f\u5426\u6b63\u5e38\u904b\u4f5c\uff1f<\/strong><\/h4>\n<p>\u70ba\u78ba\u4fdd\u60a8\u7684\u4f3a\u670d\u5668\u6b63\u5e38\u904b\u4f5c\uff0c\u8acb\u4f7f\u7528\u4f3a\u670d\u5668\u7684 IP \u4f4d\u5740\u900f\u904e Web \u700f\u89bd\u5668\u5b58\u53d6\u5b83\u3002\u5982\u679c\u5b83\u52a0\u8f09\u4e26\u986f\u793a\u60a8\u7684\u5a92\u9ad4\u5eab\uff0c\u5247\u60a8\u7684\u8a2d\u5b9a\u6b63\u5e38\u3002<\/p>\n<p><a class=\"xiaomi\" href=\"https:\/\/www.howtogeek.com\/did-you-know-you-could-stream-plex-or-jellyfin-in-your-terminal\/\" rel=\"noopener nofollow\" target=\"_blank\">\u4f86\u6e90\u548c\u5716\u7247<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5feb\u901f\u9023\u7d50 \u60a8\u60f3\u5c07\u60a8\u7684 Plex \u6216 Jellyfin \u4e32\u6d41\u5a92\u9ad4\u63d0\u5347\u5230\u4e00\u500b\u65b0\u7684\u6c34\u5e73\u55ce\uff1f\u76f4\u63a5\u5f9e\u60a8\u7684\u7d42\u7aef\u9032\u884c\u4e32\u6d41\u50b3\u8f38\u600e\u9ebc\u6a23\uff1f\u4f7f\u7528mov-cli-jellyplex \u63d2\u4ef6\uff0c\u60a8\u53ef\u4ee5\u3002\u8b93\u6211\u5011\u4f86\u63a2\u7d22\u4e00\u4e0b\u9019\u500b\u904e\u7a0b\u5427\uff01 \u4ec0\u9ebc\u662f mov-cli\uff1f mov-cli \u53ef\u80fd\u9084\u6c92\u6709\u51fa\u73fe\u5728\u60a8\u7684\u8996\u7dda\u4e2d\uff0c\u4f46\u5b83\u662f\u4e00\u500b\u5275\u65b0\u5de5\u5177\uff0c\u53ef\u8b93\u60a8\u76f4\u63a5\u900f\u904e\u7d42\u7aef\u4e32\u6d41\u50b3\u8f38\u5404\u7a2e\u5a92\u9ad4\u985e\u578b\u3002\u5c0d\u65bc\u90a3\u4e9b\u5728\u547d\u4ee4\u5217\u74b0\u5883\u4e2d\u8301\u58ef\u6210\u9577\u7684\u4eba\u4f86\u8aaa\uff0cmov-cli \u662f\u4e00\u500b\u904a\u6232\u898f\u5247\u6539\u8b8a\u8005\u3002 \u8a2d\u5b9a\u8d77\u4f86\u5f88\u7c21\u55ae\u3002\u5b89\u88dd\u6307\u5357\u9069\u7528\u65bc\u591a\u7a2e\u5e73\u53f0\uff0c\u5305\u62ecWindows\u3001Linux\u3001macOS\u3001Android\uff0c\u751a\u81f3iOS\u3002\u96d6\u7136\u6211\u5c07\u5728\u672c\u6307\u5357\u4e2d\u8a73\u7d30\u4ecb\u7d39 Windows \u5b89\u88dd\uff0c\u4f46\u6240\u6709\u5e73\u53f0\u90fd\u63d0\u4f9b\u4ee4\u4eba\u9a5a\u8a1d\u7684\u76f8\u4f3c\u9ad4\u9a57\u3002 \u5982\u4f55\u5b89\u88dd mov-cli \u70ba\u4e86\u6700\u5927\u9650\u5ea6\u5730\u63d0\u9ad8 jellyplex \u63d2\u4ef6\u7684\u9ad4\u9a57\uff0c\u60a8\u9700\u8981\u5148\u5b89\u88dd mov-cli\u3002\u5728\u672c\u6307\u5357\u4e2d\uff0c\u6211\u5011\u5c07\u91cd\u9ede\u653e\u5728 Windows \u5b89\u88dd\u3002 \u5728\u958b\u59cb\u4e4b\u524d\uff0c\u8acb\u78ba\u4fdd\u60a8\u7684\u7cfb\u7d71\u4e0a\u5b89\u88dd\u4e86Scoop \u3002\u5982\u679c\u6c92\u6709\uff0c\u8b93\u6211\u5011\u958b\u59cb\u5427\uff1a \u4ee5\u7ba1\u7406\u54e1\u8eab\u5206\u555f\u52d5 Windows PowerShell \u4e26\u57f7\u884c\u4e0b\u5217\u547d\u4ee4\uff1a Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserInvoke-RestMethod -Uri https:\/\/get.scoop.sh | Invoke-Expression \u73fe\u5728 Scoop \u5df2\u5b89\u88dd\u5728\u60a8\u7684\u7cfb\u7d71\u4e0a\uff0c\u6253\u958b Windows \u547d\u4ee4\u63d0\u793a\u5b57\u5143\u4e26\u7e7c\u7e8c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88dd\u5176\u9918\u76f8\u4f9d\u6027\uff1a scoop install git python scoop bucket add extras scoop install mpv fzf [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[880,75,6],"class_list":["post-6790","post","type-post","status-publish","format-standard","hentry","category-how-to","tag-apps-web-apps","tag-streaming","tag-windows"],"acf":[],"_links":{"self":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/6790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/comments?post=6790"}],"version-history":[{"count":1,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/6790\/revisions"}],"predecessor-version":[{"id":6791,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/posts\/6790\/revisions\/6791"}],"wp:attachment":[{"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/media?parent=6790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/categories?post=6790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howtogeek.blog\/zh\/wp-json\/wp\/v2\/tags?post=6790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}