The invention discloses a
slicing method for SVC video files in a P2P streaming media
system. The
slicing method for the SVC video files in the P2P streaming media
system comprises the following steps: S1, SVC video data is read, and NAL units with equal triple values (D,T,Q) in NAL head information are stored in a same subfile, and at the same time, the
file size C (i, j, k) of each subfile is subjected to
statistical analysis and is stored; S2, each subfile is uniformly divided into N slices; and a maximum value of each slice is preset to be Smax, and the minimum value of each slice is preset to be Smin, so that a
slice number N is any integer in accordance with the following formula, and the
slice number N in each subfile is equal to the
slice number of any other subfile; S3, according to the slice number N calculated according to the step S2,
slicing is carried out on each subfile, and the size of each slice in each subfile is equal to the size of any other slice according to a
data filling method. According to the slicing method for the SVC video files in the P2P streaming media
system, costs spent on servers and networks are reduced, and synchronization and coordination quality of videos are raised.