[MPlayer-users] help needed, mplayer repeats audio frames at the end of video

Shahid Mahmood Satti ss at opticom.de
Thu Dec 11 11:34:08 CET 2014

Hi Reimar,

Thank you very much for your quick reply. Yes, I was a bit fuzzy in my explanation, see below the details about the issue.

I am running 64bit Windows 7.

MPlayer Redxii-SVN-r37250-4.8.3 (x86_64) (C) 2000-2014 MPlayer Team
Compiled against FFmpeg version N-65504-g3539d6c
Build date: Sun Aug 10 17:25:47 EDT 2014

I am using Realtek High definition Audio
Driver provided by Realtek Semiconductor Corp.
Driver version

I am using mplayer in the slave mode with the command line:
mplayer.exe -noborder -ontop -geometry 50%:50% -quiet -slave -idle -nomouseinput -nocolorkey -vo gl -vf scale -monitorpixelaspect 1
loadfile xxxx.mp4

mplayer output
Playing TR_09_120s_SRC02_HRC12.mp4.
libavformat version 56.0.100 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO:  [H264]  1920x1080  24bpp  30.000 fps  13424.8 kbps (1638.8 kbyte/s)
Clip info:
 major_brand: isom
 minor_version: 512
 compatible_brands: isomiso2avc1mp41
 encoder: Lavf55.33.100
Load subtitles in ./
Load subtitles in G:/User/ss/tansfer/Mplayer_issue/mplayer/sub/
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
Opening video filter: [scale]
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 56.0.100 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 320.0 kbit/11.34% (ratio: 40006->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
AO: [dsound] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 00000000022daaa0]bicubic scaler, from yuv420p to yuv420p using MMXEXT
[swscaler @ 00000000022daaa0]using unscaled yuv420p -> yuv420p special converter
VO: [gl] 1920x1080 => 1920x1080 Planar YV12
Fontconfig failed to select a font. Trying without fontconfig...
Fontconfig failed to select a font. Trying without fontconfig...

Thanks again for help. Waiting for reply.


Shahid Satti

-----Original Message-----
From: Reimar Döffinger [mailto:Reimar.Doeffinger at gmx.de] 
Sent: Thursday, December 11, 2014 10:05 AM
To: MPlayer usage questions, feature requests, bug reports; Shahid Mahmood Satti; mplayer-users at mplayerhq.hu
Subject: Re: [MPlayer-users] help needed, mplayer repeats audio frames at the end of video

On 10 December 2014 23:21:36 CET, Shahid Mahmood Satti <ss at opticom.de> wrote:
>I am facing an issue that when audio is slightly shorter than video, 
>mplayer repeats the last audio frames, I want to avoid this situation 
>but dont know how. it would be ideal if mplayer doesnt repeat the sound 
>at the end. note that I dont want to alter the videos, the same videos 
>are playing fine with vlc, but my project needs them to work for 
>mplayer. i tried gl2, diretx, directx3d drivers but it doesnt solve the 
>issue. any fix? anxiously waiting for the reply.

You probably should start by mentioning that you are running Windows next time, that makes write a difference ;-) it would also help if you told us which version of Windows and provided a bit of MPlayer output.
I wouldn't expect changing the video output to make any difference, so that's not surprising.
But you should probably try the two audio output modules available on Windows. One is dsound and I forgot the name of the other.
However I don't think either of them is supposed to have this behaviour, so it seems likely that either you have a MPlayer version where it's broken or your audio drivers are buggy. In which case knowing what drivers and version your sound card uses might help as well.

More information about the MPlayer-users mailing list