[FFmpeg-trac] #2502(undetermined:new): ffprobe Produces Invalid JSON
FFmpeg
trac at avcodec.org
Thu Apr 25 14:09:39 CEST 2013
#2502: ffprobe Produces Invalid JSON
-------------------------------------+-------------------------------------
Reporter: dnicolson | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
When running ffprobe with the -print_format switch as json, it can produce
invalid Unicode escaping. Snippet of JSON code attached to the ticket.
Environment:
ffmpeg 1.2 installed via Homebrew.
Python code used to call ffsnoop:
cmnd = ['ffprobe', '-v', 'quiet', '-print_format', 'json', '-show_format',
'-show_streams', path]
p = subprocess.Popen(cmnd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = p.communicate()
io = StringIO(out)
info = json.load(io)
Python code to reproduce with attached JSON:
json.load(StringIO(file("output.json").read()))
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2502>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list