H264 --> DivX
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Quote:

    Yasu wrote:
    @Fab

    I tried the way you described (excellently I might add!) and I suffered from some serious lag, the same as before. No change.

    Here's my benchmarks:

    BENCHMARKs: VC: 92.186s VO: 67.902s A: 0.000s Sys: 2.349s = 162.437s
    BENCHMARK%: VC: 56.7518% VO: 41.8021% A: 0.0000% Sys: 1.4461% = 100.0000%

    For some reason my system doesn't work as well as yours. But I have no idea of what's wrong. I'm using the same settings as came with MorphOS (plus Pack Crysalis).




    I have no idea why your system is so slow. It takes much more time to decode the video for some reason.
    You might want to boot from CD and do the test from here with a freshly extracted mplayer archive. Just in case.
  • »25.09.13 - 09:01
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    Ok, I didn't have much time to test but I did a short one.

    I couldn't find Mplayer in the CD (is it even in there?) so I tried the HDD installed version I've bern using so far. I didn't have any sound but it did at least feel like normal speed. I sent a bug report your way. Hopefully there are some clues there.
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »25.09.13 - 12:19
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    @yasu

    I get my 1080p movies using OWB download script or torrent download or dvdfab ripper software.
    Sometimes there is no issue, sometimes there is. I have not tried divx format and I defintely will since it is reported to work on a powerbook g4 which I have never gotten to play a 1080p movie, ever.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »25.09.13 - 12:54
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    I did try some new experiments to see if I could get this to work better.

    First, I use a seperate window for GMplayer so I tried to lower the resolution and go for 16 bits instead (native screen is 1920x1080) but that only made it worse. Then I went to preferences and played with the video drivers. Default cgx_overlay_gui was still the best. Then I tried to uncheck "Allow framedrop" and that made a world of difference. Sometimes there was a slight lag, but most of the time the trailer played just fine. I will try to up the cache and see if that helps too.

    Finally, some progress :-D
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »25.09.13 - 22:08
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    If you edit the main config file for mplayer you can add the lvadopts (spell?) option and it will be set for all movies played. OWB might override it though.
    That one alone makes h.265 1080p movies usable on a G5 for me.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »25.09.13 - 22:14
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    > I tried to uncheck "Allow framedrop" and that made a world of difference.

    Yes, Fab has told about this now and then:

    https://morph.zone/modules/newbb_plus/viewtopic.php?topic_id=7579&forum=11&start=56
    https://morph.zone/modules/newbb_plus/viewtopic.php?topic_id=9411&forum=3&start=26
  • »25.09.13 - 22:22
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    Scratch that. It did only work for that trailer for some reason. I still go to 100% CPU usage and everything lags terribly pretty fast.

    @bash64

    I already have this set:

    # for H264 files, it can improve speed by disabling totally or partially loopfilter
    #lavdopts=skiploopfilter=all

    I don't know any ways of changing it though, and I can't find anything about this at Mplayers homepage so if there are any other thing I can try here I'm all ears.
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »25.09.13 - 22:27
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    > OWB might override it though.

    Of course it does as it doesn't use MPlayer for replaying videos.

    > That one alone makes h.265 1080p movies usable on a G5 for me.

    MPlayer on MorphOS supports H.265 already? ;-)
  • »25.09.13 - 22:29
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12163 from 2003/5/22
    From: Germany
    >> you can uncomment "lavdopts=skiploopfilter=all" option in conf/config to give an
    >> additional 20% speedup.

    > I already have this set:
    > # for H264 files, it can improve speed by disabling totally or partially loopfilter
    > #lavdopts=skiploopfilter=all
    > I don't know any ways of changing it though

    Simply use a text editor to remove the hash from the second line and save the file.
  • »25.09.13 - 22:33
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    I actually just noticed that "#", which do explain a lot. Yes, that made it all work! More or less at least. There is some lag, but not that much and not nearly as much as before. And Mplayer usually fixes this after a while (before lagging again later again and fixes it and so on). But the loss of quality is very noticable sadly. Even worse than 720 so there's not much point suddenly.

    Are there other things I can try? :-)

    [EDIT] Ok, not as bad as 720 :-)

    [ Edited by Yasu 26.09.2013 - 00:52 ]
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »25.09.13 - 22:46
    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
    this wouldn't be a HDD filesystem issue would it? I remember a similair issue some time way back.
  • »26.09.13 - 01:35
    Profile
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Quote:

    Yasu wrote:
    I actually just noticed that "#", which do explain a lot. Yes, that made it all work! More or less at least. There is some lag, but not that much and not nearly as much as before. And Mplayer usually fixes this after a while (before lagging again later again and fixes it and so on). But the loss of quality is very noticable sadly. Even worse than 720 so there's not much point suddenly.

    Are there other things I can try? :-)

    [EDIT] Ok, not as bad as 720 :-)


    On your setup there should definitely not be any lag with this video, when loopfilter is disabled, at least. Can you retry the benchmark commandline we did earlier, now loopfilter is disabled?

    About this skiploopfilter variable, there are other values that are less destructive (nonkey, nonref instead of all). They speed up decoding time, and look better than skipping all frames.

    Also, do you play your file from hard disk or ram?
    Could you download a fresh archive of mplayer ( http://fabportnawak.free.fr/mplayer/MPlayer-1.0-svn-2013.04.22.lha ) ?

    Finally, could you try dnetc benchmark test and also "memtest disable" from shell, to see if you cpu and memory are up to speed ?

    [ Edited by Fab 26.09.2013 - 10:54 ]
  • »26.09.13 - 09:52
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    I didn't consider the possibility that my HD was the bottleneck here. Playing it from RAM made it noticably faster. Do you use SSD FAB?

    Here's the bench mark from the same file as before played in RAM (same settings as before):

    BENCHMARKs: VC: 90.642s VO: 66.492s A: 0.000s Sys: 0.677s = 157.811s
    BENCHMARK%: VC: 57.4370% VO: 42.1340% A: 0.0000% Sys: 0.4290% = 100.0000%

    It's a little faster, but not as fast as your system Fab.

    I'll download Mplayer again and test it as well.

    The last test I don't know what I need to type in Shell. I'm a GUI guy :-)

    What should I type?
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »26.09.13 - 10:40
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    I downloaded Mplayer and putted it in RAM for testing. Here's the benchmark:

    BENCHMARKs: VC: 91.495s VO: 66.828s A: 0.000s Sys: 0.701s = 159.024s
    BENCHMARK%: VC: 57.5354% VO: 42.0238% A: 0.0000% Sys: 0.4408% = 100.0000%

    Pretty much the same as before so it shouldn't be my installation of Mplayer that does it. There must be another bottleneck somewhere. I've heard that the 9600 XT has bad memory allocation. Could that have something to do with it?

    [EDIT]
    For information: CPU goes between 70 to 100% when playing the trailer (from RAM), but usually around 85%. So the trailer is very watchable with "lavdopts=skiploopfilter=nonref" and still get pretty nice quality. It's a huge step up. But the music video I tried to show you that uses a lot of movement lags a lot unless you choose "lavdopts=skiploopfilter=all". Then even that plays smoothy but doesn't look good at all.

    [ Edited by Yasu 26.09.2013 - 13:00 ]
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »26.09.13 - 10:56
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Just for the record, on my system, the VC value (about 60s) was with loopfilter disabled. When it's enabled, i get about 99s (92s for you). So at least, your system is a bit faster (but in theory it should be a bit faster for you).
  • »26.09.13 - 11:46
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    Ah! I will try it with off when I get home. If that works (which I suspect) then all is well in the kingdom of Sweden :-D
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »26.09.13 - 12:36
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    bash64
    Posts: 958 from 2010/10/28
    From: USA
    Quote:

    Yasu wrote:
    I didn't consider the possibility that my HD was the bottleneck here. Playing it from RAM made it noticably faster. Do you use SSD FAB?

    Here's the bench mark from the same file as before played in RAM (same settings as before):

    BENCHMARKs: VC: 90.642s VO: 66.492s A: 0.000s Sys: 0.677s = 157.811s
    BENCHMARK%: VC: 57.4370% VO: 42.1340% A: 0.0000% Sys: 0.4290% = 100.0000%

    It's a little faster, but not as fast as your system Fab.

    I'll download Mplayer again and test it as well.

    The last test I don't know what I need to type in Shell. I'm a GUI guy :-)

    What should I type?




    I switched my G5 to an SSD.
    No improvement in playing 1080p movies.
    Its a cpu issue.
    Some of the h.264 compression out there is just too compressed.
    I am trying to obtain a 2.,7ghz system to see if that helps.
    I think the conversion to DIVX is a better option.
    Mac G5 ISight 21" 2.5 gb of ram 233gb hd matshita dvd-r uj-846
    Powerbook G4 1.67ghz 2GB, ATI 9700M Pro 128mb
    1TB hd, DL-DVD Burner, Netgear pcmcia wireless card.
    ImageFX 4.5, PageStream 3.3, PhotoGenics 5.0
  • »26.09.13 - 16:18
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    Thanks! Yes, some h264 works fine, others are just beyond what my G5 can handle.

    DivX is nice, but the files becomes huge. This is a problem with the 4 GB limit. Can I format my extra partition into something that can handle larger files?

    [ Edited by Yasu 26.09.2013 - 20:39 ]
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »26.09.13 - 18:38
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    @ Yasu

    Hehe, I just had the same problem. With that big files I blow up SmartFileSystem's borders. SFS is limited in that regard. You could use IceFS which I do not recommend as it is not very stable. It supports larger files but some bugs did not get fixed for some time which causes errors in wrong node allocations and this does not sound very reliable. Also it got very slow after a certain amount of files copied to a partition. I read the author was working on a new version but would not bet it comes out soon.
    If you do not mind Amiga file properties such as comments and such you can also use a FAT32 or ext3 partition. They handle larger files and movies are most of the time for reading but not for writing. NTFS might also be possible but I did not try it too much. Reading worked fine (with both internal driver and NTFS-3G)) but I cannot tell about possible problems on writing (creating the file itself).
  • »26.09.13 - 18:50
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Yasu
    Posts: 1724 from 2012/3/22
    From: Stockholm, Sweden
    Being able to just read and not write takes away pretty much of the point of it. My goal is to use my MOS system for everything and even though I can't do that right now, I'm quite a lot closer than I was when I used AROS :-)

    Fab, if you want me to try out anything else, just tell me.
    AMIGA FORUM - Hela Sveriges Amigatidning!
    AMIGA FORUM - Sweden's Amiga Magazine!

    My MorphOS blog
  • »26.09.13 - 20:58
    Profile Visit Website
  • Butterfly
    Butterfly
    Mabo
    Posts: 67 from 2010/5/3
    Fab system is a Chimera :)
  • »28.09.13 - 15:25
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    Yasu

    I did not say (nor mean) you cannot write. I just said that I did not try it for at least 6 months to state "yes it is solid". You may try but run into issues. Or it may work well. I cannot judge from the experience I made so far because it was just for some short tests. I could write some files to NTFS but I cannot state if this stays reliable like when I plug in the drive in a windows computer, then continue to write to thwe drive there, then replace it to MOS and so on. The write support f.e. excludes stream files and file rights. What happens if you write these files with a Windows machine and then read it in a MOS machine or edit these files or copy them or move them? You should try before rely to it.
    Best option would still be a fixed IceFS becausse I think IceFS is already quite good but it needs some bugfixes to replace SFS (besides from boot partitions).
  • »17.10.13 - 20:09
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    _DaNi_
    Posts: 154 from 2010/5/4
    From: Barcelona, Spain
    i converted hd 720p videoclips with memcoder (lastest morphos and lastest mplayer) with a very high videobitrate (about 9mb/s) and work perfect on mac mini g4 (no dropping frames) in mpeg4 but a long of time to finish the conversion of course on g4


    [ Editado por _DaNi_ 18.10.2013 - 22:59 ]
  • »18.10.13 - 21:24
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Tom01
    Posts: 182 from 2009/9/20
    fast MPEG4

    mencoder Inputfile -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:v4mv:turbo:aspect=16/9 -af volume=+2db -oac mp3lame -lameopts abr:br=128 -o Output.avi
  • »18.10.13 - 21:48
    Profile Visit Website