[FFmpeg-user] JSON writer Introduces malformed string when serializing usIng GSON

Otieno Rowland rowlandmtetezi at gmail.com
Thu Feb 13 12:22:18 EET 2020


For some reason when I try to read some metadata which has some text with
double quotes, FFprobe tries to escape them from "text here"  into \"text
here\", which causes lots of problems on my side, as I unable to serialize
the JSON properly when trying to convert to Java code.

Is there a way to tell the JSON writer not to escape the double quotes
inside the string of the metadata. I am using : ffprobe

arrayOf(
    "-loglevel", "error",
    "-print_format", "json",
    "-show_error",
    "-show_streams",
    "-show_format",
    "-hide_banner",
    "-i", realPath
)

-- 
Sincerely,
Rowland

Rowland


More information about the ffmpeg-user mailing list