[FFmpeg-trac] #5402(ffmpeg:new): strftime %l pattern doesn't work on Windows build ( works on OSX just fine )

FFmpeg trac at avcodec.org
Mon Apr 4 10:52:10 CEST 2016


#5402: strftime %l pattern doesn't work on Windows build ( works on OSX just fine
)
-----------------------------------+--------------------------------------
             Reporter:  sadensmol  |                     Type:  defect
               Status:  new        |                 Priority:  important
            Component:  ffmpeg     |                  Version:  git-master
             Keywords:  drawtext   |               Blocked By:
             Blocking:             |  Reproduced by developer:  0
Analyzed by developer:  0          |
-----------------------------------+--------------------------------------
 Summary of the bug:

 The following strftime pattern doesn't work on Windows platform:
 %l : %M %p

 it should show 1 digit hour ( %l ) as first symbol. If I replace it with
 %I ( 2 digit ) it works fine!
 %l works on OSX just fine.

 How to reproduce:

 I use the following command line ( splitted by , ):

 -i,(19).ASF,-bsf:v,h264_mp4toannexb,-f,mpegts,-t,3.2839843749999997,-an,-r,30,-c:v,mpeg4,-flags:v,+qscale,-global_quality:v,0,-vf,scale=1920:1080,drawtext=
 text=\'%{pts\:localtime\:1454166040\:'%Y-%m-%d'}\':
 bordercolor=black at 0.5:borderw=4:fontfile=\'arial.ttf\':fontcolor=0xFFFFFF at 1:x=w*0.0125:y=h*0.916-th:fontsize=66,drawtext=
 text=\'%{pts\:localtime\:1454166040\:'%l\:%M%p'}\':
 bordercolor=black at 0.5:borderw=4: fontfile=\'arial.ttf\':
 fontcolor=0xFFFFFF at 1:x=w*0.0125:y=h*0.975-th:fontsize=66,qYKocvopL0_tmp.tmp

 the main problem here is the following part:
 drawtext= text=\'%{pts\:localtime\:1454166040\:'%l\:%M%p'}\':

 %l doesn't work as expexted on Windows platform

 I tried all windows static builds versions from
 ffmpeg-2.8.6-win32-static.7z
 And it doesn't work on any up to the current one.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5402>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list