239 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
135
views
Libav* encoding to FLAC results in MD5 Signature Mismatch
I am trying to learn how to use the FFmpeg libav* libraries but have encountered an issue when encoding to FLAC audio.
Running FFmpeg 5.1.7
I have copied the transcoding.c example from https://www....
6
votes
2
answers
303
views
How can I reverse the endianness of an integer that is not a byte-multiple size?
All the existing threads I can find for this type of problem only refer to reversing endianness on byte-multiple bit sizes (i.e, 8, 16, 32, etc), but not non-byte-multiple (i.e, 5, 13, 20, etc), so ...
4
votes
2
answers
153
views
Is sample accurate decoding from an arbitrary FLAC seekpoint possible?
Is FLAC decoded PCM guaranteed to start at the sample of an arbitrary seekpoint, if we fetch via HTTP range request from the seekpoints noted offset (on a fixed frame size e.g. 1024)?
I encounter ...
0
votes
0
answers
92
views
Why does flac generate corrupted/invalid files when encoding a .wav file generated with wave Python package?
I'm trying to encode a .wav file with the flac CLI to reduce its size.
The file was generated with the python wave package, and contains an hour of silence.
Here is the code that generated the file
...
2
votes
1
answer
379
views
Is there a way to cache audio element requests without Service Workers?
I have a userscript where I'd like to cache audio files from audio elements. fetch() isn't viable here as I have to wait for it to fetch to get a blob out of it. Is there a way to use the audio ...
0
votes
1
answer
484
views
Error when passing audio file to curl command for Whisper Open AI model
Here is my main.py file
from flask import Flask, request, jsonify
from transformers import pipeline
app = Flask(__name__)
# Create a pipeline for automatic speech recognition (ASR)
asr = pipeline(&...
1
vote
1
answer
1k
views
Merging a lot of flac files through command line
I have tons of small flac files, which I need to merge into tons of slightly bigger flac files, while also appending random silence at the beginning of each file.
For example, I need to merge:
a) ...
1
vote
1
answer
311
views
ffmpeg command exports flac with wrong 'length' metadata, works fine for mp3
I have some audio recorded in Audacity 3.2.3 that I have exported as an mp3 and a flac. Then I have this file split_by_silence.sh
Which has hardcoded input path values that take an input file, split ...
0
votes
1
answer
592
views
How do I extract the metadata from a FLAC audio file, using front-end JavaScipt?
I'm a newby to web development and I'm stuck with retrieving metadata like Composer from FLAC audiofiles.
I tried to extract this information with jsmediatags.js and musicmetadata.js in Chrome with ...
2
votes
1
answer
2k
views
Extracting RIFF data from both .wav and .flac files
Wave files can contain unofficial metadata, such as Sampler Chunk - "smpl":
https://sites.google.com/site/musicgapi/technical-documents/wav-file-format#smpl
These are used for audio looping ...
0
votes
1
answer
212
views
Download Flac file from IIS
I do have several audio files in a directory. In program.CS (vs2022 - Angular 14 with c# backend), I used static files or serverfiles to access the directory. The directory is set to be browseable ...
0
votes
1
answer
250
views
Play audio .flac vs .fla in IIS via virtual directory
I do have an audio angular app with Microsoft dotnet core 6 backend and many audio files accesses via virtual directory. I can access any files except files with .flac extension (I have added .flac ...
0
votes
1
answer
333
views
arecord | split to wav or ogg
I have the following script on linux:
arecord -t raw -f S16_LE -r 44100 -c 1 | split -d -b 882000 --filter='flac - -f --endian little --sign signed --channels 1 --bps 2 --sample-rate 44100 -s -o &...
-2
votes
1
answer
94
views
PHP ZipArchive, play FLAC audio file which is inside a zip archive without extraction
It is about the following:
I like to play an audio file which is inside a zip archive without extraction.
This is my current approach:
<?
$z = new ZipArchive();
if ($z->open(dirname(__FILE__) . '...
0
votes
1
answer
1k
views
Incorrect values for song length (duration) in Mp3tag after ffmpeg FLAC to MP3 conversion
The problem
As per this post, I use the following command to convert a flac file to mp3 while keeping all metadata:
ffmpeg -i input.flac -ab 320k -map_metadata 0 -id3v2_version 3 output.mp3
When ...