Hello

I'm using the drawtext filter to burn in the timestamp.
drawtext=fontfile=FreeMono.ttf:shadowcolor=white:shadowx=2:shadowy=2:x=10:y=19:timecode='12\:49\:18\:00': rate=*25*:fontsize=22:text=\'7.10.2014 \'

But with this filter i can only handle videos with framerate=25
Who can i use the filter with autodetect rate.
I must handle 50 fps likewise 25fps

whole command:

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


Output:
ffmpeg version N-53613-g4d2825a Copyright (c) 2000-2013 the FFmpeg developers
  built on May 29 2013 05:12:05 with gcc 4.6 (Debian 4.6.3-1)
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
  libavutil      52. 34.100 / 52. 34.100
  libavcodec     55. 12.102 / 55. 12.102
  libavformat    55.  7.100 / 55.  7.100
  libavdevice    55.  1.101 / 55.  1.101
  libavfilter     3. 72.100 /  3. 72.100
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[mpegts @ 0x975f4a0] Unable to seek back to the start
[h264 @ 0x977e280] non-existing PPS referenced
[h264 @ 0x977e280] non-existing PPS 0 referenced
[h264 @ 0x977e280] decode_slice_header error
[h264 @ 0x977e280] no frame!
.....
[h264 @ 0x977e280] non-existing PPS referenced
[h264 @ 0x977e280] non-existing PPS 0 referenced
[h264 @ 0x977e280] decode_slice_header error
[h264 @ 0x977e280] no frame!
[mpegts @ 0x975f4a0] Stream #0: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x975f4a0] Stream #5: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x975f4a0] Stream #8: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x975f4a0] Stream #9: not enough frames to estimate rate; consider increasing probesize [mpegts @ 0x975f4a0] Could not find codec parameters for stream 0 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, mpegts, from 'udp://238.1.1.1:1234?fifo_size=2000000&overrun_nonfatal=1&timeout=20000000':
  Duration: N/A, start: 94707.794833, bitrate: 1024 kb/s
  Program 10302
    Metadata:
      service_name    : arte HD
      service_provider: ARD
    Stream #0:0[0x4f6]: Unknown: none ([5][0][0][0] / 0x0005)
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 Stream #0:2[0x13f8](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s Stream #0:3[0x13f9](fra): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s Stream #0:4[0x13fa](deu): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006) Stream #0:5[0x13fb](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired) Stream #0:6[0x13fc](mul): Audio: ac3 ([6][0][0][0] / 0x0006), 48000 Hz, 5.1(side), fltp, 448 kb/s Stream #0:7[0x13fd](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 192 kb/s Stream #0:8[0x13fe](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Stream #0:9[0x13ff](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
  Program 10301
    Metadata:
      service_name    : Das Erste HD
      service_provider: ARD
  Program 10303
    Metadata:
      service_name    : SWR BW HD
      service_provider: ARD
  Program 10304
    Metadata:
      service_name    : SWR RP HD
      service_provider: ARD
Please use -profile:a or -profile:v, -profile is ambiguous
[libx264 @ 0x9967440] using SAR=1/1
[libx264 @ 0x9967440] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x9967440] profile Constrained Baseline, level 3.1
[libx264 @ 0x9967440] 264 - core 129 r2230 1cffe9f - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - 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
Output #0, mp4, to 'test.mp4':
  Metadata:
    encoder         : Lavf55.7.100
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 Stream #0:1(mul): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (h264 -> libx264)
  Stream #0:6 -> #0:1 (ac3 -> aac)
Press [q] to stop, [?] for help
[h264 @ 0xa675ba0] Missing reference picture, default is 0
[h264 @ 0xa675ba0] decode_slice_header error
[h264 @ 0xa6bae20] reference picture missing during reorder
[h264 @ 0xa6bae20] Missing reference picture, default is 65530
[h264 @ 0xa6bae20] reference picture missing during reorder
[h264 @ 0xa6bae20] Missing reference picture, default is 65544
Starting second pass: moving header on top of the file09.00 bitrate=1167.6kbits/s dup=84 drop=0 frame= 468 fps= 39 q=-1.0 Lsize= 1505kB time=00:00:09.36 bitrate=1317.2kbits/s dup=84 drop=0 video:1366kB audio:130kB subtitle:0 global headers:0kB muxing overhead 0.577583%
[libx264 @ 0x9967440] frame I:19    Avg QP:19.37  size: 29260
[libx264 @ 0x9967440] frame P:449   Avg QP:22.53  size:  1877
[libx264 @ 0x9967440] mb I  I16..4: 100.0%  0.0%  0.0%
[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% [libx264 @ 0x9967440] coded y,uvDC,uvAC intra: 62.3% 52.4% 30.4% inter: 6.6% 4.1% 0.4%
[libx264 @ 0x9967440] i16 v,h,dc,p: 30% 35% 20% 15%
[libx264 @ 0x9967440] i8c dc,h,v,p: 48% 28% 18%  7%
[libx264 @ 0x9967440] kb/s:1195.43

_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to