¡@

Home 

2014/10/16 ¤W¤È 08:21:08

android Programming Glossary: packet.size

Decoding Video using FFMpeg for android

http://stackoverflow.com/questions/11322952/decoding-video-using-ffmpeg-for-android

videoStream Decode video frame avcodec_decode_video2 pCodecCtx pFrame frameFinished packet packet.data packet.size Did we get a video frame if frameFinished Convert the image from its native format to RGB Temporarily down img_convert..

How to decode audio via FFmpeg in Android

http://stackoverflow.com/questions/5367595/how-to-decode-audio-via-ffmpeg-in-android

packet int len1 data_size data_size 417 len1 avcodec_decode_audio2 aCodecCtx int16_t audio_buf & data_size packet.data packet.size return packet.size Else av_free_packet & packet return 0 In this case when the avcodec_decode_audio2 I got 1. What I did.. data_size 417 len1 avcodec_decode_audio2 aCodecCtx int16_t audio_buf & data_size packet.data packet.size return packet.size Else av_free_packet & packet return 0 In this case when the avcodec_decode_audio2 I got 1. What I did wrong Note When I.. &packet 0 if aCodecCtx codec_type AVMEDIA_TYPE_AUDIO int data_size AVCODEC_MAX_AUDIO_FRAME_SIZE 2 int size packet.size while size 0 int len avcodec_decode_audio3 aCodecCtx int16_t pAudioBuffer &data_size &packet jbyte bytes env GetByteArrayElements..

Decoding audio via Android using FFMpeg

http://stackoverflow.com/questions/6228008/decoding-audio-via-android-using-ffmpeg

DEBUG_TAG RAH audio ready int data_size AVCODEC_MAX_AUDIO_FRAME_SIZE 2 FF_INPUT_BUFFER_PADDING_SIZE int size packet.size y 0 decoded 0 __android_log_print ANDROID_LOG_DEBUG DEBUG_TAG RAH packet size d size while size 0 __android_log_print..