[mythtv-commits] Ticket #9699: Mythtranscode exits out after sending 1st frame
MythTV
noreply at mythtv.org
Tue Mar 29 13:52:52 UTC 2011
#9699: Mythtranscode exits out after sending 1st frame
----------------------------------------+------------------------
Reporter: ghaushe | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Mythtranscode | Version: 0.24-fixes
Severity: medium | Keywords:
Ticket locked: 0 |
----------------------------------------+------------------------
I have a very old recording (circa 2004, .nuv format recorded with PVR250
I think). It plays fine in myth, but when I tried to transcode it,
mythtranscode exited after sending the 1st frame.
I debugged it to this:
The second time through MythPlayer::TranscodeGetNextFrame
{{{
lastDecodedFrameNumber = videoOutput->GetLastDecodedFrame()->frameNumber;
}}}
returns -1
since lastDecodedFrameNumber is uint64_t, it becomes a very large number.
Later we do this:
{{{
if (totalFrames && lastDecodedFrameNumber >= totalFrames)
return false;
}}}
which fires because lastDecodedFrameNumber is > totalFrames.
When I changed lastDecodedFrameNumber to a signed int64_t and changed the
above check to
{{{
if (totalFrames && lastDecodedFrameNumber >= (int64_t)totalFrames)
}}}
Transcoding worked fine. The proper solution may be for
GetLastDecodedFrame() to not return a frame number of -1, but I don't know
enough about the video buffers to go any further.
I can provide the original nuv if needed, but it is about 1GB. I can try
trimming it down to see if I can reproduce with only a portion of the file
as well.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/9699>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list