Opened 17 years ago

Closed 17 years ago

#3483 closed defect (fixed)

MythTranscode incorrect bitrate for AVCodec output fps != 29.97

Reported by: anonymous Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtranscode Version: head
Severity: medium Keywords: mythtranscode bitrate
Cc: Ticket locked: no

Description

When MythTranscode? sets up the NuppelVideoRecorder? for MPEG4 (AVCodec) output, it initializes the output codec before it sets the frame rate. This messes with the rate controller when you actually start encoding content like 720p 59.94fps (bitrate ends up twice what would be expected). The solution is to set the NVR framerate before calling NuppelVideoRecorder::SetupAVCodec(), but after setting the tvformat, which sets a frame rate itself.

Attachments (1)

transcode_rc_fix.diff (939 bytes) - added by bmayland@… 17 years ago.
move framerate setting before initializing codec

Download all attachments as: .zip

Change History (3)

Changed 17 years ago by bmayland@…

Attachment: transcode_rc_fix.diff added

move framerate setting before initializing codec

comment:1 Changed 17 years ago by stuartm

Component: mythtvmythtranscode

comment:2 Changed 17 years ago by cpinkham

Resolution: fixed
Status: newclosed

(In [13893]) Set the frame rate, video aspect, and transcoding flag before initializing the AVCodec output during lossy transcodes.

Closes #3483 using patch by Bryan Mayland.

Note: See TracTickets for help on using tickets.