Hi, I've got a problem with the decoding libav interface for MPEG-2 transport streams (mpeg2ts):
Having a transport stream with multiple programs (several video and audio streams) and therefore also several PES packet PIDs the generated libav stream list shows up incorrect after opening a specific file, creating a format context for it and after reading the av_find_stream_info(). There are 10 programs within the file and 4 of these programs have scrambled only streams associated with them. libav chooses a program which has scrambled video and audio streams and leaves the rest of the program to stream map empty. Therefore I can't read out nor decode any of the associated data. I've found this problem because of writing a secondary C++ interface covering most of the MPEG-1/2 stuff just for parsing a file and calculate or estimate the frame count of the file prior reading the whole thing. Covering TS was the final part and my interface finds the complete program/PID/stream map exactly as e.g. DGIndex does - so I know exactly which PID and stream I want to read out to have an unencrypted video. Can anyone help here? If you need the test file in question I have the permission to upload it to any appropriate place. It has PAT/PMT entries with the most challenging packetizing I've ever seen. There's no PSIP but it's out of sync for more then 10 times within 10MB of size. Cheers, Konran _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
