Device and method for editing media file
AssigneeSamsung Electronics Co., Ltd.
InventorsHongseob Kim, Chulhee Kim, Wonki Kim
Life of this patent
Estimating the term…
Abstract
A method of editing a media file may include: identifying a first header including metadata and media data including one or more media samples from a media file to be edited; generating a second header based on the first header; modifying the second header based on modification information; determining a location of the second header to be after the media data when a location of the first header is before a location of the media data; determining the location of the second header based on the location of the first header when the location of the first header is after the location of the media data; and/or extracting metadata of the second header in a media file information extraction process.
Claims21
An electronic device, comprising:
- at least one processor comprising processing circuitry;
- and
- a memory configured to store instructions which, when executed by the at least one processor, cause the at least one processor to:
- identify a first header and a media data from a media file to be edited, wherein the first header comprises metadata and wherein the media data comprises at least one media sample,
- generate a second header based on the first header by copying at least a portion of the first header,
- modify the second header based on modification information, and
- while maintaining a location of the media data unchanged:
- determine a location of the second header to be after the media data when a location of the first header is before the location of the media data, and
- determine the location of the second header based on the location of the first header when the location of the first header is after the location of the media data,
- wherein an offset information corresponding to the media samples included in the second header is the same as an offset information corresponding to the media samples included in the first header,
- determine whether to include the first header in a media file to be transmitted based on a signal indicating whether to remove the first header,
- remove, from the media data, at least one portion of the at least one media sample corresponding to a play section removed based on the modification information, and
- determine a media file comprising the media data from which the at least one portion of the at least one media sample is removed, to be the media file to be transmitted.
An electronic device, comprising:
- at least one processor comprising processing circuitry;
- and
- a memory configured to store instructions which, when executed by the at least one processor, cause the at least one processor to:
- identify a first header and a media data from a media file to be edited, wherein the first header comprises metadata and wherein the media data comprises at least one media sample,
- generate a second header based on the first header by copying at least a portion of the first header,
- modify the second header based on modification information,
- determine a location of the second header to be after the media data when a location of the first header is before a location of the media data,
- determine the location of the second header based on the location of the first header when the location of the first header is after the location of the media data,
- determine whether to change the first header in a media file to be transmitted to a free space by using a skip box to prevent the first header from being parsed,
- remove, from the media data, at least one portion of the at least one media sample corresponding to a play section removed based on the modification information, and
- determine a media file comprising the media data from which the at least one portion of the at least one media sample is removed, to be the media file to be transmitted,
- wherein metadata of the second header, not the metadata of the first header, is extracted in a media file information extraction process.
A method of editing a media file, the method comprising:
- identifying a first header and a media data from a media file to be edited, wherein the first header comprises metadata and wherein the media data comprises at least one media sample;
- generating a second header based on the first header by copying at least a portion of the first header;
- modifying the second header based on modification information;
- and
- while maintaining a location of the media data unchanged:
- determining a location of the second header to be after the media data when a location of the first header is before the location of the media data;
- and
- determining the location of the second header based on the location of the first header when the location of the first header is after the location of the media data,
- wherein an offset information corresponding to the media samples included in the second header is the same as an offset information corresponding to the media samples included in the first header,
- determining whether to include the first header in a media file to be transmitted based on a signal indicating whether to remove the first header,
- removing, from the media data, at least one portion of the at least one media sample corresponding to a play section removed based on the modification information,
- determining a media file comprising the media data from which the at least one portion of the at least one media sample is removed, to be the media file to be transmitted.
Dependencies are inferred from the claim text.