search for: samples_out

Displaying 8 results from an estimated 8 matches for "samples_out".

2004 Nov 20
0
ffmpeg2theora start and end time support
...derr,"No theora frames available\n"); break; } if(e_o_s){ break; } } } if(e_o_s && !info.video_only || (ret >= 0 && pkt.stream_index == this->audio_index)){ while(e_o_s || len > 0 ){ int samples=0; int samples_out=0; int data_size; if(len > 0){ len1 = avcodec_decode_audio(&astream->codec, audio_buf,&data_size, ptr, len); if (len1 < 0){ /* if error, we skip the frame */ break; } len -= len1; ptr += len1; if(data_size >0){ s...
2007 Jul 23
2
Shoehorning speex is confusing a newbie
...up the decoder: dec = speex_decoder_init(&speex_nb_mode); speex_bits_set_bit_buffer(&bits, &Speex_enc_buffer[0 + COMPRESS_LENGTH*Speex_player_frame], COMPRESS_LENGTH); tmp=0; speex_decoder_ctl(dec, SPEEX_SET_ENH, &tmp); speex_decode_int(dec, &bits, (spx_int16_t *)samples_out); There are some things I am sure will be asked. Yes I set flags for the TI_54X part, disable wideband, manual allocation, and fixed point in a config file and defined the #define value needed to include that config file. I do have a heap for the setup of the state structure for encode and dec...
2004 Dec 16
0
[patch] ffmpeg2theora A/V sync
...if(e_o_s){ break; } @@ -564,6 +608,9 @@ ret = -1; fprintf (stderr,"No audio frames available\n"); } + /* 20041216/DK keep track of audio timing for A/V sync */ + a_pts_delta = (double)pkt.pts / AV_TIME_BASE - a_pts_out; + a_pts_out += (double)samples_out / this->sample_rate; if(e_o_s && len <= 0){ break; }
2004 Nov 16
0
metadata switches for ffmpeg2theora
...ize[0],e_o_s)){ //this->output_width,this->output_height,output_resized->linesize[0],e_o_s)){ ret = -1; @@ -529,7 +529,7 @@ resampled=audio_buf; } } - if (theoraframes_add_audio(resampled, + if (theoraframes_add_audio(&info, resampled, samples_out *(this->channels),samples_out,e_o_s)){ ret = -1; fprintf (stderr,"No audio frames available\n"); @@ -541,7 +541,7 @@ } /* flush out the file */ - theoraframes_flush (e_o_s); + theoraframes_flush (&info, e_o_s); av_free_packet (&pkt); } whil...
2004 Dec 19
0
[patch] more ffmpeg2theora improvements
...if(e_o_s){ break; } @@ -564,6 +643,9 @@ ret = -1; fprintf (stderr,"No audio frames available\n"); } + /* 20041216/DK keep track of audio timing for A/V sync */ + a_pts_delta = (double)pkt.pts / AV_TIME_BASE - a_pts_out; + a_pts_out += (double)samples_out / this->sample_rate; if(e_o_s && len <= 0){ break; } @@ -670,6 +752,11 @@ "\t --crop[top|bottom|left|right]\tcrop input before resizing\n" "\t --videoquality,-v\t[0 to 10] encoding quality for video\n" "\t --videobitrate,-V\t[4...
2007 Jul 24
0
Shoehorning speex is confusing a newbie
...up the decoder: dec = speex_decoder_init(&speex_nb_mode); speex_bits_set_bit_buffer(&bits, &Speex_enc_buffer[0 + COMPRESS_LENGTH*Speex_player_frame], COMPRESS_LENGTH); tmp=0; speex_decoder_ctl(dec, SPEEX_SET_ENH, &tmp); speex_decode_int(dec, &bits, (spx_int16_t *)samples_out); There are some things I am sure will be asked. Yes I set flags for the TI_54X part, disable wideband, manual allocation, and fixed point in a config file and defined the #define value needed to include that config file. I do have a heap for the setup of the state structure for encode and dec...
2007 Jul 24
0
Shoehorning speex is confusing a newbie
...dec = speex_decoder_init(&speex_nb_mode); speex_bits_set_bit_buffer(&bits, &Speex_enc_buffer[0 + COMPRESS_LENGTH*Speex_player_frame], COMPRESS_LENGTH); tmp=0; speex_decoder_ctl(dec, SPEEX_SET_ENH, &tmp); speex_decode_int(dec, &bits, (spx_int16_t *)samples_out); There are some things I am sure will be asked. Yes I set flags for the TI_54X part, disable wideband, manual allocation, and fixed point in a config file and defined the #define value needed to include that config file. I do have a heap for the setup of the state structure for encode and...
2007 Jul 24
0
Shoehorning speex is confusing a newbie
...up the decoder: dec = speex_decoder_init(&speex_nb_mode); speex_bits_set_bit_buffer(&bits, &Speex_enc_buffer[0 + COMPRESS_LENGTH*Speex_player_frame], COMPRESS_LENGTH); tmp=0; speex_decoder_ctl(dec, SPEEX_SET_ENH, &tmp); speex_decode_int(dec, &bits, (spx_int16_t *)samples_out); There are some things I am sure will be asked. Yes I set flags for the TI_54X part, disable wideband, manual allocation, and fixed point in a config file and defined the #define value needed to include that config file. I do have a heap for the setup of the state structure for encode and dec...