How to evaluate MPEG video transmission?



1.      My work was extended from my original work, An Evaluation Framework for More Realistic Simulations of MPEG Video Transmission. The corresponding myEvalvid was at and

2.      Because the application used in NCTUns is the real application. Consequently, I use the TOS field in the IP header to store the frame type information. I0 represents I frame, 20 represents P frame, and 30 represents B frame. Also, I need to store the packet ID information (needed for performance analysis) in the application header. If the frame size or the segmented size is less than 10 bytes, this packet will set to 10. (During simulation, the packet does not contain any real MPEG data in it)



1.      From, save in the /root and decompress it with “tar xvf myevalvid.tar.bz2”.

2.      Refer to, insert sFIFO_video into NCTUNS.

3.      Refer to, add mystg2/myrtg2 applications into NCTUNS.

4.      Install ffmpeg for video encoding/decoding.

5.      Install gpac for MP4Box



1.      Video Encoding.



2.      Following command lines create ISO MP4 files containing the video samples (frames) and a hint track which describes how to packetize the frame the transport with RTP..



3.        The mp4trace tool from EvalVid is able to send a hinted mp4-file per RTP/UDP to a specified destination host. The output of mp4trace will be needed later, so it should be redirected to a file.



4.      The file format is not for mystg2. Therefore, we should change the format.



5.      Create the following topology.


6.      Click “E” to edit property. (Assume the project name is test1).



(Before sending out the video packets, we need to send out some packets. Otherwise, the first few packets cannot be recorded in the receiver trace file even there are enough bandwidth for video transmission.)



7.      Click “R” but don’t click Simulation/Run. We have to do some settings. (Because we have to copy the st to the working directory. Also, the test1. tcl needs to be modified. Because the FIFO queues in node 1 and node2 are needed to be replaced by sFIFO_video. I don’t add this module in the GUI.)











8.      Now, click Simulation/Run to run the simulation.


9.      After simulation, you can find mysd_1 and myrd_2 under /tmp. Copy these two files to /root/myevalvid.


10.  The next step is the reconstruction of the transmitted video as it is seen by the receiver. For this, the video and trace files are processed by etmp4 (Evaluate Traces of MP4-file transmission)



11.  Video Decoding.



12.  Compute the PSNR.



13.  You can use yay to visually compare the delivered video quality.





Dr. Chih-Heng Ke (,

Department of Computer Science and Information Engineering, National Quemoy University, Taiwan