[Mplayer-felhasznalok] Re: fps problema

Ivan Szanto szivan at duticai.TWI.TUDelft.NL
Thu Nov 28 00:31:59 CET 2002


Hi,


koszi a valaszt!

> Hi,
>
> mencoder -ofps-el meg kene csinalja...
>

tenyleg megcsinalja, de nem ugy, ahogy en szeretnem, mert ez is
rohadt lassu lesz lejatszaskor (es ez most nem performance problema).

a kovetkezo tortenik mencoder -ofps-el:


------------------------------------------------------------

mencoder -ofps 27.5 test.avi -o a -ovc lavc -lavcopts vcodec=msmpeg4:vbitrate=1800
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MEncoder CVS-021102-19:01-2.95.2 (C) 2000-2002 Arpad Gereoffy (see DOCS!)

CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP
Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
3DNow supported but disabled
3DNowExt supported but disabled
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /home/szivan/.mplayer/codecs.conf: 44 audio & 110 video codecs
File not found: 'frameno.avi'
Font /home/szivan/.mplayer/font/font.desc loaded successfully! (140 chars)
success: format: 0  data: 0x0 - 0xA1F00A
Detected AVI file format!
AVI_NI: No Audio stream found...  ->  no sound
AVI: No Audio stream found...  ->  no sound
VIDEO:  [div3]  352x288  24bpp  7.61 fps  646.4 kbps (78.9 kbyte/s)
[V] filefmt:3  fourcc:0x33766964  size:352x288  fps: 7.61  ftime:=0.1314
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
Writing AVI header...
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (352x288 fourcc=33766964 [div3])
Pos:   0.0s      1f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0]
duplicate 2 frame(s)!!!
Pos:   0.1s      2f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0]
duplicate 3 frame(s)!!!
Pos:   0.3s      3f ( 0%)   0fps Trem:   0min  16mb  A-V:0.000 [0:0]
duplicate 2 frame(s)!!!
Pos:   0.4s      4f ( 0%)   0fps Trem:   0min  12mb  A-V:0.000 [0:0]
duplicate 3 frame(s)!!!
Pos:   0.5s      5f ( 0%)   0fps Trem:   0min  11mb  A-V:0.000 [0:0]
duplicate 3 frame(s)!!!
Pos:   0.7s      6f ( 0%)   0fps Trem:   0min  10mb  A-V:0.000 [0:0]
duplicate 2 frame(s)!!!
Pos:   0.8s      7f ( 0%)   0fps Trem:   0min   9mb  A-V:0.000 [0:0]
duplicate 3 frame(s)!!!
Pos:   0.9s      8f ( 0%)   0fps Trem:   0min   8mb  A-V:0.000 [0:0]
duplicate 2 frame(s)!!!
Pos:   1.1s      9f ( 0%)   0fps Trem:   0min   8mb  A-V:0.000 [459:0]
duplicate 3 frame(s)!!!
Pos:   1.2s     10f ( 0%)   0fps Trem:   0min   8mb  A-V:0.000 [450:0]
duplicate 3 frame(s)!!!
Pos:   1.3s     11f ( 0%)   0fps Trem:   0min   8mb  A-V:0.000 [443:0]
duplicate 2 frame(s)!!!
Pos:   1.5s     12f ( 0%)   0fps Trem:   0min   7mb  A-V:0.000 [446:0]
duplicate 3 frame(s)!!!
Pos:   1.6s     13f ( 1%)   0fps Trem:   0min   7mb  A-V:0.000 [436:0]
duplicate 2 frame(s)!!!
Pos:   1.7s     14f ( 1%)   0fps Trem:   0min   7mb  A-V:0.000 [436:0]
duplicate 3 frame(s)!!!
Pos:   1.9s     15f ( 1%)   0fps Trem:   0min   7mb  A-V:0.000 [428:0]
duplicate 3 frame(s)!!!
Pos:   2.0s     16f ( 1%)   0fps Trem:   0min   7mb  A-V:0.000 [421:0]
duplicate 2 frame(s)!!!
Pos:   2.1s     17f ( 1%)   0fps Trem:   0min   7mb  A-V:0.000 [424:0]
duplicate 3 frame(s)!!!
Pos:   2.3s     18f ( 1%)   0fps Trem:   0min   7mb  A-V:0.000 [420:0]
duplicate 3 frame(s)!!!
Pos:   2.4s     19f ( 1%)   0fps Trem:   0min   7mb  A-V:0.000 [418:0]
duplicate 2 frame(s)!!!
Pos:   2.5s     20f ( 1%)   0fps Trem:   0min   7mb  A-V:0.000 [419:0]
duplicate 3 frame(s)!!!
Pos:   2.7s     21f ( 1%)   0fps Trem:   0min   7mb  A-V:0.000 [415:0]
duplicate 2 frame(s)!!!
Pos:   2.8s     22f ( 1%)   0fps Trem:   0min   7mb  A-V:0.000 [416:0]
duplicate 3 frame(s)!!!
Pos:   2.9s     23f ( 2%)   0fps Trem:   0min   7mb  A-V:0.000 [413:0]
duplicate 3 frame(s)!!!
Pos:   3.1s     24f ( 2%)   0fps Trem:   0min   6mb  A-V:0.000 [411:0]
duplicate 2 frame(s)!!!
Pos:   3.2s     25f ( 2%)   0fps Trem:   0min   6mb  A-V:0.000 [413:0]

-------------------------------------


szal a mencoder szepen dobalja a frame-eket, de tenyleg keletkezik
egy file.

A keletkezo "a" nevu file-ban (ugyanugy mint az eredeti test.avi-ban)
az a problema az fps-sel, hogy az mplayer kb haromszor lassabban
jatsza le, mint kene. Vagyis, a keletkezo file-ban pontosan 27.5 az
fps, de ezzel a problemam nem oldodott meg, mert most ha ezt akarom
lejatszani, akkor valami ilyesmit kell beirni:

mplayer -fps 90 a

vagyis a 27.5 fps kb 3szorosat. Akkor most mit javasolsz?

most megint ideteszem az mplayer outputot (a keletkezo file-rol), hatha az
avatott szemueknek latszik belole valami.

Megegyszer koszi a valaszt, es hogy ilyen gyorsan irtal, azelott meg
kulon le a kalappal!

udv,

Ivan

--

Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/local/share/locale


MPlayer CVS-021102-19:01-2.95.2 (C) 2000-2002 Arpad Gereoffy (see DOCS)

CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP
Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
3DNow supported but disabled
3DNowExt supported but disabled
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

Reading /home/szivan/.mplayer/codecs.conf: 44 audio & 110 video codecs
CommandLine: '-v' 'a'
get_path('font/font.desc') -> '/home/szivan/.mplayer/font/font.desc'
Font /home/szivan/.mplayer/font/font.desc loaded successfully! (140 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: No such device (mplayer should be setuid root or
/dev/rtc should be readable by the user.)
Using usleep() timing
get_path('input.conf') -> '/home/szivan/.mplayer/input.conf'
Parsing input config file /home/szivan/.mplayer/input.conf
Input config file /home/szivan/.mplayer/input.conf parsed : 50 binds
Setting up lirc support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed opening lirc support!
You won't be able to use your remote control

Playing a
Not an URL!
File size is 6823090 bytes
Detected AVI file format!
list_end=0xD4
======= AVI Header =======
us/frame: 36363  (fps=27.500)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames  total: 3600   initial: 0
streams: 1
Suggested BufferSize: 0
Size:  352 x 288
list_end=0xD4
==> Found video stream: 0
======= STREAM Header =======
Type: vids   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 275000/10000 = 27.500
Start: 0   Len: 3600
Suggested BufferSize: 14048
Quality 0
Sample size: 0
found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 352
  biHeight 288
  biPlanes 1
  biBitCount 24
  biCompression 863398244='div3'
  biSizeImage 304128
===========================
Regenerating keyframe table for DIVX 3 video
list_end=0x10A
hdr=Software  size=34
Software  : MEncoder CVS-021102-19:01-2.95.2
Broken chunk?  chunksize=1774  (id=JUNK)
list_end=0x673BAA
Found movie at 0x80C - 0x673BAA
Reading INDEX block, 3600 chunks for 3600 frames (fpos=0x673bb2)
AVI index offset: 0x808 (movi=0x80C idx0=0x4 idx1=0x2226)
Auto-selected AVI video ID = 0
AVI_NI: No Audio stream found...  ->  no sound
AVI: Searching for audio stream (id:-1)
AVI: No Audio stream found...  ->  no sound
AVI video length=6734630
VIDEO:  [div3]  352x288  24bpp  27.50 fps  411.6 kbps (50.2 kbyte/s)
[V] filefmt:3  fourcc:0x33766964  size:352x288  fps:27.50  ftime:=0.0364
Clip info:
 Software: MEncoder CVS-021102-19:01-2.95.2
get_path('sub/') -> '/home/szivan/.mplayer/sub/'
open: No such device
vo_mga: Couldn't open /dev/mga_vid
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local
display)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
Audio: no sound!!!
Freeing 0 unused audio chunks
Start playing...
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
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
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x59565955 (UYVY) packed
using Xvideo port 42 for hw scaling
[xv] dx: 0 dy: 0 dw: 352 dh: 308
*** [vo] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
[xv] dx: 0 dy: 0 dw: 352 dh: 288
*** [vo] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
[xv] dx: 0 dy: 0 dw: 352 dh: 288 0%
[xv] dx: 0 dy: 0 dw: 352 dh: 288 0%
ds_fill_buffer: EOF reached (stream: video)
EOF code: 1  0   1%  0%  0.0% 0 0 0%

uninit video: ffmpeg
DEMUXER: freeing demuxer at 0x83154c8
vo: uninit ...

Exiting... (End of file)




> >
> > Sziasztok,
> >
> >
> > lehet, hogy lama kerdes, de mivel egesz este rtfmeztem
> > meg maillista archivumot olvastam, s nem talaltam valaszt, megis
> > megkerdezem.
> >
> > Van egy avi-m, amiben valamiert rossz az fps ertek, de ha
> > az mplayer-nek azt mondom, hogy -fps 27.5, akkor pont jol
> > jatssza le. Na, gondoltam naivan, akkor most ezt egy mencoder
> > futtatassal jol megjavitom, hogy ne kelljen ezt megadni.
> >
> > Probaltam mencoder -fps meg -ofps opciokkal, de nem lett jo az eredmeny.
> > Akkor most mit adjak meg?
> >
> > Probaltam beleeditalni az avi headerbe is, de jol megszivtam,
> > mert ugy nez ki, hogy a divx-ben valahol (header?) duplikalva
> > van az fps info.
> >
> > Na, lokom az outputot is, hatha segit. Ha kell, persze szivesen
> > feltoltom az avi-t az incomingba.
> >
> >
> > udv,
> >
> > Ivan
> >
> > --
> > [ korabbi output kivagva ]
>
>




More information about the MPlayer-felhasznalok mailing list