As I posted before, I'm copying h264 video from inside a MEPG-TS to a MP4 
container. I got it working so far (the problem bevore was that I've forgotten 
to compile ffmpeg with the h264 parser.) except something with the timestamps 
goes wrong.
The video that comes out is too fast and I have relatively no clue about 
timestamps. Are the timestamps part of the codec or the container or both? From 
a sample code I got the following:

packet.pts = packet.dts = AV_NOPTS_VALUE;

I do this after reading the AVPacket and before writing it to the output.
and I copy the time_base from my input to the output stream: 

outputStream->codec->time_base = avStream->codec->time_base;

What do I have to do to get the timestamp thing working? My input and output is 
h246 so if the timestamp is part of the codec it should be possible to just 
copy them? but I have the feeling that the timestamps are part of the container 
:-/ So what do I have to do to get a proper conversion from MPEG-TS timestamps 
to MP4 timestamps?

Thomas Post
-----------------------------------------------------------------------------------------------------------

equinux Aktiengesellschaft
Informationstechnologien
Kirschstraße 35
80999 München - Germany
Tel. +49-89-520465-339
Fax +49-89-520465-299
mailto:[email protected]
http://www.equinux.com/de
-----------------------------------------------------------------------------------------------------------
Vorstand: Till Schadde  -  Aufsichtsrat: Stefan Neuenhahn
USt-IdNr.: DE206360115  -  Sitz München  -  HRB München 129700
-----------------------------------------------------------------------------------------------------------

equinux USA, Inc.
100 Produce Ave. Suite L, South San Francisco, CA 94080 
Toll free: 1-888-equinux (1-888-3784689)
http://www.equinux.com
-----------------------------------------------------------------------------------------------------------

Stay updated what's going on at equinux
equinux Blog | equinux @ Twitter | equinux @ Facebook

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to