Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
I submitted this to transcode-devel. Didn't get a reply, and I don't want it to get lost. When exporting to rawdv format, encoder->samples_this_frame was set to the number of audio bytes in the frame, not the number of samples. This causes audio samples to be either dropped or added, and when samples are added, they contain stack junk. Example: the DV format encodes the number of audio samples as (nSamples - 1580) & 0x3F. At 48KHz NTSC, a typical frame contains 1602 samples, and is encoded as 22. Transcode was incorrectly specifying 1602 * 4 = 6408 samples, which is encoded as 28 -- adding 6 extra samples! The solution is to divide by 2 * size(int16_t) = 4 (because transcode always passes 2 channels to dv_encode_full_audio). Example command: transcode -i movie.avi -y dvraw -uyvy -o movie.dv
Created an attachment (id=96005) [details] transcode 1.0.2 patch to fix dvraw audio export
Can you please submit this as an unified diff?
Created an attachment (id=98812) [details] transcode 1.0.2 patch to fix dvraw audio export (unified diff) Patch resubmitted in unified diff format.
Fixed in -r4 in CVS, thanks Craig