• setting timestamps with ffmpeg

    From Jim Lesurf@21:1/5 to All on Sun Aug 7 12:45:21 2022
    I'm trying to use/view some assorted videos made by someone else.
    Basically, just want to play them with VLC.

    However *some* of the files don't work as they should. If I start from
    their beginning and let them play though, all seems fine. But if I try to
    jump to a different place (time) I get the sound going AWOL.

    Using VLC's option to select (or not) a soundtrack to disable sound and
    then re-enable it *sometimes* it then gives sound - but not for the same
    part of the file as the video being shown!

    ffmpeg / ffmprobe shows what I'd expect. In essence, 'timestamps' not set
    in stream 0 (the video).

    Simple question. How do I use ffmpeg to make a copy that leaves the video
    and audio data unchanged but adds the needed set of timestamps to the
    stream?

    Files as give have an .avi exension. ffmpeg seems to accept doing -acodec
    and -vcodec copies to some alternatives containers, but that changes nowt
    owt about the above, of course).

    I did a websearch and just got stuff on adding a visible clock to the
    video, not on fixing this PITA.

    Thanks,

    Jim

    --
    Please use the address on the audiomisc page if you wish to email me. Electronics https://www.st-andrews.ac.uk/~www_pa/Scots_Guide/intro/electron.htm
    biog http://jcgl.orpheusweb.co.uk/history/ups_and_downs.html
    Audio Misc http://www.audiomisc.co.uk/index.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)