First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 146307
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: media-video herd <media-video@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Craig Lawson <craig.lawson@alum.mit.edu>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
transcode-1.0.2-dvraw.patch transcode 1.0.2 patch to fix dvraw audio export patch Craig Lawson 2006-09-04 13:21 0000 700 bytes Details | Diff
transcode-1.0.2-dvraw.patch transcode 1.0.2 patch to fix dvraw audio export (unified diff) patch Craig Lawson 2006-10-04 22:31 0000 468 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 146307 depends on: Show dependency tree
Show dependency graph
Bug 146307 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-09-04 13:19 0000
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

------- Comment #1 From Craig Lawson 2006-09-04 13:21:03 0000 -------
Created an attachment (id=96005) [edit]
transcode 1.0.2 patch to fix dvraw audio export

------- Comment #2 From Diego E. 'Flameeyes' Pettenò 2006-10-02 00:40:39 0000 -------
Can you please submit this as an unified diff?

------- Comment #3 From Craig Lawson 2006-10-04 22:31:15 0000 -------
Created an attachment (id=98812) [edit]
transcode 1.0.2 patch to fix dvraw audio export (unified diff)

Patch resubmitted in unified diff format.

------- Comment #4 From Steve Dibb 2007-02-01 03:38:44 0000 -------
Fixed in -r4 in CVS, thanks Craig

First Last Prev Next    No search results available      Search page      Enter new bug