Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8338873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:43:31+00:00 2026-06-09T04:43:31+00:00

I use VLC to stream H264 video file in MPEG TS container through UDP

  • 0

I use VLC to stream H264 video file in MPEG TS container through UDP over LAN. I capture packets in client side with Wireshark and here you can find pcap file: http://www.sendspace.com/file/w0sf36

Is it true that I need to work with MPEG PES to identify I, P or B frames? If so, how can I do that? Here is data of one MPEG PES packet: http://pastebin.com/NayLBx5w . It starts with bytes 0x00 0x00 0x00 0x01. Which bytes should I use to reach my goal?

In pcap file you can see that MPEG PES packets take only 2% of all stream and others packets are simple UDP. Is it enough to work with MPEG PES packets? What information UDP packets carry in this case?

EDIT: This is the typical output I get in Windows using ffprobe.

[PACKET]
codec_type=audio
stream_index=1
pts=54010800
pts_time=600.120000
dts=54010800
dts_time=600.120000
duration=2160
duration_time=0.024000
convergence_duration=N/A
convergence_duration_time=N/A
size=96
pos=1460384
flags=K
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=54012012
pts_time=600.133467
dts=54006006
dts_time=600.066733
duration=3003
duration_time=0.033367
convergence_duration=N/A
convergence_duration_time=N/A
size=207953
pos=1098672
flags=_
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=54009009
pts_time=600.100100
dts=54009009
dts_time=600.100100
duration=3003
duration_time=0.033367
convergence_duration=N/A
convergence_duration_time=N/A
size=145530
pos=1311676
flags=_
[/PACKET]
[PACKET]
codec_type=audio
stream_index=1
pts=54012960
pts_time=600.144000
dts=54012960
dts_time=600.144000
duration=2160
duration_time=0.024000
convergence_duration=N/A
convergence_duration_time=N/A
size=96
pos=1507948
flags=K
[/PACKET]
[PACKET]
codec_type=video
stream_index=0
pts=54018018
pts_time=600.200200
dts=54012012
dts_time=600.133467
duration=3003
duration_time=0.033367
convergence_duration=N/A
convergence_duration_time=N/A
size=46173
pos=1460572
flags=_
[/PACKET]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:43:32+00:00Added an answer on June 9, 2026 at 4:43 am

    As long as you have the content with you in form of a file use

     ffprobe -show_packets <your_file>
    

    to get details on every packet in the stream. It can be any valid video file.

    Here is an incomplete output from a file I had.

    [FRAME]
    media_type=video
    key_frame=0
    pkt_pts=2
    pkt_pts_time=0.100000
    pkt_dts=2
    pkt_dts_time=0.100000
    pkt_duration=1
    pkt_duration_time=0.050000
    pkt_pos=301347
    width=320
    height=240
    pix_fmt=yuv420p
    sample_aspect_ratio=N/A
    pict_type=P
    coded_picture_number=2
    display_picture_number=0
    interlaced_frame=0
    top_field_first=0
    repeat_pict=0
    reference=0
    [/FRAME]
    [FRAME]
    media_type=audio
    key_frame=1
    pkt_pts=0
    pkt_pts_time=0.000000
    pkt_dts=0
    pkt_dts_time=0.000000
    pkt_duration=1024
    pkt_duration_time=0.021333
    pkt_pos=306587
    sample_fmt=s16
    nb_samples=1024
    [/FRAME]
    

    You can write a very simple perl script or something like that to tell you the exact details for every frame.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using vlc to capture a video and audio stream and display it
I use embed vlc plugin for demonstrating rtsp video stream on my web page.
I want to produce a video file out of a stream of RGB images
We currently have a system with live video encoded to an MPEG-TS multicast stream,
How can I use vlcj-1.2.0 to play a video file in an applet if
I'm having some trouble streaming H.264 video over RTSP. The goal is to live-stream
I'm trying to use VLCJ for video capture with webcams (USB & IP) dshow://
use C#,want to upload excel file on google doc. bellow syntax use to upload
I'm in startup of designing a client/server audio system which can stream audio arbitrarily
I gave a DVD ISO image and would like to use VLC's http function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.