[FFmpeg-trac] #1163(ffprobe:reopened): ffprobe can produce invalid XML

FFmpeg trac at avcodec.org
Sun Jun 1 21:45:04 CEST 2014


#1163: ffprobe can produce invalid XML
------------------------------------+------------------------------------
             Reporter:  Ian         |                    Owner:  stefano
                 Type:  defect      |                   Status:  reopened
             Priority:  normal      |                Component:  ffprobe
              Version:  git-master  |               Resolution:
             Keywords:  utf8        |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------
Changes (by eelco):

 * analyzed:  1 => 0
 * status:  closed => reopened
 * version:  unspecified => git-master
 * resolution:  fixed =>
 * reproduced:  1 => 0


Comment:

 Uploaded 1163-utf8bug.rm to incoming.

 {{{
 ffprobe -print_format xml -show_format 1163-utf8bug.rm > 1163-utf8bug.xml
 ffprobe version N-63665-g921d5ae Copyright (c) 2007-2014 the FFmpeg
 developers
   built on Jun  1 2014 12:14:19 with Apple LLVM version 5.1
 (clang-503.0.40) (based on LLVM 3.4svn)
   configuration: --prefix=/Users/eelco/Projects/Beamer/FFmpeg/build
 --disable-shared --enable-static --disable-ffserver --disable-doc
 --enable-gpl --extra-cflags='-DMACOSX_DEPLOYMENT_TARGET=10.7 -isysroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
 -mmacosx-version-min=10.7
 -I/Users/eelco/Projects/Beamer/FFmpeg/build/include' --extra-
 ldflags='-isysroot
 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
 -mmacosx-version-min=10.7 -L/Users/eelco/Projects/Beamer/FFmpeg/build/lib'
   libavutil      52. 88.100 / 52. 88.100
   libavcodec     55. 66.100 / 55. 66.100
   libavformat    55. 42.100 / 55. 42.100
   libavdevice    55. 13.101 / 55. 13.101
   libavfilter     4.  5.100 /  4.  5.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 19.100 /  0. 19.100
   libpostproc    52.  3.100 / 52.  3.100
 [rm @ 0x7f9ae1015800] Failed to fully read block
 Input #0, rm, from '/Users/eelco/Desktop/1163-utf8bug.rm':
   Metadata:
     Audiences       : BatchRealProducer 's Audience;
     audioMode       : music
     Creation Date   : 2/14/2013 1:40:55
     Description     : This RealMedia File Compressed by Batch Real
 Producer
     Generated By    : Helix Producer SDK 10.0 for Windows, Build
 10.0.0.335
     Modification Date: 2/14/2013 1:40:55
     videoMode       : sharp
     Keywords        :
     File ID         : 31e4c7ec-29b7-4ffd-8ea5-40f11991751a
     title           : tsks
     author          : ????????TSKS??2014??
     copyright       : ??????ʹTSKS???????tskscn.com??
     comment         :
   Duration: 00:59:01.08, start: 0.000000, bitrate: 0 kb/s
     Stream #0:0: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, stereo, fltp,
 44 kb/s
     Stream #0:1: Video: rv40 (RV40 / 0x30345652), yuv420p, 624x352, 536
 kb/s, 29.97 fps, 29.97 tbr, 1k tbn, 1k tbc
 [xml @ 0x7f9ae1012e00] 10 invalid UTF-8 sequence(s) found in string
 '????????TSKS??2014??', replaced with '�'
 [xml @ 0x7f9ae1012e00] 18 invalid UTF-8 sequence(s) found in string
 '??????ʹTSKS???????tskscn.com??', replaced with '�'
 }}}

 {{{
 xmllint 1163-utf8bug.xml
 1163-utf8bug.xml:14: parser error : Input is not proper UTF-8, indicate
 encoding !
 Bytes: 0xC0 0xA1 0xEF 0xBF
         <tag key="author" value="�����??�TSKS��2014��"/>
                                                 ^
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/1163#comment:13>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list