1 / 17

實驗六: MyEvalVid

實驗六: MyEvalVid. 指導教授:許子衡 教授 學生:王志嘉. 實驗目的. 暸解 EvalVid 的系統架構並得知其優缺點 暸解整合 EvalVid 和 NS2 所得之 MyEvalVid 的系統架構 暸解如何使用 MyEvalVid 來模擬和評估多媒體影像傳輸. 實驗步驟 — 模擬的網路架構圖. 模擬網路架構圖. Step1&2. Step2 解釋. ./ffmpeg.exe -s qcif -vcodec mpeg4 -r 30 -g 9 -bf 2 -i foreman_qcif.yuv foreman_qcif.m4v

palmer-rios
Download Presentation

實驗六: MyEvalVid

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 實驗六:MyEvalVid 指導教授:許子衡 教授 學生:王志嘉

  2. 實驗目的 • 暸解EvalVid的系統架構並得知其優缺點 • 暸解整合EvalVid和NS2所得之MyEvalVid的系統架構 • 暸解如何使用MyEvalVid來模擬和評估多媒體影像傳輸

  3. 實驗步驟—模擬的網路架構圖 模擬網路架構圖

  4. Step1&2

  5. Step2解釋 • ./ffmpeg.exe -s qcif -vcodec mpeg4 -r 30 -g 9 -bf 2 -i foreman_qcif.yuv foreman_qcif.m4v • 我們利用ffmpeg.exe來對YUV檔案進行轉檔,轉成m4v的檔案 • -s為set frame size;qcif指的是176*144;-vcodec參數是指定壓縮的方式;這裡用mepg4去壓縮。 • -r為set frame rate;這裡設計30 frame/sec • -g為set the group of picture size;這裡設定9 frame/gop

  6. Step2解釋 • -bf為use “frames” B frames,這裡設定I與P之間或P與P之間有兩個B frame • -i為input file name,輸入影片檔名為foreman_qcif.yuv;處理後的檔名為foreman_qcif.m4v

  7. Step3 • 轉成m4v檔案後,接著要使用MP4Box檔案將影片再轉成mp4檔案。

  8. Step4

  9. Step4 解釋 • ./mp4trace.exe -f -s 192.168.0.2 12346 foreman_qcif.mp4 > foreman_qcif.st • 在把影片轉成mp4的檔案後,利用mp4trace程式將影片中的每一個frame相關資訊擷取出來並存放到副檔名為st的檔案中 • 這裡設定的192.168.0.2為要傳送出去的目的IP,12346為目標的port。

  10. foreman_qcif.st 檔案內容

  11. Lab 6_1.tcl

  12. Lab 6_1.tcl

  13. 執行lab 6_1.tcl的結果

  14. Step 6 • 在這裡會使用模擬過程中產生的傳送端記錄檔sd、接收端記錄檔rd及影片記錄檔foreman_qcif.st檔案和mp4檔案,經由etmp4程式產生一個有畫面遺失的影片mp4檔

  15. Step 7 • 再使用ffmpeg程式將上一步驟所得之重建後之mp4回復成yuv影片檔。

  16. Step 8 • 在這裡我們可以使用avgpsnr程式去針對重建後的yuv影片檔及原始yuv影片檔,獲得重建後yuv影片的PSNR值的大小。

  17. Step 9 • 最後,當使用MyEvalVid去驗證多媒體網路的架構時,除了像step 8去計算出重建後影片的PSNR值外,也可以使用YUVviewer程式去觀察重建前後的影片差別

More Related