我正在使用gtk开发应用程序。我需要一种方法来仅播放mp4文件的音频。
i > 0
我只想播放音频;我不希望GStreamer打开一个窗口来显示视频。
答案 0 :(得分:0)
检查flags
的{{1}}属性:
playbin
因此,当您选择排除 flags : Flags to control behaviour
flags: readable, writable
Flags "GstPlayFlags" Default: 0x00000617, "soft-colorbalance+deinterlace+soft-volume+text+audio+video"
(0x00000001): video - Render the video stream
(0x00000002): audio - Render the audio stream
(0x00000004): text - Render subtitles
(0x00000008): vis - Render visualisation when no video is present
(0x00000010): soft-volume - Use software volume
(0x00000020): native-audio - Only use native audio formats
(0x00000040): native-video - Only use native video formats
(0x00000080): download - Attempt progressive download buffering
(0x00000100): buffering - Buffer demuxed/parsed data
(0x00000200): deinterlace - Deinterlace video if necessary
(0x00000400): soft-colorbalance - Use software color balance
(0x00000800): force-filters - Force audio/video filter(s) to be applied
的标志组合时,它不应呈现视频路径。