I created a transport stream from a H.264
encoded file using the following ffmpeg
command:
ffmpeg -i encoded.mp4 -c copy -map 0 -vbsf h264_mp4toannexb mpegts sample.ts
Now I want to check the frames and packets within the transport stream. I used
ffprobe -show_frames
which shows the frame details for audio and video frames. But I'm confused about the pkt_size
field. Is it the actual frame size of each elementary stream of audio and video (I/B/P frames)?
Also, when I run
ffprobe -show_packets
is it supposed to give each packet details in the transport stream? Because the size
field of each packet is not 188 bytes, rather it is same as the pkt_size
I got with -show_frames
.
Could someone please explain why the size in -show_packets
of transport stream is not 188 bytes? Did I do anything wrong while multiplexing mp4
to TS
?