[FFmpeg-user] Audio transcoding with metadata and album cover image

Lukas Österreicher lukas.oesterreicher at inode.at
Thu Apr 11 09:47:00 CEST 2013


Hi.

Here's my latest try:

morkeleb at morkeleb-VirtualBox:~/Music$ ffmpeg -i 150.mp3 -i 150.jpg -c:a libaacplus -b:a 48k -map 0 -map 1 -metadata:s:v title="track title" -metadata:s:v author="artist name" 150_encoded.m4a
ffmpeg version N-51694-g4e0130f Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr 10 2013 16:12:06 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)
  configuration: --enable-gpl --enable-libaacplus --enable-libmp3lame --enable-version3 --enable-nonfree --enable-static
  libavutil      52. 25.100 / 52. 25.100
  libavcodec     55.  2.100 / 55.  2.100
  libavformat    55.  1.100 / 55.  1.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 49.101 /  3. 49.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[mp3 @ 0xa7d6240] max_analyze_duration 5000000 reached at 5015510 microseconds
Input #0, mp3, from '150.mp3':
  Metadata:
    title           : Jesus Gave Me Water
    artist          : Sam Cooke & The Soul Stirrers
    album           : Portrait Of A Legend
  Duration: 00:02:29.66, start: 0.000000, bitrate: 135 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 135 kb/s
Input #1, image2, from '150.jpg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #1:0: Video: mjpeg, yuvj420p, 200x200 [SAR 1:1 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
File '150_encoded.m4a' already exists. Overwrite ? [y/N] Y
Output #0, ipod, to '150_encoded.m4a':
  Metadata:
    title           : Jesus Gave Me Water
    artist          : Sam Cooke & The Soul Stirrers
    album           : Portrait Of A Legend
    Stream #0:0: Audio: none, 44100 Hz, stereo, s16, 128 kb/s
    Stream #0:1: Video: none, q=2-31, 128 kb/s, 90k tbn
    Metadata:
      title           : track title
      author          : artist name
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 -> libaacplus)
  Stream #1:0 -> #0:1 (mjpeg -> ?)
Encoder (codec none) not found for output stream #0:1

Hope this helps!
Lukas

> On Wed, 10 Apr 2013 19:00:03 +0200
> Lukas Österreicher <lukas.oesterreicher at inode.at> wrote:

>> Hi.
>> 
>> I'm trying to re-encode from mp3 to he-aac and include metadata and an
>> album cover image.
>> 
>> All but the last works for me like this:
>> ffmpeg -i 150.mp3 -c:a libaacplus -b:a 48k -metadata:s:v title="track title" -metadata:s:v author="artist name" 150_encoded.m4a
>> 
>> However I can't get the last one to work.
>> I tried something like this here: http://ffmpeg.org/ffmpeg-formats.html#mp3
>> which is in my case
>> ffmpeg -i 150.mp3 -i 150.jpg -c:a libaacplus -b:a 48k -map 0 -map 1 -metadata:s:v title="track title" -metadata:s:v author="artist name" 150_encoded.m4a
>> 
>> But that gives me this error:
>> Encoder (codec none) not found for output stream #0:1
>> 
>> Any suggestions?

> Please show your complete ffmpeg console output.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user



-- 
Mit freundlichen Grüßen
Lukas Österreicher
mailto:lukas.oesterreicher at inode.at




More information about the ffmpeg-user mailing list