--- tags: 開源錄像藝術同步播放器 --- # [工作坊共筆] 開源錄像同步播放器工作坊 :::info 這是 12/2 工作坊使用的線上共筆版。 「共筆」的意思是你會「同時」看見許多人編輯這份文件。 點擊選單列的「編輯」按鈕,即可進入編輯畫面。 ::: ## 相關資源 * [工作坊投影片](https://github.com/andrewintw/rpi-video-sync-looper/blob/main/docs/2023-12-02-workshop-DAC-Taipei.pdf) (pdf) * GitHub: https://github.com/andrewintw/rpi-video-sync-looper ## 動手做 :::info 動手練習時會用到的檔案/資源 ::: **映像檔燒錄軟體** * [balenaEtcher](https://etcher.balena.io/#download-etcher) (燒錄時**不需要**先將 zip 解壓縮) **LAB1: 直接安裝封裝好的映象檔** 1. 下載映像檔 [rasbian-buster-videosync.img.gz](https://drive.google.com/file/d/1Ja70rtXkPDeGQ3Hvx1uGSTM6tNpmpyOp/view?usp=share_link) (以 Raspbian Buster 為 base OS,再安裝 rpi-video-sync-looper 套件後的映像檔) 2. 使用 [balenaEtcher](https://etcher.balena.io/#download-etcher) 將映像檔燒錄至 SD 卡 3. 將 SD 卡接入筆電,修改設定檔(video-sync.conf),決定裝置扮演角色 * `video.player.role`=master or slave 4. 將你想要播放的 mp4 檔(1080p)放在 USB 隨身碟頂層 NOTE: 必須格式化為 exFAT * Demo 影片: [big_buck_bunny_1080p_h264_2min.mp4](https://reurl.cc/l71mDv) 6. 將 SD 卡、USB 隨身碟插入樹莓派,上電測試 **LAB2: 手動安裝(從無到有)** 1. 下載 Raspbian Buster 映像檔: [2023-05-03-raspios-buster-armhf-lite.img.xz](https://downloads.raspberrypi.com/raspios_oldstable_lite_armhf/images/raspios_oldstable_lite_armhf-2023-05-03/2023-05-03-raspios-buster-armhf-lite.img.xz) (原始的 Raspbian Buster 映像檔,不含 rpi-video-sync-looper 套件) 2. 使用 [balenaEtcher](https://etcher.balena.io/#download-etcher) 將映像檔燒錄至 SD 卡 3. 啟用 ssh 並以 ssh 進入樹莓派 4. 執行網路安裝指令 ``` sudo apt update && \ sudo apt install -y omxplayer exfat-fuse exfat-utils python3 psmisc procps libpcre3 fonts-freefont-ttf fbset libssh-4 python3-dbus ``` 下面的 master 也可以改成 slave ``` curl -LJs https://raw.githubusercontent.com/andrewintw/rpi-video-sync-looper/main/install.sh | sudo bash -s -- master ``` 4. 將你想要播放的 mp4 檔(1080p)放在 USB 隨身碟頂層 NOTE: 必須格式化為 exFAT * Demo 影片: [big_buck_bunny_1080p_h264_2min.mp4](https://reurl.cc/l71mDv) 6. 將 SD 卡、USB 隨身碟插入樹莓派,上電測試 **其他提醒** * USB 一定要插、而且**需要格式化為 exFAT** * 使用 **1080p 的 mp4**,並且放置在 USB 隨身碟資資料夾的**最頂層** * 先插入 USB 才上電 [SOP-究極新手指南](https://mothraproductions.notion.site/SOP-f90a3ad5b1344bb6a8ef8e424e15a4ce) (馮稚暝製作) ## 筆記/交流/發問區 :::info 想問什麼、有什麼點子或想法,或者隨便想寫點什麼都可以寫在這邊。 只要小心不要不小心蓋掉別人的就好。 這只是筆記,不要太在意文法、結構,放輕鬆。 ::: ex: 中午的食物是什麼? * [開源錄像藝術同步播放器開發計畫規劃](https://hackmd.io/@openlabtaipei/video-sync) (骨灰級的共筆文件) * [如何在技術社群有效發問?](https://hackmd.io/Ulsi2gxpRnmyIiis_LZgTw) * 常見的 ssh client * putty * MobaXterm(推薦) * Xshell(我個人推薦) * SFTP (filezilla) * HFS ~ HTTP File Server 交流時間 問:同步播放在技術上為什麼那麼難達到,有哪些痛點 * 播放 video 規格建議 * time delay (network, routing?) * use ffmpeg command * [ChangingFrameRate](https://trac.ffmpeg.org/wiki/ChangingFrameRate) * [change bitrate](https://stackoverflow.com/questions/45464788/resize-and-change-bitrate-with-ffmpeg) * master timecode (ltc, mtc) * video, audio time code | 可以分開錄製 * mapping * 播放多個檔案 * 用其他同步播放器長時間播放測試是正常的,但還是會遇到問題 * 推測比較有可能的原因是電源不穩造成 * Time Code * http://www.midimall.com.tw/v2//node/89 問: 播放器的能源問題與比較,樹莓派相對於其他的播放器是不是比較省能源? ## 推廣 使用者問題需要集中到哪一個平台上? openlab.taipei 伴伴學 將計畫公開正式發佈 說明中: * 計畫緣起 * 執行過程 * 感謝贊助 * 鼓勵大家使用與回報 * 未來的目標 寄信給報名成功但是沒有參與的學員
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up