[MPlayer-dev-eng] noisy audio resample, no duplicate frames for MPEG, no audio stre am for MPEG

dirk-holger.lenz at exgate.tek.com dirk-holger.lenz at exgate.tek.com
Wed Sep 17 09:30:00 CEST 2003


Hello,

I had some problems coding VCDs from video streams of my digital camera.
I found three problems:
1. Sampling up the audio stream from 11025 /s sampling rate to 44100 /s
leaded
   to a very noisy output.
   It seems to me that the implemented algorithm using a filter for sampling
up
   is not the good choice for sampling up. I have replaced it by a simple
interpolation
   algorithm. This works fine to me.
2. The camera samples videos with about 20 frame per second. The 'about'
means' that
   camera often skips frames.
   There are not many encoders that can deal with skipped frames and the
mencoder is one
   of them that can deal a little bit with it. But for the output format
MPEG it was
   not working. The mencoder produced warnings and the output file was not
readable
   by any player.
   I have had a look into the code and I think a good way to solve the
problem is to
   duplicate decoded frames and put them again into the filter/encoder
pipeline.
   This I have done and it is working fine to me.
3. Last problem was that no audio player detected an audio stream in the
output the
   mencoder has generated (using ouput format MPEG). I found a problem in
computing the
   stream id. The mencoder coded 0xbf instead of 0xc0. I have corrected
this.

I have appended the path (to the 1.0pre1 release).

Best regards

Dirk

 - E-mail:  dirk-holger.lenz at tek.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mencoder.diff
Type: application/octet-stream
Size: 5850 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030917/497d4317/attachment.obj>


More information about the MPlayer-dev-eng mailing list