wang-bin / QtAV

A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
http://qtav.org
3.95k stars 1.5k forks source link

Play audio only? #1032

Open SafaAlfulaij opened 6 years ago

SafaAlfulaij commented 6 years ago

QtAV, Qt version and platform

QtAV 1.12.0(Nov 1 2017, 13:29:41) Qt 5.10.0 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.2.1 20171128) ArchLinux, 64bit

Feature Request

This is a feature request to add an option to play only the audio track in the video file. This helps with performance since one would only like to listen to a music without the video showing the act, subtitles, extra stuff.

wang-bin commented 6 years ago

AVPlayer.setVideoStream(-1) disables video

SafaAlfulaij commented 6 years ago

I mean in the QtAV Player (GUI player) O:)

xj42 commented 6 years ago

AVPlayer.setVideoStream(-1) does not seem to work