Thread: Identify H264(or MPEG2) I, P, B frame

  1. #1
    Registered User
    Join Date
    Jul 2012
    Posts
    26

    Identify H264(or MPEG2) I, P, B frame

    Hello,

    I have one MPEG PES packet: MPEG PES data - Pastebin.com and want to know is it possible to say if this packet( or frame) is I, P or B. I want to write a script in case to deal with more frames and think that I could use memcmp() here. Are any of you familiar with video packets? If it is simplier to identify I, P, B frames in MPEG4 and MPEG2, I can work with them as well.

  2. #2
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    A cursory glance says that isn't a valid packet for either stream.

    In any case, the "MPEG" stream isn't really simple enough for a `memcmp' to be reasonable unless your content is severely restricted.

    What are you trying to do? (You are asking about an implementation. What is the reason you want to implement this thing?)

    Soma

  3. #3
    Registered User
    Join Date
    Jul 2012
    Posts
    26
    I stream video file with VLC and catch it with iptables and libipq in Linux client. I want to identify frames and drop some of them in order to see how video quality changes.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. identify bug in code
    By acpower in forum C Programming
    Replies: 1
    Last Post: 06-17-2012, 07:02 AM
  2. Mpeg2 decoder
    By thangdc01_02 in forum C Programming
    Replies: 6
    Last Post: 11-21-2010, 04:09 PM
  3. identify my algorithm, please!
    By MK27 in forum Tech Board
    Replies: 8
    Last Post: 11-25-2009, 07:01 AM
  4. Replies: 3
    Last Post: 09-17-2006, 08:13 AM
  5. can you identify this car?
    By axon in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 07-19-2004, 02:59 PM

Tags for this Thread