[Libav-user] FFmpeg mpeg2 packet length

Steffen Ebersbach ebersbac at hs-mittweida.de
Tue Oct 11 07:32:52 CEST 2011


Am 10.10.2011 19:22, schrieb c:
> On 10/10/2011 09:45 AM, Steffen Ebersbach wrote:
>> Am 9.10.2011 16:46, schrieb Veysel Macit:
>>> Hi every developer,
>>>
>>> i need length of packet for detect scene changing is it possiable to 
>>> get lengt of packets(i-p-b) in data before decoded?
>>> Thanks...
>>> _______________________________________________
>>> Libav-user mailing list
>>> Libav-user at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>> After reading a packet from the input stream the return value of the 
>> function is the length of the packet of the encoded content.
>>
>> Steffen
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
> which function you meant exactly?
> Thanks...
> Veysel
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user



The function I mean is "av_read_packet" , but im wrong, the return value 
isn't the packetsize , but in the av_packet structure a field called 
"size" exists, which are the number of bytes of the decoded frame.


Steffen


More information about the Libav-user mailing list