[FFmpeg-devel] Getting timestamp from transport stream

Sabur Hassan Baidya saburhb at gmail.com
Sat Sep 26 21:48:33 CEST 2015


I am a newbie to ffmpeg. I created a transport stream from encoded mp4 file
using ffmpeg command. Now I am trying to send the packets of the transport
stream over UDP. I found that there are ffmpeg commands for client server
communication which I tested with the .ts file.

But I want to control the packets at sender side and want to inject the
packets manually to some protocol setup.

So, I wanted to ask if there is any ffmpeg/ffprobe command that gives the
timestamp of each TS packets in the transport stream.

I found some answers in different forums saying that we can get the bit
rates while  multiplexing the mp4 file to transport stream. But when a
command e.g '*ffmpeg -i encoded.mp4 -c copy -map 0 -vbsf h264_mp4toannexb
mpegts out.ts*' is used, what does the variable bit stream signify?

Is there any other way I can get the timestamps of TS packets in Transport

Thanks & Regards.

More information about the ffmpeg-devel mailing list