[Bug 724103] New: Libav fails to encode buffer due to invalid timestamps

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Feb 11 00:28:10 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=724103
  GStreamer | gst-libav | git

           Summary: Libav fails to encode buffer due to invalid timestamps
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: All
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: gst-libav
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: dmitry.m at samsung.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


During encoding with libav errors like:

0:00:04.264244710 17662   0x13fe90 ERROR                  libav :0:: Error,
Invalid timestamp=30, last=30
0:00:04.264366460 17662   0x13fe90 ERROR                  libav
gstavvidenc.c:659:gst_ffmpegvidenc_handle_frame:<video_encode> avenc_h263:
failed to encode buffer

appear in log.

Problem that with seconds precision in time conversion
gst_ffmpeg_time_gst_to_ff function converts frame->pts = 2958333333 to
ffmpegenc->picture->pts = 30; as well as frame->pts = 3000000000; to
ffmpegenc->picture->pts = 30;

Given this, looks like that it's reasonable to increase time conversion
precision from seconds to mseconds.

Proposed patch in attachment.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list