239 questions
2
votes
1
answer
100
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....
4
votes
2
answers
133
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 ...
2
votes
1
answer
374
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
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) ...
0
votes
1
answer
523
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 ...
0
votes
1
answer
195
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
325
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 &...
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 ...
0
votes
1
answer
580
views
Segmenting .flac files with ffmpeg truncates audio but not file length
I am trying to get Twitter spaces audio (.ts) files into a format I can easily edit, on OSX.
So far I was able to convert the files in bulk to .flac with this:
for i in *.ts;
do name=`echo "$i&...
0
votes
0
answers
1k
views
How to solve 'error LNK2001: unresolved external symbol' for writing a User-defined Model (FLAC) in Visual Studio 2010 C++?
I am trying to write a User-defined Model in C++ for FLAC in Visual Studio Express 2010 C++. Initially, I am trying to run (debug and build) the built-in Strain-softening Model based on the Mohr-...
3
votes
0
answers
2k
views
How can I copy all metadata from one file to another automatically?
I have a collection of .mp3 files that have a lot of metadata on them, and a collection of those same tracks as .flac files with no metadata. I'd like to be able to simply copy the metadata from an ....
0
votes
1
answer
1k
views
How to get the key value of json generated by the ffmpeg command?
ffprobe -hide_banner -loglevel panic -show_streams -of json 01e8adee-b0f9-4569-a5f5-b2d69d1f7088.flac
output:-
{
"streams": [
{
"index": 0,
...
2
votes
1
answer
2k
views
Mutagen: How can I "correctly" embed album art into mp3 file so that I can see the pitcure display as file icon
I am trying to convert flac files to mp3 format, using pydub for conversion and mutagen for tags and album art copy.
Convert a flac file to a 320Kbps mp3:
from pydub import AudioSegment
path_flac = '...
0
votes
1
answer
871
views
Bash: FFmpeg: Automate Album Art Tagging
Every one of my music folders are set up like Artist > Year Album >
Track 01.flac
Track 02.flac
Track 03.flac
folder.jpg, jpeg, png, etc
And what I need to do is if folder.* is available.
if [ -...
0
votes
1
answer
4k
views
how to diagnose and fix a broken flac file
I have an album of flac files, but track 15 appears to be broken or corrupted, it wont play in vlc media player on my windows 10 computer, and I have tried importing it to Audacity but with no luck.
...
1
vote
0
answers
327
views
From FLAC file get cover image and display it on a Tkinter window
I'm trying to code a media player to learn and practice Python, what I'm currently trying to do is to display the cover of the FLAC file in a window and manage to do so seperatedly from the media ...
5
votes
2
answers
5k
views
Which is the "correct" content-type for FLAC?
Some software uses audio/flac. Some uses audio/x-flac.
MDN suggests that x-flac is "non-standard". But based on what?
But this appears to be the official registry for audio/ types... and ...
6
votes
1
answer
2k
views
Cutting FLAC using ffmpeg does not change timestamps accordingly
I am using the following command to cut a FLAC file:
ffmpeg -i input.flac -ss 10s -t 10s -c copy output.flac
output.flac contains the correct duration of audio. However, all media players show its ...
0
votes
1
answer
592
views
Play FLAC via DirectShow
I would like write an simple (only one exe) music player.
The player is work if I want play mp3, but didn't work if I want use MadFLAC Filter.
I can't connect of the MadFLAC pins. Always drop ...
0
votes
1
answer
2k
views
ffmpeg flac or mp3 to m4a - exactly the same length possible?
I'm converting .flac and .mp3 audio files to .m4a using ffmpeg with libfdk_aac (Fraunhofer AAC encoder) like this:
ffmpeg -i "001.flac" -c:a libfdk_aac "001.m4a"
This works fine, ...
0
votes
1
answer
2k
views
HLS FLAC stream creation with FFMPEG
I have created a HLS stream from a FLAC file with an output of FLAC using the following command:
ffmpeg -i 10-brass-in-pocket.flac -map 0:a -c:a:0 flac -f hls -hls_playlist_type vod -master_pl_name ...
1
vote
1
answer
392
views
Slice FLAC file into 5 second segments [closed]
I have a FLAC audio file that I want to slice into 5 second segments. I don't need to resample or change the data in any way.
What tools/libraries are there for this? Should I be looking at ffmpeg? ...
1
vote
4
answers
573
views
Add total length of albums (FLAC Format songs) into name of each folder
Thanks for accepting me :)
I'm making a project to order a lot of album of my collection and I'm classifying the albums by their complete length, currently I am doing it manually but it is quite ...
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.
2
votes
0
answers
544
views
Play .flac chunks in Chrome & Firefox (works in Safari)
I converted a wav file into several .flac chunks to play with Media Source Extensions (MSE) in the browser. I used ffmpeg and the following command to generate de chunks:
ffmpeg -i long_input_44100....