>> FYI2: Also note that the AVC demuxer is broken in ffmpeg in ts streams (for >> about 2 years now). I have a patch for that if you are interested. >
>Yes I am very interested. But demuxing works, if I demux the stream myself with ffmpeg, right? I mean if I read packets via av_read_frame(...) and save the packet.data-stuff in separate files, right? Yes, know though that the audio demuxer may fail for channel re-allocation in DTS streams. I have another patch for that ;) Also, LPCM streams in bluray come in very small packets (read 960 bytes or so), and may switch byte format (16/32) between clips. Be sure to take that into considerations (ege a broadcast with an intermixed advertisement may switch stream formats). Patches attached. Not sure the mpegts.c one will apply, since I needed to cut a lot of stuff out of the patch that I have in my tree for other things (stream video bitmap resizing now being discussed here for one ;)). In that case, you can cut and past it. Patches are for the SVN tree. I havent switched to git yet. Waiting until the drama stops. The memcpy's may be optimized a bit more for sure, as do the re-allocations. As for as I read from the docs, the local headers should never be bigger then 128 bytes. Last; the mpegts demuxer together with the vc1dec/vc1parser are a bit of a convolved mess. Lots of code repeat. I didnt change the local header decoding in VC1Dec for parsing the headers that the initial vc1 parser does. It could be doen also, but the ffmpeg doesnt seem to need them. Anyway; the patches do 3 things: 1) Add local header support for mpegts encapsulation, since the avs dec needs those. I only enabled it for VC1 streams since I know it fails there for sure (about 50% of the blurays out there have a VC1 stream in at some point). 2) Fix a crash when VC1 codec init fails (the vc tables didnt get initialized then). 3) Fix a crash when doing hardware decoding init in vc1. Usuall disclaimers apply... Be safe; Erik
vc1dec.patch
Description: Binary data
vc1_parser.patch
Description: Binary data
mpegts.patch
Description: Binary data
_______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
