FFmpeg encoding for meta data wrong – need it in UTF8

2

When I run this command

ffmpeg.exe -i test.mp3 -metadata title="The Title You  Want" -metadata artist="ÄÄÄßß!`n  Artist Name" -metadata album="Name Fö#'ddp+!of the Album" -c:a copy -id3v2_version 3  write_id3v1 1 out.mp3

The resulting meta data encoding seems to be wrong.

Name: ÄÄÄßß!`n  Artist Name
Title: Name Fö#'ddp+!of the Album

I'm using foobar2000 to check the result. So any ideas how to get this done properly? I've already run chcp 65001 which sets the code page of Windows to UTF8, but no change.

I need to get this reliable working on my Windows 8 box and any Linux distribution.

I could use -i meta.txt -map_metadata 1 instead of writing all the data directly, but the issue persists: Even when I write the meta data to a file, the file looks correct, but the result in the MP3 file does not. I'm auto-generating the file via a PHP script.


My FFmpeg version:

ffmpeg version N-46146-g11d695d Copyright (c) 2000-2012 the FFmpeg developers
  built on Oct 29 2012 18:10:27 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable
-bzlib --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enab
le-libgsm --enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroed
inger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib

burzum

Posted 2012-11-15T00:18:49.057

Reputation: 1 093

Well, I cannot reproduce this with FFmpeg 1.0 on OS X. It might very well be an issue of the command line not handling the characters properly. – slhck – 2012-11-15T09:51:40.277

Answers

0

Try just a 'chcp 65001' to change codepage to UTF-8 before your use ffmpeg

Mäx

Posted 2012-11-15T00:18:49.057

Reputation: 1

4Can you elaborate on this a little more? – Toto – 2018-04-29T09:26:01.963

4The question says that the user has already tried this, without success. – Scott – 2018-04-29T19:31:02.310