I am using neroAacEnc to encode my music, using FFMPEG and pipe conections i connect the ffmpeg output to the neroaacenc input.
ffmpeg -i "somefile"."somecontainer" -acodec pcm_s16le -f wav - | neroaacenc "Some encode options" -ignorelength -if - -of "My new aac file.m4a"
The problem is: The output file does not keep the meta-tags of the input.
But, when ffmpeg decodes the audio to wav, it shows the meta-tags.
Here is my example.
C:\Users\lucman\Desktop\FFtoACC\bin>ffmpeg.exe -i flac.flac -acodec pcm_s16le -f
wav - | neroaacenc -lc -br 80000 -ignorelength -if - -of aac.m4a
*************************************************************
* *
* Nero AAC Encoder *
* Copyright 2009 Nero AG *
* All Rights Reserved Worldwide *
* *
* Package build date: Feb 18 2010 *
ffmpeg version N-38632-g4cda8aa* Package version: 1.5.4.0
*
Copyright © 2000-2012 the FFmpeg developers
built on Mar 8 2012 02:38:08 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc
14)
configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil
d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b
uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n
onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor
e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
* *
libavutil 51. 42.100 / 51. 42.100
* See -help for a complete list of available parameters. *
* *
libavcodec 54. 10.100 / 54. 10.100
*************************************************************
libavformat 54. 2.100 / 54. 2.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 63.100 / 2. 63.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 7.100 / 0. 7.100
libpostproc 52. 0.100 / 52. 0.100
[flac @ 0x378fc0] max_analyze_duration 5000000 reached at 5015510
Input #0, flac, from 'flac.flac':
Metadata:
ARTIST : the GazettE
TITLE : THE INVISIBLE WALL
track : 02
ALBUM : DIM
Duration: 00:04:33.40, bitrate: 1038 kb/s
Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
Output #0, wav, to 'pipe:':
Metadata:
ARTIST : the GazettE
TITLE : THE INVISIBLE WALL
track : 02
ALBUM : DIM
encoder : Lavf54.2.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16
, 1411 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (flac -> pcm_s16le)
Press [q] to stop, [?] for help
size= 47097kB time=00:04:33.40 bitrate=1411.2kbits/s
video:0kB audio:47097kB global headers:0kB muxing overhead 0.000095%
C:\Users\lucman\Desktop\FFtoACC\bin>
Can I copy tag information from one file to another using ffmpeg ??
Something like:
ffmpeg -y -i original-song.flac -copy-metadata my-preencoded-aac.m4a
Also i tried with "TAG.exe" but it can not tag AAC files.
I know i can do with Graphical programs, but i need a command-line program, because i'm codding a Bat file generator to Convert FFMPEG to NeroAAC.
Help please.