101 questions
0
votes
0
answers
41
views
How to find out the byte offset of the first audio frame in an Ogg Vorbis stream
I'm hacking SoX to fix soxi's idea of the average bit-rate of an audio file; previously it did:
8 * file_size / length_in_seconds
but that makes very short files report huge bit rates, so it is to ...
0
votes
1
answer
1k
views
How can I configure my CMake project to install dependency packages?
I am trying to distribute a recent project - but need a way to download a few dependencies if the target OS is UNIX:
if (UNIX)
message("Detected Linux OS - install required")
#...
0
votes
0
answers
364
views
Opus audio, opus_decode() always fills output buffer with zeros
I slightly modified the opus provide sample file "trivial_example.c"
I modified it so instead of loading a pcm file from disk, I just create some noise using random numbers. Maybe that is ...
-1
votes
1
answer
971
views
Why this ffmpeg mp4/mkv/wmv/flv/avi to webm command line with cuda is as slow as with CPU?
im playing with my video files, I want to convert them from mp4, mkv, wmv, avi, flv, mov... to webm.
So I have written this:
for file in *
do
if [ -f "$file" ]
then filename=&...
0
votes
1
answer
363
views
Decoding with OGG/Vorbis gives no sound
I'd like to play an Ogg/Vorbis audio/video file, but right now I can't get to read audio from a file.
My algorithm to read audio is:
Initialize required structures:
vorbis_info info;
vorbis_comment ...
0
votes
0
answers
900
views
Encode WAV [or raw PCM data] to WebM in JavaScript?
BH
I'm trying to make a basic audio editor / cutter and exporter with native JavaScript, so far I have been able to read the raw PCM data of input audio files using AudioContext.deocdeAudio, as well ...
0
votes
1
answer
448
views
cmake cant generate sfml build files
I'm trying to generate build files for sfml on linux ubuntu using cmake, but the dependencies were not installed. I installed most with not issues, but one still persists. I got the following error ...
0
votes
0
answers
237
views
Vorbis Library in a project for Mac OS X
I need to use the Vorbis Library in a project for Mac OS X. I've compiled the OGG and Vorbis libraries and added them as a framework in the project. The problem is that cannot load them when running ...
2
votes
1
answer
1k
views
How to save encoded Opus stream file as .ogg/.opus with its header in Android
I am using this library (https://github.com/theeasiestway/android-opus-codec) to encode and decode audio files. I can store the encoded opus file then decode and play via AudioTrack. But i need to ...
0
votes
0
answers
384
views
unsupported audio file format even after adding vorbisspi to classpath
guys am trying to read different audio formats with help of sound SPI.
I have added sound SPI to classpath but still for some reason its not being used/or not detected.
Am using vorbisspi and am ...
2
votes
1
answer
5k
views
How to get audio file metadata container's data for flac and ogg
Is there a command to tell me what type of metadata container is using a file?
Something like: command myfile.flac saying: vorbis comment or id3v2.
0
votes
0
answers
38
views
Process opus audio stream in Javascript to find volume [duplicate]
I'm writing a program in Javascript and I've managed to get an opus audio stream working but I need to find the volume from this stream.
Anyone got any ideas on how this could be done?
Thanks :)
0
votes
1
answer
242
views
Split ogg vorbis stream without BOS
Input: a stream of ogg/vorbis coming from an encoder chip of an embedded system.
Problem: create output chunks of one second without transcoding.
Issue: the stream is being read "in the middle", so ...
0
votes
1
answer
528
views
how compile .c file when using vorbis library. undefined reference to vorbis_info_init
I installed libvorbis-div with sudo apt install libvorbis-dev.
But when i tried to compile my simple code with gcc a.c command, i get "undefined reference to `vorbis_info_init'" error.
a.c
#include ...
0
votes
1
answer
549
views
Live stream audio files using NAudio and Vorbis
I have access to files that contain audio streams in ogg format. They are continuous and are played in our html files using an audio tag:
<div style="display: none;">
<audio ...