gh_av LibraryDescriptiongh_av is the module that manages audio/video playback. This module is based on FFmpeg. Number of functions: 17
gh_av.updateDescriptionUpdates the sound system. Must be called once per frame. LanguagesLua - Python ParametersThis function has no input parameter(s). Return ValuesThis function has no return value(s). Code sample
gh_av.decoder_openDescriptionOpens an audio/video file. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_av.decoder_closeDescriptionCleans up and closes an audio-video object. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_av.video_init_textureDescriptionCreates a texture based on video parameters. This texture can be used with all gh_texture functions. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_av.video_update_textureDescriptionUpdates the texture GPU memory with current video frame. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_av.start_audio_video_processingDescriptionStarts the audio-video processing thread. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_av.stop_audio_video_processingDescriptionStops the audio-video processing thread. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_av.process_frameDescriptionProcess/fetch the current audio-video frame. You can call this function in a FRAME script if you don not use start_audio_video_processing() / stop_audio_video_processing(). LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_av.get_streams_indexDescriptionReturns the audio and video stream indices. Useful to know if an audio video file has an audio or a video stream. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_av.set_volumeDescriptionSets the volume of the audio stream. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_av.pauseDescriptionPauses an audio-video playback. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_av.reset_streamsDescriptionResets the audio-video streams. LanguagesLua - Python ParametersReturn ValuesThis function has no return value(s). Code sample
gh_av.get_elapsed_timeDescriptionReturns the elapsed time since the start of playing. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_av.get_durationDescriptionDuration of the audio-video file. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_av.video_get_resolutionDescriptionReturns the resolution in pixels of video frames. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_av.get_num_framesDescriptionReturns the numbers of frames of video and audio streams. LanguagesLua - Python ParametersReturn ValuesCode sample
gh_av.get_codec_nameDescriptionReturns the codec names of video and audio streams. LanguagesLua - Python ParametersReturn ValuesCode sample
2013-2015 Geeks3D. All Rights Reserved. .:- G3D Network -:. |