[FFmpeg-user] ffprobe does not render sdes tag field properly

Robin van der Linden linden at venom.one
Fri Jun 3 11:52:05 EEST 2022


Hello,

I'm using ffprobe to read various metadata from my video files. One of 
these fields is called "sdes" and represents a TV-Show description. You 
will only see this filed if your command contains "-export_all" for 
example:

"ffprobe -print_format json -export_all true -show_programs 
-show_streams -show_format -loglevel quiet -hide_banner <path_to_file>"

It seems that ffprobe does not render special characters the right way 
for that field. If the content of that field contains special chars, 
these will get rendered wrong. TO give you a better example, please see 
the following text comparison:

This is the content I save to the file:

After stealing the Tesseract during the events of “Avengers: Endgame,” 
an alternate version of Loki is brought to the mysterious Time Variance 
Authority, a bureaucratic organization that exists outside of time and 
space and monitors the timeline. They give Loki a choice: face being 
erased from existence due to being a “time variant” or help fix the 
timeline and stop a greater threat.
@!"§$%&/()

This is what the ffprobe command from above outputs:

After stealing the Tesseract during the events of ÔÇ£Avengers: 
Endgame,ÔÇØ an alternate version of Loki is brought to the mysterious 
Time Variance Authority, a bureaucratic organization that exists outside 
of time and space and monitors the timeline. They give Loki a choice: 
face being erased from existence due to being a ÔÇ£time variantÔÇØ or 
help fix the timeline and stop a greater threat. \r\n@!\"§$%&/()


Where does this issue come from? To me, it seems like an encoding issue. 
Can somebody help?


-- 
Kind regards and thanks in advance,

Robin Linden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x257F9C8D.asc
Type: application/pgp-keys
Size: 1753 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20220603/31067bb6/attachment.key>


More information about the ffmpeg-user mailing list