diff options
| author | Tim Redfern <tim@herge.(none)> | 2013-04-23 14:01:06 +0100 |
|---|---|---|
| committer | Tim Redfern <tim@herge.(none)> | 2013-04-23 14:01:06 +0100 |
| commit | 1e26d66c3a7be31a9dd214b587488dfe3ed69b4b (patch) | |
| tree | 036dbb6a151a6388fbfd4554cecf3469d97520f8 /rotord/rotor.cpp | |
| parent | 4b3aad507aaf75263f5b8c719768b24ba688c31e (diff) | |
writing audio but sped up for some reason
Diffstat (limited to 'rotord/rotor.cpp')
| -rwxr-xr-x | rotord/rotor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rotord/rotor.cpp b/rotord/rotor.cpp index a7c15ba..eb86c27 100755 --- a/rotord/rotor.cpp +++ b/rotord/rotor.cpp @@ -769,7 +769,7 @@ bool Video_output::render(const float duration, const float framerate,const stri int frameRate=25; AVCodecID codecId=AV_CODEC_ID_MPEG4; std::string container ="mov"; - std::string input ="01.wav"; + std::string input ="01.mp3"; bool usingaudio=audioloader.setup(input); @@ -781,6 +781,7 @@ bool Video_output::render(const float duration, const float framerate,const stri float v=0.0f; for (float f=0.0f;f<duration;f+=step) { if (!exporter->encodeFrame(get_output(Frame_spec(f,framerate,outW,outH))->RGBdata,audioloader.get_samples(exporter->get_audio_framesize()))){ + //if (!exporter->encodeFrame(get_output(Frame_spec(f,framerate,outW,outH))->RGBdata,audioloader.get_packet())){ cerr << "Rotor: video output failed"<<endl; break; } |
