This Banner is For Sale !!
Get your ad here for a week in 20$ only and get upto 15k traffic Daily!!!

Encode and decode FourCC codes, in Python


Convert the string “H264” to an integer code:

sum([ord(c) << (i * 8) for i, c in enumerate("H264")])

Convert the integer code (0x34363248) again to a string:

''.be a part of([chr((0x34363248 >> (i * 8)) & 0xff) for i in range(4)])

See this gist: https://gist.github.com/eliteraspberries/b017f998c97c395881f0d2f05a08ec60

The Article was Inspired from tech community site.
Contact us if this is inspired from your article and we will give you credit for it for serving the community.

This Banner is For Sale !!
Get your ad here for a week in 20$ only and get upto 10k Tech related traffic daily !!!

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to Contribute to us or want to have 15k+ Audience read your Article ? Or Just want to make a strong Backlink?