Mercurial > mplayer.hg
comparison mencoder.c @ 12489:4a8748f99375
more lame options
author | rfelker |
---|---|
date | Wed, 19 May 2004 04:33:00 +0000 |
parents | 85f18227756f |
children | 09c30d0d0d55 |
comparison
equal
deleted
inserted
replaced
12488:3305ae82dae3 | 12489:4a8748f99375 |
---|---|
222 int lame_param_br=-1; // unset | 222 int lame_param_br=-1; // unset |
223 int lame_param_ratio=-1; // unset | 223 int lame_param_ratio=-1; // unset |
224 float lame_param_scale=-1; // unset | 224 float lame_param_scale=-1; // unset |
225 int lame_param_lowpassfreq = 0; //auto | 225 int lame_param_lowpassfreq = 0; //auto |
226 int lame_param_highpassfreq = 0; //auto | 226 int lame_param_highpassfreq = 0; //auto |
227 int lame_param_free_format = 0; //disabled | |
228 int lame_param_br_min = 0; //not specified | |
229 int lame_param_br_max = 0; //not specified | |
227 | 230 |
228 #if HAVE_MP3LAME >= 392 | 231 #if HAVE_MP3LAME >= 392 |
229 int lame_param_fast=0; // unset | 232 int lame_param_fast=0; // unset |
230 static char* lame_param_preset=NULL; // unset | 233 static char* lame_param_preset=NULL; // unset |
231 static int lame_presets_set( lame_t gfp, int fast, int cbr, const char* preset_name ); | 234 static int lame_presets_set( lame_t gfp, int fast, int cbr, const char* preset_name ); |
1005 lame_set_in_samplerate(lame,mux_a->wf->nSamplesPerSec); | 1008 lame_set_in_samplerate(lame,mux_a->wf->nSamplesPerSec); |
1006 //lame_set_in_samplerate(lame,sh_audio->samplerate); // if resampling done by lame | 1009 //lame_set_in_samplerate(lame,sh_audio->samplerate); // if resampling done by lame |
1007 lame_set_num_channels(lame,mux_a->wf->nChannels); | 1010 lame_set_num_channels(lame,mux_a->wf->nChannels); |
1008 lame_set_out_samplerate(lame,mux_a->wf->nSamplesPerSec); | 1011 lame_set_out_samplerate(lame,mux_a->wf->nSamplesPerSec); |
1009 lame_set_quality(lame,lame_param_algqual); // 0 = best q | 1012 lame_set_quality(lame,lame_param_algqual); // 0 = best q |
1013 if(lame_param_free_format) lame_set_free_format(lame,1); | |
1010 if(lame_param_vbr){ // VBR: | 1014 if(lame_param_vbr){ // VBR: |
1011 lame_set_VBR(lame,lame_param_vbr); // vbr mode | 1015 lame_set_VBR(lame,lame_param_vbr); // vbr mode |
1012 lame_set_VBR_q(lame,lame_param_quality); // 0 = best vbr q 5=~128k | 1016 lame_set_VBR_q(lame,lame_param_quality); // 0 = best vbr q 5=~128k |
1013 if(lame_param_br>0) lame_set_VBR_mean_bitrate_kbps(lame,lame_param_br); | 1017 if(lame_param_br>0) lame_set_VBR_mean_bitrate_kbps(lame,lame_param_br); |
1018 if(lame_param_br_min>0) lame_set_VBR_min_bitrate_kbps(lame,lame_param_br_min); | |
1019 if(lame_param_br_max>0) lame_set_VBR_max_bitrate_kbps(lame,lame_param_br_max); | |
1014 } else { // CBR: | 1020 } else { // CBR: |
1015 if(lame_param_br>0) lame_set_brate(lame,lame_param_br); | 1021 if(lame_param_br>0) lame_set_brate(lame,lame_param_br); |
1016 } | 1022 } |
1017 if(lame_param_mode>=0) lame_set_mode(lame,lame_param_mode); // j-st | 1023 if(lame_param_mode>=0) lame_set_mode(lame,lame_param_mode); // j-st |
1018 if(lame_param_ratio>0) lame_set_compression_ratio(lame,lame_param_ratio); | 1024 if(lame_param_ratio>0) lame_set_compression_ratio(lame,lame_param_ratio); |