2008年4月10日 星期四

lab8 the analysis and evaluation of video transmission

the transmission quality will depend on GOP pattern, Quantization value, packet size and packet error rate.

we will use MyEvalvid to simulate the connection of those parameters.

1.
use the ffmpeg to transform YUV to m4v
qscale is added.


2.
And than use the Mp4Box to make it into mp4


3.
use mp4trace to trace the information of every frame which will save in foreman_qcif.st file.


4.

use ns to simulate sd rd files.


5.
the etmp4 file can create a loss frame mp4 video.



7.

ffmpeg: recover the mp4 to yuv files.


8.
calculate the psnr of yuv video.



9.
compare the packet loss abd GOP patten.
find the relationship.

find the GOP of length 9



10.

The GOP of length 15


The more MTU increases, the higher average PSNR.

lab7 MyEalvid-NT

understanding the improved version of MyEalvid.

1. we are going to find the decodable frame rate, packet loss rate, packet delay and packet jitter.

internet - wireless AP - video recv.
/------------packets lost---------/

2. ns2 simualtion


3.
use et.exe to evaluate sd rd .st


total_frame=89998
decodable_frame=82217
and I-frame, P-frame, B-frame

4.
find average and maximum delay



5. plot the time delay of packet sequence



6. plot the frame delay



7 plot the packet jitter



8. plot the frame jitter

lab 6 MyEvalVid

understanding MyEvalVid and combine with NS2

example 1

1.use ffmepg to make YUV file to m3v file(using foreman film example)


2. after .m4v file is OK, use MP4BOX to make mp4 file



3.use mp4trace to trace information of every frame.
and we can get .st file

start ns2 simulation




4. sd record and rd record are created.

and then we can use etmp4 to re-generate the frame loss film


5.
source yuv and reconstruction ynv PSNR calculate.



6 finally, the yuv viewer help us to see the difference the file.



example 2.

we will find how to simulate two video flow.

1. sd1 rd1 found!


2.




using the same technique, the PSNR= 34.034 for video flow 1

3. comparison.

lab5 wireless network packet loss model

1. scenario 1: multicast transmission

pGG pBB pG pB loss_model comm_type

from the ns2 simulation


2.


sd: 12351 send.



rd: 11124 received.

12351-11123/12351=0.0994251478

2. scenario 2

unicast transmission




12351 packets send


12061 packets received

packet loss= 0.0234 (PG)^4

3. scenario 3

GE model
multicast transmission



12351 packets send.





12118 packets received


total packet loss = 0.0188 which is close to the theory.