Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Feature Forums
  3. - Uncategorised posts -
  4. How to add time in video using Ffmpeg.

How to add time in video using Ffmpeg.

Scheduled Pinned Locked Moved - Uncategorised posts -
tutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AmbiguousName
    wrote on last edited by
    #1

    Hello there. I have tried a number of options to convert a RAW mp4 file into mp4 file and showing the timestamp in it. These options are given as under

    //////////////////////// FIRST METHOD
    //
    // Option timestamp cannot be applied to input file. You are trying to apply input option to output file or vice versa.

    cmd>> ffmpeg.exe -timestamp now -copyts -i input_file_name.mp4 -f mp4 -vcodec copy ouput_file_name.mp4

    //////////////////////// SECOND METHOD
    //
    // A number of parameters were tried with the 'drawtext' argument. But in vein.
    // font file copied in the directry.
    // A number of variations applied to "TEXT" argument of "DRAWTEXT". Such as "timecode='09\:57\:00\:00': r=25", ORRR "text='\%T'"

    cmd>> ffmpeg.exe -i input_file_name.mp4 -f mp4 -vf "drawtext=fontfile=arial.ttf:text=%{localtime}" -vcodec copy ouput_file_name.mp4

    But I am unable to draw timestamp (local time of computer of video seek time) on the video. How could I do that??? Thanks for any pointer.

    This world is going to explode due to international politics, SOON.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups