BluRay
  • Order of the Butterfly
    Order of the Butterfly
    amiades
    Posts: 231 from 2005/6/2
    From: Asturies, Spain
    Anyway, could 1080p playback from an mkv file (let's leave aside the BR thing) be possible with the fastest G4 cards?

    In my 1.25Ghz G4, 1080p is not so slow... I should make deeper analysis, but I'd say I got around 18fps, and around whole 25fps with low-bitrate parts (very darks scenes, and all that).

    Could anyone with a 1.8Ghz sonnet card try 1080p mkv reproduction in mplayer? It might be enough... I don't know...
  • »25.11.10 - 13:08
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    MarK
    Posts: 641 from 2004/1/25
    From: Prague, The Cz...
    does anyone know, how does Sam440 play hd videos or 720p ones? i don't know it exactly, but altivec is a big addon on our g4 cpus. afair, the altivec can make some operations upto 10 times faster, than just the cpu without altivec... isn't there a possibility of improving the altivec support inside the mplayer for these high resolution videos?

    i just don't like the way, when sth doesn't work, buy a stronger machine... i like optimizing, and smart usage of the cpu abilities...

    remember what could Amiga do in it's times? :)

    bye, MarK.
  • »25.11.10 - 13:08
    Profile
  • Moderator
    Golem
    Posts: 766 from 2003/2/28
    From: Denmark
    Quote:


    amiades wrote:
    Anyway, could 1080p playback from an mkv file (let's leave aside the BR thing) be possible with the fastest G4 cards?

    Seems unlikely (if we are talking h.264 content), also you should have a gfx card capable of handling overlays wider than 1536 pixels (that is a 8500/9100 as far as R200 cards are concerned).
  • »25.11.10 - 13:23
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12058 from 2003/5/22
    From: Germany
    > could 1080p playback from an mkv file (let's leave aside the BR thing) be
    > possible with the fastest G4 cards?

    It depends very much on the video encoding that is used (MKV being just the container format). If we're talking about H264 encoding, then I'd say no, it's not possible on a 1.8 GHz G4 (or even 2.0 GHz G4, which exists for PowerMac, but haven't seen so far in use with MorphOS). Additionally, bitrate and nominal FPS have some weight in the outcome (the lower, the easier to play in realtime).

    > In my 1.25Ghz G4, 1080p is not so slow... [...] I'd say I got around 18fps, and
    > around whole 25fps with low-bitrate parts (very darks scenes, and all that).

    Which video encoding?
  • »25.11.10 - 13:23
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    amiades
    Posts: 231 from 2005/6/2
    From: Asturies, Spain
    I'll check that at home. I tried to play a movie I had just to see... It was 1080p, and probably H264, but I can't confirm it. The film was Rockanrolla, so it is modern, and probably ripped in quite high quality... i'll say.
  • »25.11.10 - 13:27
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12058 from 2003/5/22
    From: Germany
    > how does Sam440 play hd videos or 720p ones?

    With H264 encoding in realtime not at all, AFAIK. They struggle to play DVDs on non-overclocked ones:

    "we can read DVDs at nearly full speed on a Sam440 667 Mhz"
    http://www.amigans.net/modules/newbb/viewtopic.php?post_id=53421#forumpost53421
  • »25.11.10 - 13:29
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    koan
    Posts: 303 from 2005/11/21
    From: UK
    Quote:

    Do you say that a full OpenGL implementation could somehow enable the opportunity to use the GPU for video decoding?


    Yes, if you use GPGPU you can decode H.264/MPEG-4/AVC; for example: http://www.divideframe.com/?p=gpudecoder

    I don't know about the OpenGL implementation on MorphOS (TinyGL), I assume that GPGPU technologies such as CUDA and OpenCL require most of OpenGL to be available. You probably need a much more modern GFX card than those currently supported by the latest MorphOS, too.

    In conclusion, this route is not impossible but there are many difficulties.
  • »25.11.10 - 13:38
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    @mark

    Clearly not, since a Pegasos2 G4 can't do it already, while it still performs *much* better than a SAM.

    On a SAM, with OS4 MPlayer port (DVPlayer is excluded since it's even slower), you can't expect to read at full speed something heavier than a 360/400p H264.

    And regarding altivec, globally (total time spent in decoding + displaying), it brings a 20-30% speedup for H264.
  • »25.11.10 - 14:06
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12058 from 2003/5/22
    From: Germany
    > I assume that GPGPU technologies such as CUDA and OpenCL
    > require most of OpenGL to be available.

    I know that both OpenCL and CUDA can interoperate with OpenGL, but that OpenGL is required is news to me.
  • »25.11.10 - 14:11
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    koan
    Posts: 303 from 2005/11/21
    From: UK
    Quote:

    OpenGL is required is news to me


    My mistake, it was my stated assumption and it appears to be wrong.
  • »25.11.10 - 15:54
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    koan
    Posts: 303 from 2005/11/21
    From: UK
    Isn't Fab's mplayer port already AltiVec optimised, or is there some more optimisation that can be done ?
  • »25.11.10 - 15:55
    Profile
  • Jim
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Jim
    Posts: 4977 from 2009/1/28
    From: Delaware, USA
    I don't know why everyone is so hung up on 1080p, 720p would be fine for me (and the comparison with a downgrade to 360 silly). Again, many people watch bluray disks on televisions that are limited to 720p.

    Right now we can play 720p content ripped on other platforms. It would be nice to do all this under MorphOS.
    "Never attribute to malice what can more readily explained by incompetence"
  • »25.11.10 - 16:01
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    amiades
    Posts: 231 from 2005/6/2
    From: Asturies, Spain
    Well, it is true 720p is a very nice resolution to see a film, but... I would love, to be able to see a film as is, and not after 6 hours of transcoding (and an aditional amount of disk space)... of course, that is just my opinion XD...
  • »25.11.10 - 17:54
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    @koan

    It uses ffmpeg and mplayer AltiVec code already.
  • »25.11.10 - 18:02
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    amiades
    Posts: 231 from 2005/6/2
    From: Asturies, Spain
    Ok. The film I was trying, was not really 1080p, because of the aspect ratio. It wass 800px tall. Anyway, it was 264...

    The framerate, was not terrible at all... Can I measure it with mplayer somehow?
  • »25.11.10 - 20:11
    Profile
  • Moderator
    Golem
    Posts: 766 from 2003/2/28
    From: Denmark
    @amiades

    Use the -benchmark option.
  • »25.11.10 - 20:29
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    -benchmark indeed to have precise information about the time spent in video decoding, audio decoding, blitting,...

    And don't forget -lavdopts skiploopfilter=all to give a 20% boost or so (at quality expense).

    But standard 1080p/H264 is definitely not doable at proper speed on a 1.5GHz G4, anyway, and 1.8GHz wouldn't be either.

    [ Edited by Fab on 2010/11/25 23:06 ]
  • »25.11.10 - 22:05
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    xyphoid
    Posts: 870 from 2008/7/11
    From: Delaware, USA
    how do you use this opt (-lavdopts skiploopfilter=all) in gmplayer. I use the gui rather than command. I would like to see the speed difference
  • »26.11.10 - 00:15
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    add in conf/config (or uncomment, rather):
    lavdopts=skiploopfilter=all

    And just for the record, you can also run the gui from command line...
    mplayer -gui 1 <other options> ... yourvideo

    [ Edited by Fab on 2010/11/26 1:20 ]
  • »26.11.10 - 00:19
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 934 from 2010/10/28
    From: USA
    @Fab

    I bought the 1.8ghz sonnet.

    I can watch BluRay at 1280x720x24fps just fine with no need to skip any loop filters.
    The problems I have are that about half of the YouTube HD videos are not standard format. Many of them are 30fps or have other oddities and no matter which switches I use from a shell with MPlayer I cannot get the audio and video to sync on these oddball formats. Even on some of them which are the correct 24fps I still cannot get them to work right even though the playback speed is more than adequate they are just not going to sync right.
    I tried using mencoder to reencode one of these problem videos but I simply didn't have forever to wait around for it to get done so I gave up. I am still using the limited version of MOS so 30 minutes is not enough time to convert.
    All in all, BluRay quality works fine (even on a 1ghz machine) as long as the video conforms to standards. I can prove that it will work on a 1ghz machine if need be, just pop the old processor back in.
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    Powermac G5 2.3ghz 2GB, ATI 9600 Pro
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »26.11.10 - 00:21
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 934 from 2010/10/28
    From: USA
    the options are:
    lavdopts=skiploopfilter={value}

    {value}
    bidir
    nonref
    nonkey
    all


    You will find that only nonkey and all will produce the speedup. However, the video lost clarity and appeared to be grainy looking when I used this option.
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    Powermac G5 2.3ghz 2GB, ATI 9600 Pro
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »26.11.10 - 00:24
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12058 from 2003/5/22
    From: Germany
    > BluRay quality works fine (even on a 1ghz machine) as
    > long as the video conforms to standards. I can prove
    > that it will work on a 1ghz machine if need be, just
    > pop the old processor back in.

    Yes, please do so, because I'm in doubt.
  • »26.11.10 - 00:28
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 934 from 2010/10/28
    From: USA
    by Andreas_Wolf on 2010/11/25 20:28:42

    > BluRay quality works fine (even on a 1ghz machine) as
    > long as the video conforms to standards. I can prove
    > that it will work on a 1ghz machine if need be, just
    > pop the old processor back in.

    >Yes, please do so, because I'm in doubt.

    I'll get back with you on that.
    It is the ThanksGiving and I have little time right now. Try to test it by Monday.
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    Powermac G5 2.3ghz 2GB, ATI 9600 Pro
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »26.11.10 - 00:31
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Zylesea
    Posts: 2053 from 2003/6/4
    With some codecs even 720p is too demanding on my 1.5 GHz mini. The h264 files my el cheapo camcorder recordes are too heavy:

    Ram Disk:> linda:MPlayer/MPlayer Jenny:Freiburg-Kurs/videos/präp1.MOV -benchmark -lavdopts skiploopfilter=all
    MPlayer SVN-r31036-4.2.4 (C) 2000-2010 MPlayer Team
    150 audio & 337 video codecs

    Playing Jenny:Freiburg-Kurs/videos/präp1.MOV.
    libavformat file format detected.
    [lavf] Video stream found, -vid 0
    [lavf] Audio stream found, -aid 1
    VIDEO: [H264] 1280x720 24bpp 29.970 fps 5348.1 kbps (652.8 kbyte/s)
    Clip info:
    major_brand: qt
    minor_version: 0
    compatible_brands: qt
    VO: [cgx_overlay_gui] Hello!
    VO: [cgx_overlay] Hello!
    ==========================================================================
    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
    ==========================================================================
    ==========================================================================
    Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
    AUDIO: 48000 Hz, 2 ch, s16be, 128.0 kbit/8.33% (ratio: 16000->192000)
    Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
    ==========================================================================
    AHI: Using 10584 bytes per chunk and 330 Kb for buffer
    AO: [ahi] 48000Hz 2ch s16be (2 bytes per sample)
    Starting playback...
    Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
    VO: [cgx_overlay] 1280x720 => 1280x720 Planar YV12
    VO: [cgx_overlay] Window mode.
    VO: [cgx_overlay] : window size: 1280x720.
    VO: Disabling blanker
    VO: [cgx_overlay] : cgxvideo.library >= 43.6 detected, using doublebuffer
    VO: [cgx_overlay] : using draw_slice_420p (PLANAR) primitive


    BENCHMARKs: VC: 131.194s VO: 35.682s A: 4.416s Sys: 0.401s = 171.693s
    BENCHMARK%: VC: 76.4117% VO: 20.7823% A: 2.5721% Sys: 0.2338% = 100.0000%
    VO: Enabling blanker

    The -framedrop option makes it useable and sync'ed, but then there are really nasty framedrops (of up to more than 0.5s) during playback.
    --
    http://via.bckrs.de

    Whenever you're sad just remember the world is 4.543 billion years old and you somehow managed to exist at the same time as David Bowie.
    ...and Matthias , my friend - RIP
  • »26.11.10 - 00:45
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 934 from 2010/10/28
    From: USA
    Try:
    >mplayer {filename} -lavdopts skiploopfilter=nonkey -nodouble
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    Powermac G5 2.3ghz 2GB, ATI 9600 Pro
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »26.11.10 - 00:49
    Profile Visit Website