vlc and encoding opus

*nix specific usage questions
andrew46
Blank Cone
Blank Cone
Posts: 60
Joined: 01 Jun 2009 11:36
Operating System: Linux

vlc and encoding opus

Postby andrew46 » 17 Jan 2014 21:57

I have compiled the latest git vlc as well as libopus 1.1 and I have been looking for the opus encoder in the gui. It is listed there from the commandline:

Code: Select all

andrew@corinth:~$ cvlc --list | grep opus VLC media player 2.2.0-git Weatherwax (revision 806a5a5) opus Opus audio decoder opus Opus audio encoder
but I cannot see the option in the 'Convert/Save' section of vlc. My apologies for probably missing something very obvious.

andrew46
Blank Cone
Blank Cone
Posts: 60
Joined: 01 Jun 2009 11:36
Operating System: Linux

Re: vlc and encoding opus

Postby andrew46 » 10 Feb 2014 09:32

I suspect that I can answer my own question: not all encoders and certainly not all options are available through the gui and Opus encoding is one of these. I put the following commandline together:

Code: Select all

cvlc -vvv --sout \ "#transcode{acodec=opus,ab=96,channels=2,samplerate=44100}:\ std{access=file,mux=ogg,dst=test.opus}" \ luckynight.wav vlc://quit
and this worked well (although I noticed some stuttering at the beginning of the track). Mediainfo reported the resulting file as:

Code: Select all

andrew@corinth:~/Desktop$ mediainfo test.opus General Complete name : test.opus Format : OGG File size : 720 KiB Duration : 1mn 0s Overall bit rate : 97.6 Kbps Writing application : VLC media player Audio ID : 1552885330 (0x5C8F2652) Format : Opus Duration : 1mn 0s Channel count : 2 channels Channel positions : Front: L R Sampling rate : 48.0 KHz Compression mode : Lossy Writing library : libopus 1.1
The only puzzle being the failure to convert the sampling rate, possibly I have bumped into a requirement of opus files... I shall research a little further.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlc and encoding opus

Postby Jean-Baptiste Kempf » 13 Feb 2014 12:36

Opus mandates 48kHz
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

andrew46
Blank Cone
Blank Cone
Posts: 60
Joined: 01 Jun 2009 11:36
Operating System: Linux

Re: vlc and encoding opus

Postby andrew46 » 25 Feb 2014 08:09

Thanks for confirming this.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 16 guests