search for: audio_qu

Displaying 6 results from an estimated 6 matches for "audio_qu".

Did you mean: audio_out
2004 Nov 20
0
ffmpeg2theora start and end time support
...return (double)(int)(x - 0.5); else return (double)(int)(x + 0.5); } theoraframes_info info; static int using_stdin = 0; typedef struct ff2theora{ AVFormatContext *context; int video_index; int audio_index; int deinterlace; int sample_rate; int channels; int disable_audio; float audio_quality; int output_width; int output_height; double fps; ImgReSampleContext *img_resample_ctx; /* for image resampling/resizing */ ReSampleContext *audio_resample_ctx; ogg_uint32_t aspect_numerator; ogg_uint32_t aspect_denominator; double frame_aspect; int video_quality; /* cropping */ i...
2004 Dec 19
0
[patch] more ffmpeg2theora improvements
....c (revision 8373) +++ ffmpeg2theora.c (working copy) @@ -1,3 +1,4 @@ +/* -*- tab-width:4;c-file-style:"cc-mode"; -*- */ /* * ffmpeg2theora.c -- Convert ffmpeg supported a/v files to Ogg Theora * Copyright (C) 2003-2004 <j@v2v.cc> @@ -54,6 +55,9 @@ int disable_audio; float audio_quality; int audio_bitrate; + int smoothness; + int keyint; + int noautosync; int output_width; int output_height; double fps; @@ -123,6 +127,9 @@ this->video_bitrate=0; this->audio_quality=0.297;// audio quality 3 this->audio_bitrate=0; + this->smoothness=0; + this->...
2012 Jul 15
0
iPhone distorted audio
...h I can clearly recognize what was said and the encode and decode functions go through without any errors. I bypassed the speex functions and just sent uncompressed PCM using the same app and its crystal clear. Where am I going wrong here? Anyone got any suggestions? My code is as follows #define AUDIO_QUALITY 10 #define FRAME_SIZE 160 #define COMP_FRAME_SIZE 62 char *encodeSpeexWithBuffer(spx_int16_t *buffer, int *insize) { SpeexBits bits; void *enc_state; char *outputBuffer = (char *)malloc(COMP_FRAME_SIZE); speex_bits_init(&bits); enc_state = speex_encoder_init...
2012 Sep 30
0
Speex (in ios) really poor quality (and robotic) sound
Hi everyone, I'm trying to encode/decode with speex, when I do not, the audio is loud and clear, but when I encode/decode to test audio quality, I get a really poor audio quality and a robotic sound. Here's my init audio method : #define AUDIO_QUALITY 10 - (void) initAudio { try { //SPEEX CONFIG speex_bits_init(&bits_in); speex_bits_init(&bits_out); enc_state = speex_encoder_init(&speex_nb_mode); dec_state = speex_decoder_init(&speex_nb_mode);...
2004 Nov 20
0
ffmpeg2theora start and end time support - patch
...es no end time set */ } return this; } @@ -142,7 +146,7 @@ AVCodec *acodec = NULL; AVCodec *vcodec = NULL; float frame_aspect; - + int frame_number=0; double fps = 0.0; for (i = 0; i < this->context->nb_streams; i++){ @@ -426,9 +430,23 @@ info.vorbis_quality = this->audio_quality; info.vorbis_bitrate = this->audio_bitrate; theoraframes_init (&info); - + /*seek to start time*/ + av_seek_frame( this->context, -1, (int64_t)AV_TIME_BASE*this->start_time, 1); + /*check for end time and caclulate number of frames to encode*/ + int no_frames = fps*(th...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...frames_close (theoraframes_info *info); Index: ffmpeg2theora.c =================================================================== --- ffmpeg2theora.c (revision 8208) +++ ffmpeg2theora.c (working copy) @@ -425,7 +425,7 @@ info.sample_rate = this->sample_rate; info.vorbis_quality = this->audio_quality; info.vorbis_bitrate = this->audio_bitrate; - theoraframes_init (); + theoraframes_init (&info); /* main decoding loop */ do{ @@ -491,7 +491,7 @@ } first=0; //now output_resized - if(theoraframes_add_video(output_resized->data[0], + if(theoraf...