Hello,
I have been experimenting with ffmpeg recently. I am using Spek to analyze in and outputs. In my current case I am converting flac files to aiff files.
In ffmpeg I am adding ID3v2 tags. When analyzing the input flac Spek is analyzing everything correctly. The output aiff however shows that the file has no audio channels.
Here is the ffmpeg command (might help or is faulty?):
ffmpeg -i test.flac -i cover.png -map_metadata 0 -acodec pcm_s16be -ar 44100 -id3v2_version 4 -write_id3v2 1 -f aiff out.aiff
To explain:
-i test.flac: input audio flac on stream 0
-i cover.png: input cover image on stream 1
_-mapmetadata 0 map metadata of stream 0
_-acodec pcms16be: audio codec PCM signed 16bit Big Endian
-ar 44100: audio sampling rate 44.1 kHz
_-id3v2_version 4 -writeid3v2 1 select ID3v2 version 4 and write ID3v2 chunk to output stream 1 (append to audio file i guess). Here, when setting it to stream 0 (audio stream) it probably adds it on top. But in this case Spek can analyze the track (the software I am using - Rekordbox - can only analyze the track when the ID3v2 chunk is on stream 1)
-f aiff output file format aiff
out.aiff output file name
The input analysis of the flac in Spek looks like this:
The output analysis of the aiff in Spek looks like this:
Hello, I have been experimenting with ffmpeg recently. I am using Spek to analyze in and outputs. In my current case I am converting flac files to aiff files. In ffmpeg I am adding ID3v2 tags. When analyzing the input flac Spek is analyzing everything correctly. The output aiff however shows that the file has no audio channels. Here is the ffmpeg command (might help or is faulty?): ffmpeg -i test.flac -i cover.png -map_metadata 0 -acodec pcm_s16be -ar 44100 -id3v2_version 4 -write_id3v2 1 -f aiff out.aiff To explain:
The input analysis of the flac in Spek looks like this:![test flac](https://user-images.githubusercontent.com/55762879/232625162-4b6832ca-aee8-42be-a4c4-c263a0de0051.png)
The output analysis of the aiff in Spek looks like this:![out3 aiff](https://user-images.githubusercontent.com/55762879/232625236-f7085e36-f5fc-4753-be20-55fb45160564.png)