#128 closed defect (fixed)
FFmpeg H.261 support broken
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | vd |
Version: | HEAD | Severity: | normal |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
Above mentioned sample plays fine in ffplay but fails in MPlayer.
Change History (9)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
I have lavf compiled in, here is mplayer -v output:
MPlayer dev-CVS-041009-21:35-3.3.4 (C) 2000-2004 MPlayer Team
CommandLine: '-v' '/tmp/cifmad384.p64'
init_freetype
get_path('font/font.desc') -> '/home/diego/.mplayer/font/font.desc'
Font /home/diego/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit 3DNow) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/diego/.mplayer/input.conf'
Can't open input config file /home/diego/.mplayer/input.conf: No such file or
directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or
directory
Falling back on default (hardcoded) input config
get_path('cifmad384.p64.conf') -> '/home/diego/.mplayer/cifmad384.p64.conf'
Playing /tmp/cifmad384.p64.
[file] File size is 554416 bytes
STREAM: [file] /tmp/cifmad384.p64
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for Nullsoft Streaming Video
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename /tmp/cifmad384.p64 ext: .p64
Checking for MOV
Checking for VIVO
header block 1 size: 1
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 69178, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=1 size=8404984
LMLM4 Stream Format not found
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
MPEG packet stats: p100: 0 p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 0 b: 0 c: 0 idr: 0
sps: 0 pps: 0 PES: 0 MP3: 30
Not MPEG System Stream format... (maybe Transport Stream?)
==> Found video stream: 0
ds_fill_buffer: EOF reached (stream: video)
LAVF_check: raw h261
libavformat file format detected.
==> Found video stream: 0
======= VIDEO Format ======
biSize 40
biWidth 0
biHeight 0
biPlanes 0
biBitCount 0
biCompression 825635400='H261'
biSizeImage 0
===========================
LAVF: 0 audio and 1 video streams found
LAVF: build 4620
VIDEO: [H261] 0x0 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:35 fourcc:0x31363248 size:0x0 fps:25.00 ftime:=0.0400
get_path('sub/') -> '/home/diego/.mplayer/sub/'
get_path('default.sub') -> '/home/diego/.mplayer/default.sub'
X11 opening display: :0.0
vo: X11 color mask: FFFF (R:F800 G:7E0 B:1F)
vo: X11 running at 1280x1024 with depth 16 and 16 bpp (":0.0" => local display)
[x11] Detected wm supports layers.
[x11] Using workaround for Metacity bugs.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
==========================================================================
Opening video decoder: [xanim] XAnim codecs
VDec: Codec did not set sh->disp_w and sh->disp_h, trying workaround.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh261] vfm:ffmpeg (CCITT H.261)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
[h261 @ 0x85c779c]Bad picture start code
[h261 @ 0x85c779c]header damaged
Error while decoding frame!
[h261 @ 0x85c779c]warning: first frame is no keyframe
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is nan:1 - prescaling to correct movie aspect.
VO Config (352x288->352x-2147483648,flags=0,'MPlayer',0x32315659)
VO: invalid dimensions!
FATAL: Cannot initialize video driver.
FATAL: Could not initialize video filters (-vf) or video output (-vo).
uninit video: ffmpeg
vo: uninit!
vo: uninit ...
Exiting... (End of file)
comment:3 by , 20 years ago
(In reply to comment #2)
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
Movie-Aspect is nan:1 - prescaling to correct movie aspect.
VO Config (352x288->352x-2147483648,flags=0,'MPlayer',0x32315659)
VO: invalid dimensions!
The dimensions printed here look extremely fishy. Roberto, might this be the
source of the problem?
comment:4 by , 20 years ago
Movie-Aspect is nan:1 - prescaling to correct movie aspect.
That's probably the problem
VO Config (352x288->352x-2147483648,flags=0,'MPlayer',0x32315659)
VO: invalid dimensions!
That's what i get
Starting playback...
[h261 @ 0x8553180]Bad picture start code
[h261 @ 0x8553180]header damaged
Error while decoding frame!
[h261 @ 0x8553180]warning: first frame is no keyframe
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (352x288->352x288,flags=0,'MPlayer',0x32315659)
VO: [xv] 352x288 => 352x288 Planar YV12
VO: Description: X11/Xv
BTW this can be old
MPlayer dev-CVS-041009-21:35-3.3.4 (C) 2000-2004/ MPlayer Team
some h261 related commits to ffmpeg were done on 28/10/2004 (no idea if they're
related, i can't check it now)
comment:5 by , 20 years ago
(In reply to comment #4)
BTW this can be old
MPlayer dev-CVS-041009-21:35-3.3.4 (C) 2000-2004/ MPlayer Team
No, I'm using latest CVS. It seems that version.h does not get updated.
some h261 related commits to ffmpeg were done on 28/10/2004 (no idea if
they're related, i can't check it now)
It's still broken.
comment:6 by , 20 years ago
Hmm, it works on this machine:
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
with both Cygwin and MinGW under Windows 2000. I'll try to investigate what is
causing the problems on my (K6-III+) Linux box.
comment:7 by , 20 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Apparently it's a compiler bug. It goes away when I recompile with gcc 3.3.4,
but both 2.95.4 (Debian) and a self-compiled 2.95.3 display the problem.
comment:8 by , 20 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
According to Rich this is not a compiler bug.
comment:9 by , 20 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Fixed by Michael in libavformat.
works for me.
do you have lavf compiled in?
and btw read bugreports.html :)