Wrong encoding in output
Hi, in the following output you can see in the metadata tag "Album", that the character '°' was printed as unknown encoding. This is, because here on Ubuntu the default system encoding is UTF-8, but ffmpeg and ffprobe output the data in ISO-8859-1 encoding. In terminal output this is not really a big problem, but if the output is processed with another program, e.g. Python script, which uses the system default encoding, an encoding exception occurs, which breaks the program. To me this looks like a bug. $ ffprobe 12-suzanne_vega-song_of_sand.flac ffprobe version 6.1.1-3ubuntu5 Copyright (c) 2007-2023 the FFmpeg developers built with gcc 13 (Ubuntu 13.2.0-23ubuntu3) configuration: --prefix=/usr --extra-version=3ubuntu5 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --disable-omx --enable-gnutls --enable-libaom --enable-libass --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libharfbuzz --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-openal --enable-opencl --enable-opengl --disable-sndio --enable-libvpl --disable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-ladspa --enable-libbluray --enable-libjack --enable-libpulse --enable-librabbitmq --enable-librist --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libx264 --enable-libzmq --enable-libzvbi --enable-lv2 --enable-sdl2 --enable-libplacebo --enable-librav1e --enable-pocketsphinx --enable-librsvg --enable-libjxl --enable-shared libavutil 58. 29.100 / 58. 29.100 libavcodec 60. 31.102 / 60. 31.102 libavformat 60. 16.100 / 60. 16.100 libavdevice 60. 3.100 / 60. 3.100 libavfilter 9. 12.100 / 9. 12.100 libswscale 7. 5.100 / 7. 5.100 libswresample 4. 12.100 / 4. 12.100 libpostproc 57. 3.100 / 57. 3.100 Input #0, flac, from '12-suzanne_vega-song_of_sand.flac': Metadata: artist : Suzanne Vega title : Song Of Sand date : 1992 track : 12 genre : Pop Language : English Rip Date : 2012-04-19 Retail Date : 1992-09-08 Media : CD Encoder : FLAC 1.2.1 Ripping Tool : Exact Audio Copy (Secure Mode) Release Type : Normal release ORGANIZATION : A&M Records Album : 99.9F� <== unknown character because of wrong encoding Duration: 00:03:04.93, start: 0.000000, bitrate: 600 kb/s Stream #0:0: Audio: flac, 44100 Hz, stereo, s16 -Ulf
Am 01.09.25 um 00:53 schrieb Ulf Zibis via ffmpeg-user:
Hi,
in the following output you can see in the metadata tag "Album", that the character '°' was printed as unknown encoding. This is, because here on Ubuntu the default system encoding is UTF-8, but ffmpeg and ffprobe output the data in ISO-8859-1 encoding.
By the way, the output of MediaInfo is encoded correctly: $ mediainfo 12-suzanne_vega-song_of_sand.flac General Complete name : 12-suzanne_vega-song_of_sand.flac Format : FLAC Format/Info : Free Lossless Audio Codec File size : 13.2 MiB Duration : 3 min 4 s Overall bit rate mode : Variable Overall bit rate : 600 kb/s Album : 99.9F° <== correct encoding Track name : Song Of Sand Track name/Position : 12 Performer : Suzanne Vega Producer : A&M Records Genre : Pop Recorded date : 1992 Writing application : FLAC 1.2.1 Rip Date : 2012-04-19 Retail Date : 1992-09-08 Media : CD Ripping Tool : Exact Audio Copy (Secure Mode) Release Type : Normal release Audio Format : FLAC Format/Info : Free Lossless Audio Codec Duration : 3 min 4 s Bit rate mode : Variable Bit rate : 600 kb/s Channel(s) : 2 channels Channel layout : L R Sampling rate : 44.1 kHz Bit depth : 16 bits Compression mode : Lossless Stream size : 13.2 MiB (100%) Writing library : libFLAC 1.2.1 (2007-09-17) Language : English MD5 of the unencoded content : 4E7AD5EAB0C1BEE0750481989587DA8E -Ulf
_______________________________________________ ffmpeg-user mailing list -- ffmpeg-user@ffmpeg.org To unsubscribe send an email to ffmpeg-user-leave@ffmpeg.org
participants (1)
-
Ulf Zibis