<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello<br>
    <br>
    I'm using the drawtext filter to burn in the timestamp.<br>
    drawtext=fontfile=FreeMono.ttf:shadowcolor=white:shadowx=2:shadowy=2:x=10:y=19:timecode='12\:49\:18\:00':
    rate=<b>25</b>:fontsize=22:text=\'7.10.2014 \'<br>
    <br>
    But with this filter i can only handle videos with framerate=25<br>
    Who can i use the filter with autodetect rate.<br>
    I must handle 50 fps likewise 25fps<br>
    <br>
    whole command:<br>
    <br>
    ffmpeg -i
    "udp://238.1.1.1:1234?fifo_size=2000000&overrun_nonfatal=1&timeout=20000000"
    -vcodec libx264 -preset ultrafast -profile baseline -crf 24 -pix_fmt
    yuv420p -g 25 -acodec aac -strict experimental -ac 2 -ab 128k -ar
    44100 -movflags +faststart -vb 2000k -y -vf
    "[in]drawtext=fontfile=FreeMono.ttf:shadowcolor=white:shadowx=2:shadowy=2:x=10:y=2:fontsize=22:text=\'Test\'[in2];
    [in2]drawtext=fontfile=FreeMono.ttf:shadowcolor=white:shadowx=2:shadowy=2:x=10:y=19:timecode='12\:49\:18\:00':
    rate=25:fontsize=22:text=\'07.10.2014
    \'[in3];[in3]scale=640:-1[out]" test.mp4<br>
    <br>
    <br>
    Output:<br>
    ffmpeg version N-53613-g4d2825a Copyright (c) 2000-2013 the FFmpeg
    developers<br>
      built on May 29 2013 05:12:05 with gcc 4.6 (Debian 4.6.3-1)<br>
      configuration: --prefix=/root/ffmpeg-static/32bit --arch=x86_32
    --extra-cflags='-m32 -I/root/ffmpeg-static/32bit/include -static'
    --extra-ldflags='-m32 -L/root/ffmpeg-static/32bit/lib -static'
    --extra-libs='-lxml2 -lexpat -lfreetype' --enable-static
    --disable-shared --disable-ffserver --disable-doc --enable-bzlib
    --enable-zlib --enable-postproc --enable-runtime-cpudetect
    --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis
    --enable-libmp3lame --enable-gray --enable-libass
    --enable-libfreetype --enable-libopenjpeg --enable-libspeex
    --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3
    --enable-libvpx<br>
      libavutil      52. 34.100 / 52. 34.100<br>
      libavcodec     55. 12.102 / 55. 12.102<br>
      libavformat    55.  7.100 / 55.  7.100<br>
      libavdevice    55.  1.101 / 55.  1.101<br>
      libavfilter     3. 72.100 /  3. 72.100<br>
      libswscale      2.  3.100 /  2.  3.100<br>
      libswresample   0. 17.102 /  0. 17.102<br>
      libpostproc    52.  3.100 / 52.  3.100<br>
    [mpegts @ 0x975f4a0] Unable to seek back to the start<br>
    [h264 @ 0x977e280] non-existing PPS referenced<br>
    [h264 @ 0x977e280] non-existing PPS 0 referenced<br>
    [h264 @ 0x977e280] decode_slice_header error<br>
    [h264 @ 0x977e280] no frame!<br>
    .....<br>
    [h264 @ 0x977e280] non-existing PPS referenced<br>
    [h264 @ 0x977e280] non-existing PPS 0 referenced<br>
    [h264 @ 0x977e280] decode_slice_header error<br>
    [h264 @ 0x977e280] no frame!<br>
    [mpegts @ 0x975f4a0] Stream #0: not enough frames to estimate rate;
    consider increasing probesize<br>
    [mpegts @ 0x975f4a0] Stream #5: not enough frames to estimate rate;
    consider increasing probesize<br>
    [mpegts @ 0x975f4a0] Stream #8: not enough frames to estimate rate;
    consider increasing probesize<br>
    [mpegts @ 0x975f4a0] Stream #9: not enough frames to estimate rate;
    consider increasing probesize<br>
    [mpegts @ 0x975f4a0] Could not find codec parameters for stream 0
    (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec<br>
    Consider increasing the value for the 'analyzeduration' and
    'probesize' options<br>
    Input #0, mpegts, from
'udp://238.1.1.1:1234?fifo_size=2000000&overrun_nonfatal=1&timeout=20000000':<br>
      Duration: N/A, start: 94707.794833, bitrate: 1024 kb/s<br>
      Program 10302 <br>
        Metadata:<br>
          service_name    : arte HD<br>
          service_provider: ARD<br>
        Stream #0:0[0x4f6]: Unknown: none ([5][0][0][0] / 0x0005)<br>
        Stream #0:1[0x13f7]: Video: h264 (High) ([27][0][0][0] /
    0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k
    tbn, 100 tbc<br>
        Stream #0:2[0x13f8](deu): Audio: mp2 ([3][0][0][0] / 0x0003),
    48000 Hz, stereo, s16p, 192 kb/s<br>
        Stream #0:3[0x13f9](fra): Audio: mp2 ([3][0][0][0] / 0x0003),
    48000 Hz, stereo, s16p, 192 kb/s<br>
        Stream #0:4[0x13fa](deu): Subtitle: dvb_teletext ([6][0][0][0] /
    0x0006)<br>
        Stream #0:5[0x13fb](deu): Subtitle: dvb_subtitle ([6][0][0][0] /
    0x0006) (hearing impaired)<br>
        Stream #0:6[0x13fc](mul): Audio: ac3 ([6][0][0][0] / 0x0006),
    48000 Hz, 5.1(side), fltp, 448 kb/s<br>
        Stream #0:7[0x13fd](mis): Audio: mp2 ([3][0][0][0] / 0x0003),
    48000 Hz, stereo, s16p, 192 kb/s<br>
        Stream #0:8[0x13fe](fra): Subtitle: dvb_subtitle ([6][0][0][0] /
    0x0006)<br>
        Stream #0:9[0x13ff](deu): Subtitle: dvb_subtitle ([6][0][0][0] /
    0x0006)<br>
      Program 10301 <br>
        Metadata:<br>
          service_name    : Das Erste HD<br>
          service_provider: ARD<br>
      Program 10303 <br>
        Metadata:<br>
          service_name    : SWR BW HD<br>
          service_provider: ARD<br>
      Program 10304 <br>
        Metadata:<br>
          service_name    : SWR RP HD<br>
          service_provider: ARD<br>
    Please use -profile:a or -profile:v, -profile is ambiguous<br>
    [libx264 @ 0x9967440] using SAR=1/1<br>
    [libx264 @ 0x9967440] using cpu capabilities: MMX2 SSE2Fast SSSE3
    Cache64<br>
    [libx264 @ 0x9967440] profile Constrained Baseline, level 3.1<br>
    [libx264 @ 0x9967440] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4
    AVC codec - Copyleft 2003-2012 - <a class="moz-txt-link-freetext" href="http://www.videolan.org/x264.html">http://www.videolan.org/x264.html</a> -
    options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0
    psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0
    8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0
    threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1
    interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0
    keyint=25 keyint_min=2 scenecut=0 intra_refresh=0 rc=crf mbtree=0
    crf=24.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0<br>
    Output #0, mp4, to 'test.mp4':<br>
      Metadata:<br>
        encoder         : Lavf55.7.100<br>
        Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021),
    yuv420p, 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 12800 tbn,
    50 tbc<br>
        Stream #0:1(mul): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz,
    stereo, fltp, 128 kb/s<br>
    Stream mapping:<br>
      Stream #0:1 -> #0:0 (h264 -> libx264)<br>
      Stream #0:6 -> #0:1 (ac3 -> aac)<br>
    Press [q] to stop, [?] for help<br>
    [h264 @ 0xa675ba0] Missing reference picture, default is 0<br>
    [h264 @ 0xa675ba0] decode_slice_header error<br>
    [h264 @ 0xa6bae20] reference picture missing during reorder<br>
    [h264 @ 0xa6bae20] Missing reference picture, default is 65530<br>
    [h264 @ 0xa6bae20] reference picture missing during reorder<br>
    [h264 @ 0xa6bae20] Missing reference picture, default is 65544<br>
    Starting second pass: moving header on top of the file09.00
    bitrate=1167.6kbits/s dup=84 drop=0    <br>
    frame=  468 fps= 39 q=-1.0 Lsize=    1505kB time=00:00:09.36
    bitrate=1317.2kbits/s dup=84 drop=0    <br>
    video:1366kB audio:130kB subtitle:0 global headers:0kB muxing
    overhead 0.577583%<br>
    [libx264 @ 0x9967440] frame I:19    Avg QP:19.37  size: 29260<br>
    [libx264 @ 0x9967440] frame P:449   Avg QP:22.53  size:  1877<br>
    [libx264 @ 0x9967440] mb I  I16..4: 100.0%  0.0%  0.0%<br>
    [libx264 @ 0x9967440] mb P  I16..4:  1.3%  0.0%  0.0%  P16..4:
    14.7%  0.0%  0.0%  0.0%  0.0%    skip:84.0%<br>
    [libx264 @ 0x9967440] coded y,uvDC,uvAC intra: 62.3% 52.4% 30.4%
    inter: 6.6% 4.1% 0.4%<br>
    [libx264 @ 0x9967440] i16 v,h,dc,p: 30% 35% 20% 15%<br>
    [libx264 @ 0x9967440] i8c dc,h,v,p: 48% 28% 18%  7%<br>
    [libx264 @ 0x9967440] kb/s:1195.43<br>
    <br>
  </body>
</html>