Search code examples
streamvlcmuxmpeg-2dvb

Transport stream extract ES video/audio data and play it


I am working on something and i came a point that i cannot find something useful by searching on the internet any further.

I wrote a descrambler for dvbs2 csa, now i want to try it with real data. I have a .ts file and i have the key. All i want to do is to check if my code can descramble even a single frame is sufficient for me. I can get the ES bits by following PID with a software but when i copy-paste straight forward on a file bit after bit, VLC or any other player won't play it.

What should i do?, how can i visualize ES data?

I would be appreciate if you could help me.


Solution

  • I have found out that copying and pasting bits straight forward to notepad won't work. I need to write a code to write to a file those bytes. I wrote a c code for that and now it works. But i had to descramble at least 2000 packages to make it playable on a TS software.