[MPlayer-users] First few seconds of movie are skipped when movie loops
Marcin Gałczyński
marcin at galczynski.pl
Mon Aug 26 19:50:10 CEST 2013
Hello,
Greetings fellow mplayer users!
I use the following command line to start mplayer in endless loop mode
to play a movie:
mplayer -vo xv -quiet -framedrop -fixed-vo -nolirc -nomouseinput -nosub
-noautosub -osd-duration 0 -osdlevel 0 -slave -nosound
-noconsolecontrols -input file=/tmp/mpfc1 movie-file.mp4 -loop 0
>../logs/movieplayer.log 2>&1
What happends is that the first full playback of the movie is correct
and then all next playbacks of the same movie in the loop are missing
first few seconds of the movie. The missing part is of constant length,
not sure about precise number, but it seems like the gap is few seconds
long.
Is this the movie, the way i call mplayer, or maybe a mplayer bug - then
i can file it in? Any meaningful comments appreciated, thanks!
Below some data that could help with analysis of the problem
Movie is encoded with libavcodec / libx264 h264 encoder, format mp4. The
mplayer output looks like this:
command:
mplayer -vo xv -framedrop -fixed-vo -nolirc -nomouseinput -nosub
-noautosub -osd-duration 0 -osdlevel 0 -slave -nosound
-noconsolecontrols -input file=/tmp/mpfc1 movie-file.mp4 -loop 0
>out.txt 2>err.txt
out.txt:
MPlayer SVN-r35234-4.7.2 (C) 2000-2012 MPlayer Team
Playing ./movie.20130826191947.vid.
libavformat version 54.29.104 (external)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
VIDEO: [H264] 1360x768 24bpp 30.000 fps 310.0 kbps (37.8 kbyte/s)
Clip info:
major_brand: isom
minor_version: 512
compatible_brands: isomiso2avc1mp41
encoder: Lavf54.29.104
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 54.59.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Starting playback...
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
VO: [xv] 1360x768 => 1360x768 Planar YV12
V: 0.0 0/ 0 ??% ??% ??,?%
V: 0.0 0/ 0 ??% ??% ??,?% 0
V: 0.1 0/ 0 ??% ??% ??,?% 0 0
V: 0.1 0/ 0 ??% ??% ??,?% 0
V: 0.1 0/ 0 ??% ??% ??,?% 0
V: 0.2 0/ 0 ??% ??% ??,?% 0
V: 0.2 0/ 0 ??% ??% ??,?% 0
V: 0.2 0/ 0 ??% ??% ??,?% 0 0
........... i cut out this part, it looks normal
V: 550.6 0/ 0 11% 3% 0.0% 0
V: 550.6 0/ 0 11% 3% 0.0% 0
V: 550.6 0/ 0 11% 3% 0.0% 0
V: 550.6 0/ 0 11% 3% 0.0% 0
V: 8.3 0/ 0 ??% ??% ??,?% 0 <---- notice this skip, start from
8.3 instead of 0
V: 8.4 0/ 0 ??% ??% ??,?% 0
V: 8.4 0/ 0 ??% ??% ??,?% 0
V: 8.4 0/ 0 ??% ??% ??,?% 0
............
Exiting... (Quit)
err.txt:
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
I also ran ffprobe on the video file:
ffprobe version 1.0.7 Copyright (c) 2007-2013 the FFmpeg developers
built on May 14 2013 21:59:35 with gcc 4.7.2 (GCC) 20121109 (Red Hat
4.7.2-8)
configuration: --prefix=/usr --bindir=/usr/bin
--datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg
--libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64
--optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
--enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls
--enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394
--disable-indev=jack --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-openal --enable-libopencv
--enable-libopenjpeg --enable-libopus --enable-libpulse
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264
--enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc
--enable-pthreads --disable-static --enable-shared --enable-gpl
--disable-debug --disable-stripping --shlibdir=/usr/lib64
--enable-runtime-cpudetect
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'movie.20130826191947.vid':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.29.104
Duration: 00:09:10.66, start: 0.000000, bitrate: 312 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1360x768 [SAR 1:1 DAR 85:48], 309 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc
Metadata:
handler_name : VideoHandler
--
best rgds,
Marcin
More information about the MPlayer-users
mailing list