Method for transmitting streaming media data and related device
AssigneeHuawei Technologies Co., Ltd.
InventorsBowen Zheng, Xuesen Lin
Life of this patent
Estimating the term…
Abstract
A data streaming method includes determining M key frames in a target group of pictures GOP, where the target GOP includes L frames, M is an integer greater than 0, and L is an integer greater than 2. Scalable encoding is performed on source data of each of the M key frames to generate M pieces of base layer data and N pieces of extension layer data, where data quality of extension layer data corresponding to each key frame is higher than data quality of base layer data corresponding to each key frame, and N is an integer greater than or equal to M. Differential protection is performed on the base layer data and the extension layer data of each key frame to obtain first encoded data of the M key frames.
Claims14
A method for transmitting streaming media data, the method applied to a source end and comprising:
- determining M key frames in a target group of pictures (GOP), wherein the target GOP comprises L frames, M is an integer greater than 0, and L is an integer greater than 2;
- separately performing scalable encoding on source data of each of the M key frames to generate M pieces of base layer data and N pieces of extension layer data, wherein data quality of extension layer data corresponding to each key frame is higher than data quality of base layer data corresponding to each key frame, and N is an integer greater than or equal to M;
- performing differential protection on the base layer data and the extension layer data of each key frame to obtain first encoded data of the M key frames, wherein the first encoded data comprises M pieces of base layer data that have undergone the differential protection and N pieces of extension layer data that have undergone the differential protection;
- wherein the performing differential protection on the base layer data and the extension layer data of each key frame to obtain first encoded data of the M key frames comprises:
- dynamically adding m redundant data packets to the base layer data corresponding to each key frame and dynamically adding n redundant data packets to the extension layer data corresponding to each key frame to generate the M pieces of base layer data that have undergone the differential protection and the N pieces of extension layer data that have undergone the differential protection to obtain the first encoded data, wherein m is greater than n, m is an integer greater than 2, and n is an integer greater than 1, the quantity of the redundant data packets added to the base layer data or added to the extension layer data being dynamically adjusted based on a current network condition.
A device for transmitting streaming media data, the device comprising:
- a first processing unit configured to determine M key frames in a target group of pictures (GOP), wherein the target GOP comprises L frames, M is an integer greater than 0, and L is an integer greater than 2;
- a first encoding unit configured to separately perform scalable encoding on source data of each key frame in the M key frames to generate M pieces of base layer data and N pieces of extension layer data, wherein data quality of extension layer data corresponding to each key frame is higher than data quality of base layer data corresponding to each key frame, and N is an integer greater than or equal to M;
- a second processing unit configured to perform differential protection on the base layer data and the extension layer data of each key frame to obtain first encoded data of the M key frames, wherein the first encoded data comprises M pieces of the base layer data that have undergone the differential protection and N pieces of the extension layer data that have undergone the differential protection;
- wherein the performing differential protection on the base layer data and the extension layer data of each key frame to obtain first encoded data of the M key frames comprises:
- dynamically adding m redundant data packets to the base layer data corresponding to each key frame and dynamically adding n redundant data packets to the extension layer data corresponding to each key frame to generate the M pieces of base layer data that have undergone the differential protection and the N pieces of extension layer data that have undergone the differential protection to obtain the first encoded data, wherein m is greater than n, m is an integer greater than 2, and n is an integer greater than 1, the quantity of the redundant data packets added to the base layer data or added to the extension layer data being dynamically adjusted based on a current network condition.
Dependencies are inferred from the claim text.