milliseconds to mpeg-ts pts/dts
guys, i try to create an mpegts file from H.264 and ACC raw frames that i receive from a network connection. I create AVPacket structures, set data, size, pts and dts etc. manually. For the stream that I receive, PTS and DTS seem to be equal, so I just calculate the packet pts and dts with incoming pts / 1000.0 * 90000.0 I do that for audio and video. Unfortunately that seems to be wrong as ffmpeg states "dts < pcr, TS is invalid" after a couple of seconds. I seems that the timestamps run out of sync with the internal pcr reference clock. What would be the correct way to calculate the pts and dts of the mpegts stream? Thanks alot for your help! Cheers, Heri
Hello, I have this problem, too, Anyone has ideal about raw data h264+AAC to be contained into mpegts, please help me, thanks a lot. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/milliseconds-to-mpeg-ts-pts-dts-tp9... Sent from the FFmpeg-users mailing list archive at Nabble.com.
Dear *Heribert Steuer, I am working on Camera, I have the same problem with your issue *https://lists.libav.org/pipermail/ffmpeg-user/2009-May/020738.html, What would be the correct way to calculate the pts and dts of the mpegts stream? By the way, my source is raw data H264+AAC and I will packet raw data into mpegts container by ffmpeg. But the pts is always error. do you know now? Please help me. Thanks a lot. Regards, Eric Hsieh, 09/07
participants (3)
-
Eric Hsieh -
Psychesnet -
steuer@unixsystems.de