View previous topic :: View next topic |
Author |
Message |
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Sun Aug 26, 2018 10:37 pm Post subject: xine-lib and opus audio? |
|
|
What USE I need to enable to get opus decoding? Currently opus encoded files are skipped by Quod Libet player, I'm assuming it is because it is using xine-lib. There is opus support in xine-lib since version 1.2.6.
Code: | [I] media-libs/xine-lib
Available versions: (1) 1.2.9-r2 **1.2.9999
{+X a52 aac aalib +alsa altivec bluray +css dts dvb dxr3 fbcon flac gtk imagemagick ipv6 jack jpeg libav libcaca mad +mmap mng modplug musepack nls opengl oss pulseaudio samba sdl speex theora truetype v4l vaapi vcd vdpau vdr vidix +vis vorbis vpx wavpack +xcb xinerama +xv xvmc}
Installed versions: 1.2.9-r2(1)(01:42:46 PM 08/26/2018)(X aac alsa css flac imagemagick ipv6 jpeg mad mmap mng opengl sdl theora truetype v4l vaapi vorbis wavpack xcb xinerama xv -a52 -aalib -altivec -bluray -dts -dvb -dxr3 -fbcon -gtk -jack -libav -libcaca -modplug -musepack -nls -oss -pulseaudio -samba -speex -vcd -vdpau -vdr -vidix -vis -vpx -xvmc)
Homepage: http://xine.sourceforge.net/
Description: Core libraries for Xine movie player
|
Edit: or perhaps Gentoo ebuild comes without opus? Need to have a closer look ... _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Sun Aug 26, 2018 10:48 pm Post subject: |
|
|
Not sure, but there is media-libs/opus and media-sound/opus-tools
edit to add: and media-libs/opusfile _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Sun Aug 26, 2018 11:03 pm Post subject: |
|
|
Not sure it may just recognize that the codec is available. I saw a few references to opus in the xine-lib but no hooks to pull it in and no config flags.
edit to add:
media-libs/opus/opus-1.2.1.ebuild:DESCRIPTION="Open codec designed for internet transmission of interactive speech and audio"
media-libs/opusfile/opusfile-0.10.ebuild:DESCRIPTION="A high-level decoding and seeking API for .opus files"
media-sound/opus-tools/opus-tools-0.1.10.ebuild:DESCRIPTION="Royalty-free, highly versatile audio codec"
and from opus-tools
Code: |
RDEPEND=">=media-libs/libogg-1.3.0
>=media-libs/opus-1.0.3
flac? ( >=media-libs/flac-1.1.3 )"
|
edit to add2: ffmpeg has the opus flag, and I think xine-lib does use ffmpeg or at least it's a dependency if libav flag is not enabled. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Sun Aug 26, 2018 11:22 pm Post subject: |
|
|
Will ffmpeg play the file? _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Sun Aug 26, 2018 11:32 pm Post subject: |
|
|
Then I'm unsure, possibly some interaction between xine-lib and ffmpeg. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Sun Aug 26, 2018 11:59 pm Post subject: |
|
|
xine-list-1.2 doesn't mention opus using any of the flags.
I'm not sure if it's xine-lib or maybe the mime interface.
Code: | grep opus /etc/mime.types
audio/ogg oga ogg opus spx |
Not sure if you have speex enabled in xine-lib or whether it would even make a difference but something to check. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Last edited by Anon-E-moose on Mon Aug 27, 2018 12:01 am; edited 1 time in total |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Mon Aug 27, 2018 10:19 am Post subject: |
|
|
I don't always consider an error as bad, at least you have a clue now.
I didn't think speex would affect anything, but I thought I'd mention it.
What kind of container is the one that doesn't play in?
edit to add: the use flag is in ffmpeg, that's where xine gets it from. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Mon Aug 27, 2018 1:19 pm Post subject: |
|
|
Not sure if there is a container or not, I'm using opusenc to encode. Mediainfo output below. Looks like ogg is the container?
Code: | Format : Ogg
File size : 9.77 MiB
Duration : 13 min 53 s
Overall bit rate : 98.3 kb/s
Album : Classical Treasures
Track name : Bolero
Track name/Position : 1
Performer : Ravel
Writing application : opusenc from opus-tools 0.1.10
Audio
ID : 1857811935 (0x6EBBF5DF)
Format : Opus
Duration : 13 min 53 s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 kHz
Compression mode : Lossy
Writing library : libopus 1.2.1
|
_________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Mon Aug 27, 2018 1:38 pm Post subject: |
|
|
mp4, avi, mkv, ogg are all containers, ie they hold elements.
I would be surprised if xine-libs couldn't open ogg containers, it gets pulled in if any of these flags are set "speex, theora or vorbis"
edit to add: and ffmpeg pulls it in with either theora or vorbis flags. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Mon Aug 27, 2018 2:10 pm Post subject: |
|
|
Jaglover wrote: | Well, theora and vorbis are enabled for xine-lib and ffmpeg, yet players using xine-lib cannot play files in ogg container. At least this is what it looks like. |
Will xine-lib play the files outside the container?
In other words just the opus file, not opus in ogg.
You really shouldn't need a container, but not sure what the default ext is, ie for wave file it's .wav, for mpeg3 it's mp3, etc _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Mon Aug 27, 2018 2:23 pm Post subject: |
|
|
Jaglover wrote: | Not sure how to strip the container, and what happens to the tags then? Anyhow, xine-lib plays opus in mkv container. |
Then the problem is the ogg container itself, or at least as far as xine-lib is concerned.
So the question is why doesn't xine-lib handle ogg properly.
Edit to add: it isn't about xine-lib, but there are hints here https://github.com/clementine-player/clementine/issues/3993
eta2: So if the file is renamed from .ogg to .oga will it then play under xine-lib? _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Mon Aug 27, 2018 2:50 pm Post subject: |
|
|
renaming .opus to .ogg wouldn't work, I would think
But taking a .ogg file and renaming to .oga might work.
It's like mp4 is a container that can handle audio and video, m4a is the audio portion, m4v is the video portion and they are recognized extensions in their own right.
The same for ogg, oga, ogv, they're even listed in xine-lib-1.2.9/src/combined/xine_ogg_demuxer.c
Code: | grep "oga" xine_ogg_demuxer.c
"application/x-ogm-audio: oga: Ogg Audio;"
"audio/ogg: oga: Ogg Audio;"
"audio/x-ogg: oga: Ogg Audio;"
this->demux_class.extensions = "ogx ogv oga ogg spx ogm"; |
As to why xine-lib doesn't recognize opus inside .ogg, I don't know unless as that link said the spec changed a while back and they decided to more closely follow the spec. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6098 Location: Dallas area
|
Posted: Mon Aug 27, 2018 3:18 pm Post subject: |
|
|
Jaglover wrote: | Renaming to oga didn't work, either. Now I'm starting to think maybe it needs gvfs ... it is disabled system-wide. |
I wouldn't think you'd need it as it's not a dependency for either xine-libs or quodlibet.
How are you creating the .ogg file?
Take me through the steps, I've never done opus files. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Mon Aug 27, 2018 3:23 pm Post subject: |
|
|
Maybe it should be, not the first time when ebuild maintainer misses something, it is real hard to find out all dependencies. Normally people have gvfs installed, it may be taken for granted.
Edit: run opusenc without any arguments on a wav file. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
|
|