AW: RTP H264 encoding problem - bad files duration

Tim Müller tim at centricular.com
Mon Sep 21 11:58:04 PDT 2015


On Mon, 2015-09-21 at 17:53 +0200, Julio Franco wrote:

Hi Julio,

> Tried with splitmuxsink, and the result is the same ... files are
> generated correctly, but the duration info in the header is wrong ...
> 
> I mean, if I split video chunks every 10 seconds, the duration of the
> first chunk is 10, the duration of the second one is 20 ... and so on
> ... but the size of each chunk is ok.

How are you determining what the duration of each chunk is?

This works fine for me:

 $ gst-launch-1.0 videotestsrc num-buffers=2500 ! video/x
-raw,framerate=25/1 ! x264enc key-int-max=25 ! splitmuxsink max-size
-time=10500000000 location=/tmp/video-%03d.mp4

 $ gst-discoverer-1.0 /tmp/video-0* | grep Duration
  Duration: 0:00:10.000000000
  Duration: 0:00:10.000000000
  Duration: 0:00:10.000000000
  Duration: 0:00:10.000000000
  Duration: 0:00:10.000000000
  Duration: 0:00:10.000000000
  Duration: 0:00:10.000000000
  Duration: 0:00:10.000000000
  Duration: 0:00:10.000000000
  Duration: 0:00:10.000000000
  Duration: 0:00:10.000000000


> And, for example if I play the first chunk in VLC, VLC do nothing in
> the first 10 seconds and begin to show video in the second 11 ...

What VLC version is this with? It works fine for me with:

  VLC media player 2.2.1 Terry Pratchett (Weatherwax) (revision 2.2.1-0
-ga425c42)

 Cheers
  -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference: 8-9 October 2015 in Dublin, Ireland





More information about the gstreamer-devel mailing list