[MPlayer-users] ffmpeg H264 looses audio sync when playing HTTP stream

Rene Dohmen acidjunk at gmail.com
Fri Mar 23 16:45:25 CET 2012


Hi,

I'm running mplayer on OSX for playback of live video via N7 HD network
tuner.

This is my mplayer configure line:

./configure --disable-x11 --disable-gl --disable-mencoder
--enable-macosx-bundle --enable-macosx-finder --target=x86_64-Darwin
--disable-fontconfig --enable-runtime-cpudetection

It plays fine; but after some minutes the audio gets out of sync. I tried a
lot of different options e.g.
- autosync 0
- autosync 10
- other values in the -lavdopts

The complete command with an excerpt of the log:

--
mplayer -slave -idle -quiet -keepaspect -prefer-ipv4 -vfm ffmpeg -lavdopts
lowres=0:fast=1:skiploopfilter=all -cache 16192 -cache-min 50
http://192.168.6.70:8080/chlist/0065
MPlayer SVN-r34819-4.2.1 (C) 2000-2012 MPlayer Team

Playing http://192.168.6.70:8080/chlist/0065.
Connecting to server 192.168.6.70[192.168.6.70]: 8080...

Cache size set to 16192 KBytes
Cache fill: 49.97% (8284692 bytes)

libavformat version 54.2.100 (internal)
TS file format detected.
VIDEO H264(pid=2500) AUDIO A52(pid=54) SUB DVB(pid=2501)  PROGRAM N. 29
FPS seems to be: 25.000000
==========================================================================
Trying to force video codec driver family ffmpeg...
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.10.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [coreaudio] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
[h264 @ 0x105c0c9a0]error while decoding MB 72 26, bytestream (62)
[h264 @ 0x105c0c9a0]mmco: unref short failure
[h264 @ 0x105c0c9a0]mmco: unref short failure
[h264 @ 0x105c0c9a0]concealing 5017 DC, 5017 AC, 5017 MV errors
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0x105c0e710]BICUBIC scaler, from yuv420p to yuyv422 using MMX2
VO: [corevideo] 1920x1080 => 1920x1080 Packed YUY2
[ASPECT] Warning: No suitable new res found!
New_Face failed. Maybe the font path is wrong.
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.
[h264 @ 0x105c0c9a0]Increasing reorder buffer to 1
[h264 @ 0x105c0c9a0]mmco: unref short failure
[h264 @ 0x105c0c9a0]number of reference frames (0+5) exceeds max (4;
probably corrupt input), discarding one
[h264 @ 0x105c0c9a0]Increasing reorder buffer to 2
[h264 @ 0x105c0c9a0]Increasing reorder buffer to 3
[h264 @ 0x105c0c9a0]mmco: unref short failure
[h264 @ 0x105c0c9a0]number of reference frames (0+5) exceeds max (4;
probably corrupt input), discarding one
[ac3 @ 0x105c0c9a0]frame CRC mismatch
[ac3 @ 0x105c0c9a0]frame CRC mismatch
[ac3 @ 0x105c0c9a0]frame CRC mismatch
[ac3 @ 0x105c0c9a0]frame sync error
--

I know there are errors in the stream; but VLC plays it just fine. And with
an older compiled version of mplayer I didn't have audio sync problems. Am
I doing something wrong? is there an beter codec to play this kind of
stream?

Kind Regards
Rene Dohmen


More information about the MPlayer-users mailing list