[FFmpeg-trac] #1181(avcodec:new): dump_metadata should filter control-chars
FFmpeg
trac at avcodec.org
Mon Apr 9 21:06:44 CEST 2012
#1181: dump_metadata should filter control-chars
----------------------------------+---------------------------------------
Reporter: vogelchr | Type: defect
Status: new | Priority: normal
Component: avcodec | Version: unspecified
Keywords: metadata | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+---------------------------------------
My mobile phone embedds a form-feed/Ctrl-L in the metadata of the recorded
videos, shown as "**CTRL-L**" below. It messes up my unix-terminal and
hides information I really wanted to see.
{{{
Duration: 00:00:40.16, start: 0.000000, bitrate: 2593 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p,
640x480, 2524 kb/s, 29.70 fps, 29.97 tbr, 30k tbn, 60k tbc
Metadata:
handler_name : **CTRL-L**VideoHandler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, s16,
62 kb/s
Metadata:
handler_name : **CTRL-L**SoundHandler
}}}
Unfortunately, these control-chars are interpreted as "clear screen" in a
normal unix-terminal, these chars (\1 ... \37) should be filtered on
metadata dump.
Attached patch replaces these control chars with a question mark.
{{{
Metadata:
handler_name : ?VideoHandler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 16000 Hz, mono, s16,
62 kb/s
Metadata:
handler_name : ?SoundHandler
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1181>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list