[MPlayer-users] Broken avi file: "AVI: Missing video stream!?" video works, no audio though

Da Rock rock_on_the_web at comcen.com.au
Mon Nov 17 23:43:23 CET 2008


I've recorded off my dvb card before, but this has me stumped.

I've done a mplayer -dumpstream to get the ts file, used avidemux to
clean up the video and used the copy codecs to save the result as an
avi. Once this is done I use mencoder to encode to h264.

This usually just works, but when I play the result on this one I get no
sound. I get sound from the original ts file, the result out of
avidemux, but in mencoder I get the above error when it tries to read
the file. This is the output:

mencoder <avi-file> -o <output-avi-file> -of avi -mc 10 -tskeepbroken
-audio-preload 2.0 -ovc x264 -x264encopts bitrate=1000 -oac mp3lame -vf
spp,scale,pullup,softskip,pp=de,pp=lb,harddup
MEncoder dev-SVN-r27468-4.1.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz (Family: 6, Model:
15, Stepping: 11)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0x8a626766
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1

Badly interleaved AVI file detected - switching to -ni mode...
AVI: Missing video stream!? Contact the author, it may be a bug :(
MPEG-ES file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  10000.0 kbps (1250.0
kbyte/s)
[V] filefmt:1  fourcc:0x10000002  size:720x576  fps:25.000
ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [pp=lb]
Opening video filter: [pp=de]
Opening video filter: [softskip]
Opening video filter: [pullup]
Opening video filter: [scale]
Opening video filter: [spp]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
[PP] Using external postprocessing filter, max q = 6.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0x85f3f60]using unscaled yuv420p -> yuv420p special
converter
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: none!
[mpeg2video @ 0x860c030]end mismatch left=1932938 606
[mpeg2video @ 0x860c030]Warning MVs not available
[mpeg2video @ 0x860c030]concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x860c030]end mismatch left=12418 6062E  A-V:0.000 [0:0]
[mpeg2video @ 0x860c030]Warning MVs not available
[mpeg2video @ 0x860c030]concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x860c030]end mismatch left=6280 1818mb  A-V:0.000 [0:0]
[mpeg2video @ 0x860c030]Warning MVs not available
[mpeg2video @ 0x860c030]concealing 45 DC, 45 AC, 45 MV errors
New_Face failed. Maybe the font path is wrong.n   0mb  A-V:0.000 [0:0]
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...
ODML: vprp aspect is 16:9.
Writing header...
ODML: vprp aspect is 16:9.

1 duplicate frame(s)!
[mpeg2video @ 0x860c030]end mismatch left=12432 180mb  A-V:0.000 [0:0]
[mpeg2video @ 0x860c030]concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x860c030]end mismatch left=6279 3031mb  A-V:0.000 [0:0]
[mpeg2video @ 0x860c030]concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x860c030]end mismatch left=12427 303mb  A-V:0.000 [0:0]
[mpeg2video @ 0x860c030]concealing 45 DC, 45 AC, 45 MV errors
[mpeg2video @ 0x860c030]end mismatch left=12427 303mb  A-V:0.000 [0:0]
[mpeg2video @ 0x860c030]concealing 45 DC, 45 AC, 45 MV errors

So it sees an audio and video stream in the avi header but can't find
it. Plus all the errors it conceals- could this be the problem?

What my question is, is can I tell mencoder to hunt further in the file
to find the audio? Or something like that?

Cheers




More information about the MPlayer-users mailing list