[gegl/video-rejuvenation: 24/83] ff-load: printing floating points audio and video pts for most videos



commit 1aa91227bcbff968fe4cd08547bcc4a198ba88be
Author: Øyvind Kolås <pippin gimp org>
Date:   Tue Oct 20 02:38:13 2015 +0200

    ff-load: printing floating points audio and video pts for most videos

 operations/external/ff-load.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/operations/external/ff-load.c b/operations/external/ff-load.c
index 9eb0156..e6c0470 100644
--- a/operations/external/ff-load.c
+++ b/operations/external/ff-load.c
@@ -284,7 +284,8 @@ decode_frame (GeglOperation *operation,
                        af->pts = p->pkt.pts;
                        if (af->pts == 0)
                          fprintf (stderr, "audio pts 0\n");
-                       fprintf (stderr, "audio-pts: %li\n", af->pts);
+                       //fprintf (stderr, "audio-pts: %li\n", af->pts);
+            fprintf (stderr, "audio-pts: %f\n", p->pkt.pts * av_q2d (p->audio_st->time_base));
 
                        af->channels = p->audio_context->channels;
                        switch (p->audio_context->sample_fmt)
@@ -346,7 +347,7 @@ decode_frame (GeglOperation *operation,
 
           if(got_picture)
           {
-            fprintf (stderr, "video-pts: %li\n", p->pkt.pts);
+            fprintf (stderr, "video-pts: %f\n", p->pkt.pts * av_q2d (p->video_st->time_base));
           }
 
           p->coded_buf   += decoded_bytes;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]