[FFmpeg-user] Displaying DV and HDV Date and Time stamp

Terje J. Hanssen terjejhanssen at gmail.com
Tue Apr 11 16:08:06 EEST 2023


A valuable info feature is to switch on/off the date and time stamp 
during playback of DV and HDV sections recorded on (h)dv tapes.

Is it possible to preserve and display date and time stamp via ffplay 
playback of dv.dv and hdv.m2t files, and even via ffmpeg conversion to 
DVD and BD Video compliant formats?


This is what ffprobe tells for dv and hdv files respectively:

ffprobe -hide_banner dv-21_01.dv
[dv @ 0x5583720550c0] Estimating duration from bitrate, this may be 
inaccurate
Input #0, dv, from 'dv-21_01.dv':
   Metadata:
     timecode        : 00:09:56:12
   Duration: 00:09:56.48, start: 0.000000, bitrate: 28800 kb/s
   Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 
25000 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
   Stream #0:1: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s
   Stream #0:2: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s


ffprobe -hide_banner hdv01.m2t
[mpegts @ 0x563f74a690c0] Could not find codec parameters for stream 2 
(Unknown: none ([160][0][0][0] / 0x00A0)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 
'probesize' (5000000) options
[mpegts @ 0x563f74a690c0] Could not find codec parameters for stream 3 
(Unknown: none ([161][0][0][0] / 0x00A1)): unknown codec
Consider increasing the value for the 'analyzeduration' (0) and 
'probesize' (5000000) options
Input #0, mpegts, from 'hdv01.m2t':
   Duration: 00:10:57.08, start: 0.440000, bitrate: 26144 kb/s
   Program 100
   Stream #0:0[0x810]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), 
yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 
25 fps, 25 tbr, 90k tbn, 50 tbc
     Side data:
       cpb: bitrate max/min/avg: 25000000/0/0 buffer size: 7340032 
vbv_delay: N/A
   Stream #0:1[0x814]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, 
stereo, fltp, 384 kb/s
   Stream #0:2[0x815]: Unknown: none ([160][0][0][0] / 0x00A0)
   Stream #0:3[0x811]: Unknown: none ([161][0][0][0] / 0x00A1)
Unsupported codec with id 0 for input stream 2
Unsupported codec with id 0 for input stream 3


Comparing this with extracted mediainfo General output for dv and 
hdv.m2t (extensive) respectively:

mediainfo dv-21.dv
General
Complete name                            : dv-21.dv
Format                                   : DV
Commercial name                          : DVCAM
File size                                : 2.00 GiB
Duration                                 : 9 min 56 s
Overall bit rate mode                    : Constant
Overall bit rate                         : 28.8 Mb/s
Frame rate                               : 25.000 FPS
Recorded date                            : 2008-07-26 00:19:11.000


mediainfo hdv01.m2t
General
ID                                       : 255 (0xFF)
Complete name                            : hdv01.m2t
Format                                   : MPEG-TS
Commercial name                          : HDV 1080i
File size                                : 2.00 GiB
Duration                                 : 10 min 57 s
Start time                               : 2007-02-02 15:08:30 UTC
End time                                 : 2007-02-02 15:08:30 UTC / 
2007-02-02 15:08:31 UTC / 2007-02-02 15:08:31 UTC / 2007-02-02 15:08:31 
UTC / 2007-02-02 15:08:31 UTC / 2007-02-02 15:08:31 UTC / 2007-02-02 
15:08:31 UTC / 2007-02-02 15:08:31 UTC / 2007-02-02 15:08:31 UTC / 
2007-02-02 15:08:32 UTC / 2007-02-02 15:08:32 UTC / 2007-02-02 15:08:32 
UTC / 2007-02-02 15:08:32 UTC / 2007-02-02 15:08:32 UTC / 2007-02-02 
15:08:32 UTC / 2007-02-02 15:08:32 UTC / 2007-02-02 15:08:32 UTC / 
2007-02-02 15:08:33 UTC / 2007-02-02 15:08:33 UTC / 2007-02-02 15:08:33 
UTC / 2007-02-02 15:08:33 UTC / 2007-02-02 15:08:33 UTC / 2007-02-02 
15:08:33 UTC / 2007-02-02 15:08:33 UTC / 2007-02-02 15:08:33 UTC / 
2007-02-02 15:08:33 UTC / 2007-02-02 15:08:34 UTC / 2007-02-02 15:08:34 
UTC / 2007-02-02 15:08:34 UTC / 2007-02-02 15:08:34 UTC / 2007-02-02 
15:08:34 UTC / 2007-02-02 15:08:34 UTC / 2007-02-02 15:08:34 UTC / 
2007-02-02 15:08:34 UTC / 2007-02-02 15:08:35 UTC /
....... snip
2007-02-02 15:41:52 UTC / 2007-02-02 15:41:52 UTC / 2007-02-02 15:41:53 
UTC / 2007-02-02 15:41:53 UTC / 2007-02-02 15:41:53 UTC / 2007-02-02 
15:41:53 UTC / 2007-02-02 15:41:53 UTC / 2007-02-02 15:41:53 UTC / 
2007-02-02 15:41:53 UTC / 2007-02-02 15:41:53 UTC / 2007-02-02 15:41:54 
UTC / 2007-02-02 15:41:54 UTC / 2007-02-02 15:41:54 UTC / 2007-02-02 
15:41:54 UTC / 2007-02-02 15:41:54 UTC / 2007-02-02 15:41:54 UTC / 
2007-02-02 15:41:54 UTC / 2007-02-02 15:41:54 UTC / 2007-02-02 15:41:55 
UTC / 2007-02-02 15:41:55 UTC / 2007-02-02 15:41:55 UTC / 2007-02-02 
15:41:55 UTC / 2007-02-02 15:41:55 UTC / 2007-02-02 15:41:55 UTC / 
2007-02-02 15:41:55 UTC
Overall bit rate mode                    : Variable
Overall bit rate                         : 26.1 Mb/s
Maximum Overall bit rate                 : 33.0 Mb/s
Frame rate                               : 25.000 FPS
Encoded date                             : 2007-02-02 15:08:30 UTC






More information about the ffmpeg-user mailing list