MP4 - Online Linux Manual PageSection : 3
Updated : Version 0.9
Source : Cisco Systems Inc.
Note : MP4 File Format Library

NAMEMP4GetSampleRenderingOffset − Get the rendering offset of a track sample

SYNTAX#include <mp4.h> MP4Duration MP4GetSampleRenderingOffset(
MP4FileHandle
hFile,
MP4TrackId
trackId,
MP4SampleId
sampleId
);

ARGUMENTShFile  Specifies the mp4 file to which the operation applies. trackId  Specifies the track to which the operation applies. sampleId  Specifies the sample to which the operation applies. Caveat: the first sample has id 1 not 0.

RETURN VALUESUpon success, the rendering offset in track time scale units. Upon an error, MP4_INVALID_DURATION.

DESCRIPTIONMP4GetSampleRenderingOffset returns the rendering offset of the specified sample from the specified track in the track time scale units. See MP4ConvertFromTrackDuration() for how to map this value to another time scale. The sample rendering offset is typically zero for all media types other than video. For video, encodings such as those defined by MPEG have three types of frames: I, P, and B. To increase coding efficiency B frames can depend on I or P frames that should be rendered after the B frame. However to decode the B frame the I or P frame must already have been decoded. This situation is addressed by placing the frames in decoding order in the video track, and then setting the rendering offset property to indicate when the video frame should actually be rendered to the screen. Hence the start time of a sample indicates when it should be decoded, the start time plus the rendering offset indicates when it should be rendered.

SEE ALSOMP4(3) MP4ConvertFromTrackDuration(3)
0
Johanes Gumabo
Data Size   :   5,961 byte
man-MP4GetSampleRenderingOffset.3Build   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   3 / 256,175
Visitor ID   :     :  
Visitor IP   :   18.118.128.17   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.