Browse Source

Print PTS and DTS in miliseconds and seconds in addition to raw value

Georgi Chorbadzhiyski 9 years ago
parent
commit
77b8738d96
1 changed files with 10 additions and 2 deletions
  1. 10
    2
      tsfuncs_pes.c

+ 10
- 2
tsfuncs_pes.c View File

@@ -497,9 +497,17 @@ void ts_pes_dump(struct ts_pes *pes) {
497 497
 		pes->pes_extension_flag	? "PES_Ext "	: ""
498 498
 	);
499 499
 	if (pes->PTS_flag && pes->have_pts)
500
-		ts_LOGf("  * PTS        : %llu\n", pes->PTS);
500
+		ts_LOGf("  * PTS        : %llu (%llu ms) (%llu.%04llu sec)\n",
501
+			pes->PTS,
502
+			pes->PTS / 90,
503
+			pes->PTS / 90000, (pes->PTS % 90000) / 9
504
+		);
501 505
 	if (pes->DTS_flag && pes->have_dts)
502
-		ts_LOGf("  * DTS        : %llu\n", pes->DTS);
506
+		ts_LOGf("  * DTS        : %llu (%llu ms) (%llu.%04llu sec)\n",
507
+			pes->DTS,
508
+			pes->DTS / 90,
509
+			pes->DTS / 90000, (pes->DTS % 90000) / 9
510
+		);
503 511
 	if (pes->ESCR_flag)
504 512
 		ts_LOGf("  * ESCR       : %llu\n", pes->ESCR);
505 513
 	if (pes->ES_rate_flag)

Loading…
Cancel
Save