[mythtv] file length wrong
Craig Longman
craigl at begeek.com
Sun Jun 8 03:05:43 EDT 2003
i'm converting files from a pvr-250 to mpeg-4, using the existing code
in NuppleVideoPlayer::ReencodeFile(). it uses
NuppleVideoRecorder::WriteVideo() to write the video frames. i noticed
though that WriteVideo() always refers to the frame number shifted one
bit right. is that because its assuming that it is actually only
writing a field of information, not a frame? everywhere it refers to
frame number, it seems to do this, and i notice that my transcoded files
show up as pretty much half as long as the should be.
now, the next question. can anyone see any problems if i just double up
the frame number i send to WriteVideo()? i don't think it will screw
anything up, most really critical things appear to be purely timecode
oriented, and that will not change. and the dropped frame (or rather,
field) check should be ok, as it too shifts right by 1.
does this explanation sound reasonable? any comments?
cheers,
CraigL->Thx();
More information about the mythtv-dev
mailing list