Help : Extract I-frames from MPEG2-TS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ruby33
    Junior Member
    Junior Member
    • Sep 2009
    • 8

    #16
    hey mehturt, just to make things clear... Are you looking at the data bytes of the PES and then decoding.. Because if that is the case , then my data bytes pack doesn;t start with the sequence 00 00 01 00... I do have them occurring twice in the same PES data_byte entries... Btw since things got little difficult for me while handling TS streams.. I ve started using a PS stream.. Let me know if i got it wrong... Thanks again for helping me out..

    Comment

    • mehturt
      Junior Member
      Junior Member
      • Sep 2009
      • 6

      #17
      I'm not quite sure what you mean by "data bytes of the PES and then decoding"..

      Comment

      • ruby33
        Junior Member
        Junior Member
        • Sep 2009
        • 8

        #18
        As in PES_packet_data_byte... Those bytes which come after stuffing_bytes...

        Comment

        • mehturt
          Junior Member
          Junior Member
          • Sep 2009
          • 6

          #19
          Yes, I think so.. I could send you a screenshot from wireshark, since I'm actually working with PCAP files..

          Comment

          • ruby33
            Junior Member
            Junior Member
            • Sep 2009
            • 8

            #20
            Hey that will be great... So just to make things clear... The Video Frame Header at 00 00 01 00 will be available in the PES Data.. I just got wireshark installed. And the occurrence of 00 00 01 00 can be present multiple times in the PES data right? Sorry for asking so many question.. I still a novice.. But i hope to get to the bottom of it...

            Comment

            • mehturt
              Junior Member
              Junior Member
              • Sep 2009
              • 6

              #21
              I'm a novice as well
              So far I thought it will be present only once per PES packet..
              But if it's present multiple times, it might esplain why I'm not seeing any I-frames..

              Comment

              • ruby33
                Junior Member
                Junior Member
                • Sep 2009
                • 8

                #22
                you can mail me at rubyrocks06atgmaildotcom

                Comment

                • ruby33
                  Junior Member
                  Junior Member
                  • Sep 2009
                  • 8

                  #23
                  Like i said the difference is i am using a mpeg-ps.. the data bytes are like 2034 bytes etc etc..

                  Comment

                  • davidmarli
                    Junior Member
                    Junior Member
                    • Apr 2011
                    • 1

                    #24
                    Hello,

                    sorry to up this post ! But It could help me I my new soft.
                    I just want to parse a ts stream, to find how many frames it contains.
                    So I search for the picture header : 0x0100, but the number doesn't match with the real nb of frames.
                    I found 1518 matches, but the real number is 1494 !

                    If I do the same job to count the number of GOP, it match correctly.

                    So How can I do it the right way ? In ohter words, how can I be sure that the 0x0100 give me a picture header ?

                    Thanks a lot.

                    PS : sorry for my english, since that's not my mother langage

                    Comment

                    Working...