Hi Team,
I need to get Header details of Video from sample video file.Is there any package available for this? I have found PESHeader method in the below URL.(That is for PES alone).Is there any way to get generic header details?
I am able to get header sync byte(0X47) details only.But i need to get complete header details 0X471fff17.I didn’t find any method for reading header details.Is there any other methods available to achieve this?
​
for v := range pidSet {
fmt.Printf(“Found pid %d\n”, v)
}
} else {
fmt.Printf(“Unable to open file [%s] due to [%s]\n”, filename, err.Error())
}
}
pkt[0] you mean? If so, the remaining bytes will probably in pkt[1], pkt[2], and pkt[3].
Also the first if err != nil {…} in the reading loop, will never fire, as you do only enter the body of the loop when err == nil.
And could you please do me a favor and use proper markdown to format your code? You have plenty of opportunities to do so:
Write code, select it and click the </> button in the editors toolbar,
Indent all code by additional 4 spaces,
or Use fenced codeblocks by denoting the start of the code by a line containing at least three backticks (`) or tildes (~) followed by an optional language name and then a newline while ending the code block with a line containing only the same numbers of backticks/tildes and a newline.