tml3nr
Moderator
Báo cáo với cả nhà là em thấy cái này tương đối dễ mod, vì nó có cho mình set program. Hiện đã xuất lệnh qua MPD từ PC được. Nhưng đang còn vướng chổ đẩy link httpEm mò tiếp việc play youtube opus sang mpd (Đã enable ffmpeg).
1. Download mpc for windows. Extract vào 1 folder. Thí dụ như c:/mpc
http://www.musicpd.org/download/mpc/0/mpc-0.22-win32.zip
2. Tạo 1 file c:/mpc.cmd có nội dung sau:
Mã:mpc -h 192.168.1.12 clear mpc -h 192.168.1.12 add %1 mpc -h 192.168.1.12 play exit
3. Vào web genyt.com chọn video muốn play. Copy link webm 160abr (opus 160kbps)
4. Vào cmd c:/mpc. Chạy như sau (link video)
Mã:c:/mpc.cmd "https://redirector.googlevideo.com/videoplayback?expire=1560282501&ei=JLH_XKKlO4PCD6vAsdgE&ip=107.178.194.210&id=o-AFwCqdPFOtl7W0LhGBT81NT1MnyF1OJ_u9mZcUGpha1d&itag=251&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-qxo7sney%2Csn-qxoedn7k&ms=au%2Crdu&mv=m&pl=28&initcwndbps=46528750&mime=audio%2Fwebm&gir=yes&clen=5848944&dur=366.861&lmt=1537990192574865&mt=1560260808&fvip=5&keepalive=yes&c=WEB&txp=5511222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mm%2Cmn%2Cms%2Cmv%2Cpl%2Cinitcwndbps&lsig=AHylml4wRAIgMQlN08Ecch26KXsIiuuPBOJlLRqrcaBMU8nrbd_hSvUCIB4jUZNBu2RdE1vPrfpqXJtEMB5og2WBC3z1nfz75xbO&sig=ALgxI2wwRAIgKoUQ9y-_akrgepfIs8xVM6Irlbs1z5lFUaliZMMABMsCIBTys4nVdQEeLl0KF4Xy4a4A8uMJbmuSNwezAmAfBXMU&ratebypass=yes&utmg=ytap1&title=Adele_-_Hello.webm"
File opus sẽ được đẩy sang mpd và play.
Vậy nếu mình mod được cái extension browser dạng "Send link to" là có thể dùng cách này để play opus sang pi. Hơi thô thiển nhưng trước mắt play được opus chỉ bằng 1 click chuột
More info. Tham số của mpc for Windows:
Mã:Usage: mpc [options] <command> [<arguments>] mpc version: 0.22 Options: -v, --verbose Give verbose output -q, --quiet Suppress status message -q, --no-status synonym for --quiet -h, --host=<host> Connect to server on <host> -P, --password=<password> Connect to server using password <password> -p, --port=<port> Connect to server port <port> -f, --format=<format> Print status with format <format> -w, --wait Wait for operation to finish (e.g. database update) Commands: mpc Display status mpc add <file> Add a song to the current playlist mpc crop Remove all but the currently playing song mpc current Show the currently playing song mpc del <position> Remove a song from the current playlist mpc play [<position>] Start playing at <position> (default: 1) mpc next Play the next song in the current playlist mpc prev Play the previous song in the current playlist mpc pause Pauses the currently playing song mpc toggle Toggles Play/Pause, plays if stopped mpc stop Stop the currently playing playlists mpc seek [+-][HH:MM:SS]|<0-100>% Seeks to the specified position mpc clear Clear the current playlist mpc outputs Show the current outputs mpc enable <output #> Enable a output mpc disable <output #> Disable a output mpc shuffle Shuffle the current playlist mpc move <from> <to> Move song in playlist mpc playlist Print the current playlist mpc listall [<file>] List all songs in the music dir mpc ls [<directory>] List the contents of <directory> mpc lsplaylists List currently available playlists mpc load <file> Load <file> as a playlist mpc insert <file> Insert a song to the current playlist after the current track mpc save <file> Save a playlist as <file> mpc rm <file> Remove a playlist mpc volume [+-]<num> Set volume to <num> or adjusts by [+-]<num> mpc repeat <on|off> Toggle repeat mode, or specify state mpc random <on|off> Toggle random mode, or specify state mpc single <on|off> Toggle single mode, or specify state mpc consume <on|off> Toggle consume mode, or specify state mpc search <type> <query> Search for a song mpc find <type> <query> Find a song (exact match) mpc findadd <type> <query> Find songs and add them to the current playlist mpc list <type> [<type> <query>] Show all tags of <type> mpc crossfade [<seconds>] Set and display crossfade settings mpc clearerror Clear the current error mpc mixrampdb [<dB>] Set and display mixrampdb settings mpc mixrampdelay [<seconds>] Set and display mixrampdelay settings mpc update [<path>] Scan music directory for updates mpc sticker <uri> <get|set|list|del> <args..> Sticker management mpc stats Display statistics about MPD mpc version Report version of MPD mpc idle [events] Idle until an event occurs mpc idleloop [events] Continuously idle until an event occurs mpc replaygain [off|track|album] Set or display the replay gain mode mpc channels List the channels that other clients have subscribed to. mpc sendmessage <channel> <message> Send a message to the specified channel. mpc waitmessage <channel> Wait for at least one message on the specified channel. mpc subscribe <channel> Subscribe to the specified channel and continuously receive messages. See man 1 mpc for more information about mpc commands and options
PS: Hiện tại paste link vào Cantata mất 2 click
https://add0n.com/download-with.html
Chỉnh sửa lần cuối: