Changeset 1fe3ac2
- Timestamp:
- Dec 6, 2013, 5:23:08 AM (11 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 0af9003
- Parents:
- 3d5cddf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_avcodec.c
r3d5cddf r1fe3ac2 101 101 char errorstr[errorstr_len]; 102 102 if (av_strerror (err, errorstr, errorstr_len) == 0) { 103 AUBIO_ERR("Could not find stream information for %s (%s)\n", s->path, errorstr); 104 } else { 105 AUBIO_ERR("Could not find stream information for %s (unknown error)\n", s->path); 106 } 107 goto beach; 108 } 109 110 // Dump information about file onto standard error 103 AUBIO_ERR("Could not find stream information " 104 "for %s (%s)\n", s->path, errorstr); 105 } else { 106 AUBIO_ERR("Could not find stream information " 107 "for %s (unknown error)\n", s->path); 108 } 109 goto beach; 110 } 111 112 // dump information about file onto standard error 111 113 //av_dump_format(avFormatCtx, 0, s->path, 0); 112 114 113 // look for the first audio stream , printing a warning if more than one is found115 // look for the first audio stream 114 116 uint_t i; 115 117 sint_t selected_stream = -1; … … 119 121 selected_stream = i; 120 122 } else { 121 AUBIO_WRN("More than one audio stream in %s, taking the first one\n", s->path); 123 AUBIO_WRN("More than one audio stream in %s, " 124 "taking the first one\n", s->path); 122 125 } 123 126 } … … 176 179 char errorstr[errorstr_len]; 177 180 if (av_strerror (err, errorstr, errorstr_len) == 0) { 178 AUBIO_ERR("Could not open AVAudioResampleContext for %s (%s)\n", s->path, errorstr); 179 } else { 180 AUBIO_ERR("Could not open AVAudioResampleContext for %s (unknown error)\n", s->path); 181 AUBIO_ERR("Could not open AVAudioResampleContext for %s (%s)\n", 182 s->path, errorstr); 183 } else { 184 AUBIO_ERR("Could not open AVAudioResampleContext for %s (unknown error)\n", 185 s->path); 181 186 } 182 187 goto beach; … … 280 285 // max_out_samples, AUBIO_AVCODEC_MIN_BUFFER_SIZE); 281 286 282 //AUBIO_WRN("aubio_source_avcodec_readframe converted %d to %d samples\n", in_samples, out_samples);283 //for (i = 0; i < out_samples; i ++) {284 // AUBIO_DBG("%f\n", SHORT_TO_FLOAT(output[i]));285 //}286 287 av_free_packet(&avPacket); 287 288 s->avFormatCtx = avFormatCtx; … … 293 294 *read_samples = out_samples; 294 295 } 295 296 296 297 297 void aubio_source_avcodec_do(aubio_source_avcodec_t * s, fvec_t * read_data, uint_t * read){
Note: See TracChangeset
for help on using the changeset viewer.