Page 1 of 1

vlc and encoding opus

Posted: 17 Jan 2014 21:57
by andrew46
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.

Re: vlc and encoding opus

Posted: 10 Feb 2014 09:32
by andrew46
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.

Re: vlc and encoding opus

Posted: 13 Feb 2014 12:36
by Jean-Baptiste Kempf
Opus mandates 48kHz

Re: vlc and encoding opus

Posted: 25 Feb 2014 08:09
by andrew46
Thanks for confirming this.