audioencoder: error when transcoding ogg vorbis to matroska flac audio with ges
Submitted by Stefan Hajnoczi
Link to original bug (#729317)
Description
Created attachment 275525
8 second 440 Hz sine wave with 44.1 kHz sample rate, generated by Audacity
When a ogg audio clip is placed twice the following error happens:
$ ges-launch-1.0 --outputuri output.mkv --track-types audio --format video/x-matroska:audio/x-flac,channels=1,rate=44100 /tmp/sine.ogg 0 5 /tmp/sine.ogg 5 5
Adding clip file:///tmp/sine.ogg inpoint:0:00:00.000000000 duration:0:00:05.000000000
Adding clip file:///tmp/sine.ogg inpoint:0:00:05.000000000 duration:0:00:05.000000000
ERROR from element flacenc0: received more encoded samples 4608 than provided 1388
Debugging info: gstaudioencoder.c(882): gst_audio_encoder_finish_frame (): /GESPipeline:gespipeline0/GstEncodeBin:internal-encodebin/GstFlacEnc:flacenc0
Note the error does not happen if the clip is just used once.
Attachment 275525, "8 second 440 Hz sine wave with 44.1 kHz sample rate, generated by Audacity":
sine.ogg