简体   繁体   English

如何使gstreamer1.0的playbin播放多声道音频5.0而不向下混合到立体声

[英]how to make playbin of gstreamer1.0 playing multichannel-audio 5.0 playing without downmixing to stereo

I'm writing a mediaplayer-gui fitting some needs of a medialibrary containing classical music only. 我正在写一个mediaplayer-gui,适合仅包含古典音乐的媒体库的某些需求。 Language is python3/tkinter. 语言是python3 / tkinter。 One backend is gstreamer1.0, playbin (seems to be the only one, playing gapless). 一个后端是gstreamer1.0 playbin(似乎是唯一一个,无缝播放)。

When playbin gets the uri of a file with 5.0 channels (FRONT_LEFT,FRONT_RIGHT,FRONT_CENTER,REAR_LEFT,REAR_RIGHT) it gives following warning: ** (python3:13745): WARNING **: Unpositioned audio channel position flag set but channel positions present and plays the file downmixed to stereo. 当playbin获取具有5.0通道(FRONT_LEFT,FRONT_RIGHT,FRONT_CENTER,REAR_LEFT,REAR_RIGHT)的文件的uri时,会发出以下警告:**(python3:13745):警告**:设置了未定位的音频通道位置标志,但存在通道位置,并且播放缩混为立体声的文件。

5.0 is most common in classical-music media(LFE is mostly unwanted). 5.0是古典音乐媒体中最常见的(LFE通常是不需要的)。

Which gstreamer-object is the one, i can tell about channel-layout and what signal do i have to connect to, to get that object? 我可以告诉我哪个gstreamer对象有关通道布局以及我必须连接到什么信号才能获得该对象?

Additional info: 5.1 gives the same warning, but plays without downmixing; 附加信息:5.1发出相同的警告,但播放时不进行缩混; 5.0 using gstplay-1.0 from commandline gives warning & downmixing; 5.0从命令行使用gstplay-1.0会发出警告和缩混; using gst123 based on gstreamer0.1 plays everything right 使用基于gstreamer0.1的gst123可以正确播放所有内容

I'd suggest to file a bug and ideally make your test files available. 我建议您提交一个错误,并理想地使您的测试文件可用。

If you want to track this down yourself take a look at the GST_DEBUG="*:3" ./your-app output to see which element is emitting the warning. 如果您想自己进行跟踪,请查看GST_DEBUG =“ *:3” ./your-app输出,以查看哪个元素发出警告。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM