Is Software Rendered 3D w/ Z-Buffer Feasible?

Ive seen some awesome 3D Java games using OpenGL bindings -
so this is by no means any sort of "can you do games in java" question.
Ive programmed Doom style examples from java game books that use BSP.
Is it possible to get 20+ fps in Java using pure software rendering and a z-buffer?
A lot of the engines like jME use OpenGL so its hard to get a feel for how far
I can push a pure Java game engine.
Ive created a 3D modeling program and it gets bad repaint times and all im using
is backface culling.

Is it possible to get 20+ fps in Java using pure software rendering and a z-buffer?Yes, but it's a crazy question. This would depend on how many objects you have, hardware resources (aside from graphics card), etc. My question is why would you want to do this? I don't think a computer has been sold in 10 years that doesn't come with a 3D accelerated card (unless you're buying servers or whatever)

Similar Messages

  • Advanced Software Rendering Solution For Games

    I am actually looking to talk to someone at sun but figured someone in this forum might be interested in what I have done as well.
    A few years back I developed a feature rich 3D api for java that is 100% software based. I realize there are some other similar apis around now, but I think mine has quite a few features that those others still probably do not, including java 3d. I figured someone might be interested in a software solution, or may be interested in incorperating it with java 3D.
    The engine runs in 100% software and is very well written with the idea of hardware support being simple to add. It achieves good frame rates (30-40fps) when run as as an applet or application. I wrote it with the intent of starting an online game company / possibly licencing it but other things have taken priorty since then. I was wondering if anyone is interested, including sun, in doing something with it.
    The engine has built in boned character animation, bsp/pvs quake style map compiling tools, lightmap generation and rendering, constructive solid geometry, pixel perfect texture mapping with chrome mapping and custom rasterization support similar to shader languages. There is a state of the art terrain engine with adaptable lod with no popping that can be adjusted easilly for performance / quality in real time. The terrain engine has its own shading lanuage based on tilable textures. that It combines with an optional detail map based on terrain features such as slope and altitude to create the terrain texture. I wrote my own level and model formats. The model format is self contained so all textures and required data can be distributed in a single file. There are also optimized 3D math libraries. I'm sure there are more features that I forgot to mention..
    I feel the code is very well written and highly optimized. The first time I wrote it I was in highschool, but I rewrote it over my freshman and software year of college with code quality in mind. I've been workign with java for 9 years so its written a lot better than your typical college student. Its very modular so lots of things can be swaped in real-time to compromise between performance and quality. I also have a nice particle effects system in an older version of the engine that I could incorportate.
    The only non java code in the project is the model exporters I wrote for milkshape 3d.
    I'm probably going to take a job soon somewhere where Java isn't used. Therefore, I thought I should try and do something with the project before its too late.
    I can be reached at [email protected].
    Thank you,
    Kris Rasmussen

    This sounds very interesting! I've been working on a lot of 3D stuff in Java myself, mostly using JOGL. Currently, I'm developing a software renderer in Java which will include many of the features you mention. My project focusses on rather obscure lighting techniques and voxel polygons; Never the less, a general-purpose software renderer would be very interesting indeed. Could we get in contact directly? Drop me a mail if you are interested, find my whereabouts at wolf.ascendancy.at
    Cheers
    Wolfgang Kienreich

  • Have Enough RAM, Still Have to Use Software Rendering

    I recently added an nVidia geForce 8600GT video card to my system with 1 GB of RAM on board. All together I have 2303MB of RAM, but I still have to use software rendering in Bridge or my images are scrambled. Since I have much more than the required 128MB+ of RAM to use hardware rendering, why am I still not able to use it ???

    Hi Brian.
    The problem may be with the driver. For some reason card manufacturers sometimes remove support for some features in their updated drivers. Alternatively, if the card is new-ish then the driver writers may not have gotten round to implementing the features yet.
    If possible try experimenting with earlier drivers - you can find earlier ones for your card here: http://www.nvidia.com/Download/Find.aspx?lang=en-us
    If this still doesn't work then you can try Omega's 'modded' drivers from here: http://www.omegadrivers.net/ - I had to use an Omega one to get hardware rendering to work in Bridge CS3 on my laptop.
    Ian.

  • X reverts to software rendering

    Hello
    I just installed ati-dri-git, libgl-git, mesa-git and xf86-video-ati-git, but now this shows up in my /var/log/Xorg.0.log:
    (EE) AIGLX error: dlopen of /usr/lib/xorg/modules/dri/r300_dri.so failed (/usr/lib/xorg/modules/dri/r300_dri.so: undefined symbol: rc_opcodes)
    (EE) AIGLX: reverting to software rendering
    and 3D rendering is extremely slow.
    pkgfile suggests that ati-dri-git owns r300_dri.so, and I've tried recompiling, but to no avail.
    Has anyone had any experience with this? Do I need to install something else? Do I need to configure something?

    I ended up removing all of those packages that you mentioned and built the libdrm-git and mesa-full packages along with the dependencies.
    The errors have gone away.
    I suggest to try building the libdrm-git package and then rebuild the other packages.. or do what I did above.

  • Frame Rate diff. between JOGL | software rendered

    Im just getting started on using JOGL and im really excited.
    Out of pure academic curiousity, how much of a speed increase
    do you get working with JOGL over pure java software rendering?
    Ive always just written my own 3d libraries in java for simple wireframe
    and polygonal (w/ no shading) graphics and its always worked
    extremely well.

    Out of pure academic curiousity, how much of a speed increase
    do you get working with JOGL over pure java software rendering?If you want to know, profile. The answer will vary wildly depending on the graphics card and on how well optimised your software render routines were.

  • Warp Stabilizer flicker, software renderer does nothing

    I started this project on CC 2014, then migrated it up to CC 2014.1. I have tried exporting a couple sequences from it multiple times, with different output codecs (uncompressed, Cineform, H.264), and all of the results are the same: flickering video and noisy audio.
    I have isolated the flicker to the Warp Stabilizer-effected shots, but no sequence setting changes or conversion to Software renderer over CUDA renderer makes any difference in the output. The audio also outputs as digital noise (sounds like when you listen to a data CD in an old CD player).
    It is not an option to go through and re-add all of the Warp Stabilizer effects to see what different that makes, there are too many of them on the various clips in the project.
    This affects both Premiere AND Media Encoder, so it's looking very difficult to get a quality render out of this.
    Please help!
    ====
    Windows 7 64-bit PC, latest security updates
    Intel Core i7-3930K CPU
    64GB RAM
    NVIDIA GeForce GTX 670
    CC 2014.1

    Hey Kevin here is my info. Let me know if I can further assist.
    PP 8.1.0 (81) Build
    Windows 8.1 with all the latest updates
    Source footage is Canon 5D MkIII 1080p30 all-I & Gopro Hero 3+ Black 1080p60 protune
    I do get an "unspecified drawing error" sometimes when applying Warp Stabilizer but not all the time
    WS worked fine until I updated from CC to 2014
    I'm not running any other software besides the rest of the Adobe suite. I sometimes have Chrome open while editing.
    I use Red Giant Magic Bullet looks quite a lot. I also use Neat Video noise reduction, Boris Continuum, and Twixtor.
    System Specs:
    Core i7-4770K, Gigabyte Z87X-UD4H-CF, 32GB RAM (Crucial BLS8G3D1509DS1S100 DDR3-1600), MSI GTX 970 Gaming, Samsung 256GB 840 Pro SSD (system), WD 3TB 7200 (Media), Seagate 2TB 5900 (Exports/Cache/Previews). The current project I am editing off of a 2TB WD Passport drive via USB3.
    I'm using MPE GPU acceleration. When I use software only I actually get a lot more render errors and the flicker worsens.
    Previews look perfect only on final output do I see the problem. I have tried rendering with the "use previews" box checked thinking that would help but it makes no difference.
    Hope we can get this solved!
    Edit:
    I also get an "unknown exception on frame 0 in Warp Stabilizer" error sometimes when applying WS.

  • [Solved] radeonsi: only Software Rendering with AMD A10-7850k APU

    Hi,
    I have a new computer with an AMD A10-7850k APU.
    I installed Arch Linux as usual and now get only Software Rendering with the open source drivers.
    $ glxinfo | grep vendor
    server glx vendor string: SGI
    client glx vendor string: Mesa Project and SGI
    OpenGL vendor string: X.Org
    Xorg.0.log
    http://pastebin.com/Pi1rCW5n
    dmesg | grep drm
    http://pastebin.com/qx7Re1fv
    I am in the video group and I have no nomodeset in my boot entry.
    Is this APU not yet supported for Hardware Rendering with the radeonsi drivers or do I miss anything?
    Thanks in advance for any help!
    Last edited by jollafan (2014-09-26 12:53:20)

    glxinfo | grep vendor    says very little about software / hardware rendering.
    try grepping for renderer or OpenGL
    $ glxinfo | grep vendor
    server glx vendor string: SGI
    client glx vendor string: Mesa Project and SGI
    OpenGL vendor string: X.Org
    $
    $ glxinfo | grep renderer
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
    OpenGL renderer string: Gallium 0.4 on AMD RV770
    $
    $ glxinfo | grep OpenGL
    OpenGL vendor string: X.Org
    OpenGL renderer string: Gallium 0.4 on AMD RV770
    OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.4.0-devel (git-23247e8)
    OpenGL core profile shading language version string: 3.30
    OpenGL core profile context flags: (none)
    OpenGL core profile profile mask: core profile
    OpenGL core profile extensions:
    OpenGL version string: 3.0 Mesa 10.4.0-devel (git-23247e8)
    OpenGL shading language version string: 1.30
    OpenGL context flags: (none)
    OpenGL extensions:
    OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.4.0-devel (git-23247e8)
    OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.0
    OpenGL ES profile extensions:
    $

  • HT4623 I can not get my Ipad to update the latest software rendering my Ipad useless. It keeps saying software update unavailable.

    I can not get my IPAD to update the latest software the update says it is unavailable at this time try later I have been trying for 5 hours  any suggestions as this renders my IPAD useless

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 7.0.4. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    You can no longer update to iOS 6.x, or down grade the iOS.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and antivirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
    How to Upgrade to iOS 7
    The iOS 7.0 update requires around 2.5 GB of storage space, so if your iPad is almost full, you may need to clear up some space. You can check your available space in Settings -> General -> Usage.
    There are two ways to upgrade to iOS 7: You can use your Wi-Fi connection, or you can connect your iPad to your PC and update through iTunes. We'll go over each method.
    To upgrade using Wi-Fi:
    Note: If your iPad's battery is under 50%, you will want to plug it into your charger while performing the update.
    Go into the iPad's Settings.
    Locate and tap "General" from the menu on the left.
    The second option from the top is "Software Update". Tap this to move into the update settings.
    Tap "Download and Install". This will start the upgrade, which will take several minutes and will reboot your iPad during the process. If the Download and Install button is grayed out, trying clearing up some space. The space required by the update is mostly temporary, so you should gain most of it back after iOS 7 is installed.
    Once the update is installed, you may have to run through the initial steps of setting up your iPad again. This is to account for new features and settings.
    To upgrade using iTunes:
    First, connect your iPad to your PC or Mac using the cable provided when you purchased your device. This will allow iTunes to communicate with your iPad.
    You will also need the latest version of iTunes. Don't worry, you will be prompted to download the latest version when you launch iTunes. Once it installs, you may be asked to setup iCloud by logging into your iTunes account. If you have a Mac, you may be prompted on whether or not you want to enable the Find my Mac feature.
    Now you are ready to begin the process:
    If you upgraded iTunes earlier, go ahead and launch it. (For many, it will launch automatically when you plug in your iPad.)
    Once iTunes is launched, it should automatically detect that a new version of the operating system exists and prompt you to upgrade to it. Choose Cancel. Before updating, you will want to manually sync your iPad to make sure everything is up to date.
    After canceling the dialog box, iTunes should automatically sync with your iPad.
    If iTunes doesn't automatically sync, you can manually do it by selecting your iPad within iTunes, clicking on the File menu and choosing Sync iPad from the list.
    After your iPad has been synced to iTunes, select your iPad within iTunes. You can find it on the left side menu under Devices.
    From the iPad screen, click on the Update button.
    After verifying that you want to update your iPad, the process will begin. It takes a few minutes to update the operating system during which time your iPad may reboot a few times.
    After updating, you may be asked a few questions when your device finally boots back up. This is to account for new settings and features.
     Cheers, Tom

  • Converting playback rate in third party software rendered specifically from AEcc

    i've been having issues with certain codecs that are rendered from aecc.
    prores (family) & Uncompressed.
    From time to time we need to make elements with different frame-rates. so we use a tool from fcp called cinema tools to make conversions for speed without going back to AE, which basically changes playback rate of the clip to 23/24/25/29.97 in respect.
    However this method is now proving an issue since CC.
    i think its something on the encoding on the metadata thats locking the option to make the changes in cinema-tools. but the animation codec renders are fine?!!!
    The work around i have with this is once i render from AE i open up Quicktime then export out again as the same codec. which makes it fine to convert there after. any help would be great”

    Hi Rick,
    unfortunatly this method didnt work either.
    I tried doing a test by adding to render queue direct and adding to Media Encoder from AE
    No changes still locked out of converting the file in cinetools.
    I also tried putting the file into media endcoder as a independant file without AE open, but again no changes.
    However once i converted it via Quicktime player pro. It was perfectly fine.
    It may be to do with the Proress file encoding.
    Its fine with animation codecs from both AE renders and media encoder.
    who knows what gremlin is trying to stop it from changing the attritubes.

  • BUG: Flash hardware acceleration is not enabled when software rendering is enabled in the browser

    Confirmed in IE9 and Firefox, this appears to have started in Beta 4, and would explain why suddenly the Green line bugs i reported earlier were resolved.
    Flash acceleration should NOT be linked to the browsers back end compositor acceleration.

    same problem here, but with liva-intel-driver. see https://bugs.archlinux.org/task/33936

  • [SOLVED] [mpv] Fallback to software decode SLOW with vo_vdpau/vaapi

    EDIT 02/01/2014: Since mpv 0.3.0, the opengl renderer, which works perfectly fine with software-decoding, now also works with vaapi/vdpau hardware-decoding, so just setting vo=opengl and hwdec=auto should really be enough to utterly avoid the problems I was having back when I made this post. A lot of the "info" I gave later on in the thread is also actually bogus, I'll tweak that in a second.
    I've been reading the documentation for mpv, and there's something I can't quite figure out.
    My CPU isn't especially powerful, so it's important for me to be able to use hardware acceleration where possible. I'm using the proprietary ATI driver; VLC works fine with VA-API, and since I discovered libvdpau-va-gl I've been able to get mpv to work using VDPAU. Obviously, some files (*cough*, Hi10P, *cough*) can't be hardware-accelerated, and this is where my problem/question comes in.
    In my mpv config file, with
    vo=vdpau
    I'm able to play normal h.264 video effortlessly, but when HWaccel isn't available mpv falls back to software-decoding and software scaling (ffmpeg/swscaler, as per the console output). The problem is, with the CPU already working to decode the Hi10P content, my A-V desync skyrockets, and it's all a bit of a mess.
    If I play the same Hi10P file with
    vo=opengl
    , then it doesn't desync at all. I checked the manpage and it says I can concatenate possible video outputs with a comma, and it will try each in turn. Obviously I'd like the not-hardware-decodable content to be rendered using OpenGL, rather than whatever causes them to get fed to "swscaler". So I set the config line to
    vo=vdpau,opengl
    . However - the opengl option never gets used! The non-HW-decodable files still end up being fed to swscaler, and as a result desync wildly, unless I manually set to opengl for that file.
    Is someone here familiar enough with mpv to be able to explain why I might not be getting the behaviour I expect from listing multiple video outputs in the config file; or even better, how I can configure mpv to do what I actually want?
    If there's somewhere else I should be asking this, please let me know. I couldn't find a dedicated mpv forum or anything (or even an IRC channel for questions), but I could have missed something.
    Addition: Here are some console outputs.
    1) Playing an 8-bit h.264 file with vo=vdpau, works fine
    [cplayer] mpv 0.1.7 (C) 2000-2013 mpv/MPlayer/mplayer2 projects
    built on Fri Sep 20 22:59:56 CEST 2013
    [cplayer] Compiled against libavutil version 52.38.100
    [cplayer] Compiled against libavcodec version 55.18.102
    [cplayer] Compiled against libavformat version 55.12.100
    [cplayer] Compiled against libswscale version 2.3.100
    [cfgparser] Reading config file /etc/mpv/mpv.conf
    [cfgparser] : No such file or directory
    [global] get_path('') -> '/home/adam/.mpv'
    [global] get_path('config') -> '/home/adam/.mpv/config'
    [cfgparser] Reading config file /home/adam/.mpv/config
    [cplayer] Configuration: --prefix=/usr --confdir=/etc/mpv --disable-lircc --disable-joystick --disable-radio --disable-radio-capture --disable-radio-v4l2 --disable-rpath --disable-libbs2b --disable-direct3d --disable-corevideo --disable-cocoa --disable-coreaudio
    [cplayer] Command line: 'La Maison en Petits Cubes [niizk].mkv' '-v'
    [global] get_path('input.conf') -> '/home/adam/.mpv/input.conf'
    [input] Falling back on default (hardcoded) input config
    [global] get_path('fonts') -> '/home/adam/.mpv/fonts'
    [global] get_path('fonts') -> '/home/adam/.mpv/fonts'
    [global] get_path('subfont.ttf') -> '/home/adam/.mpv/subfont.ttf'
    [global] get_path('fonts.conf') -> '/home/adam/.mpv/fonts.conf'
    [ass] [ass] Setting up fonts...
    [ass] [ass] Done.
    [global] get_path('La Maison en Petits Cubes [niizk].mkv.conf') -> '/home/adam/.mpv/La Maison en Petits Cubes [niizk].mkv.conf'
    [global] get_path('watch_later/4A9272824A37BC7D608AAD61487C41D9') -> '/home/adam/.mpv/watch_later/4A9272824A37BC7D608AAD61487C41D9'
    [?1h=[cplayer] Playing La Maison en Petits Cubes [niizk].mkv.
    [open] [file] File size is 251122130 bytes
    [open] [stream] [file] La Maison en Petits Cubes [niizk].mkv
    [demuxer] Trying demuxer: edl (force-level: normal)
    [demuxer] Trying demuxer: cue (force-level: normal)
    [demuxer] Trying demuxer: rawaudio (force-level: normal)
    [demuxer] Trying demuxer: rawvideo (force-level: normal)
    [demuxer] Trying demuxer: tv (force-level: normal)
    [demuxer] Trying demuxer: libass (force-level: normal)
    [demuxer] Trying demuxer: mkv (force-level: normal)
    [demux] [mkv] Found the head...
    [demux] [mkv] + a segment...
    [demux] [mkv] /---- [ parsing seek head ] ---------
    [demux] [mkv] |+ segment information...
    [demux] [mkv] | + timecode scale: 1000000
    [demux] [mkv] | + duration: 726.416s
    [demux] [mkv] | + segment uid 86 10 81 37 4e ac f6 dd 91 4b 19 69 97 03 25 c9
    [demux] [mkv] |+ segment tracks...
    [demux] [mkv] | + a track...
    [demux] [mkv] | + Track number: 1
    [demux] [mkv] | + Name: Tsumiki no Ie - La Maison en Petits Cubes
    [demux] [mkv] | + Track type: Video
    [demux] [mkv] | + Video track
    [demux] [mkv] | + Display width: 853
    [demux] [mkv] | + Display height: 480
    [demux] [mkv] | + Pixel width: 704
    [demux] [mkv] | + Pixel height: 480
    [demux] [mkv] | + Codec ID: V_MPEG4/ISO/AVC
    [demux] [mkv] | + CodecPrivate, length 40
    [demux] [mkv] | + Language: und
    [demux] [mkv] | + Default flag: 1
    [demux] [mkv] | + Default duration: 33.367ms ( = 29.970 fps)
    [demux] [mkv] | + a track...
    [demux] [mkv] | + Track number: 2
    [demux] [mkv] | + Name: 2.0 VORBIS
    [demux] [mkv] | + Track type: Audio
    [demux] [mkv] | + Audio track
    [demux] [mkv] | + Sampling frequency: 48000.000000
    [demux] [mkv] | + Channels: 2
    [demux] [mkv] | + Codec ID: A_VORBIS
    [demux] [mkv] | + CodecPrivate, length 3891
    [demux] [mkv] | + Language: und
    [demux] [mkv] | + Default flag: 1
    [demux] [mkv] /---- [ parsing seek head ] ---------
    [stream] stream_seek: Seek to/past EOF: no buffer preloaded.
    [demux] [mkv] \---- [ parsing seek head ] ---------
    [demux] [mkv] \---- [ parsing seek head ] ---------
    [demux] [mkv] |+ found cluster, headers are parsed completely :)
    [demux] [mkv] Aspect: 1.777083
    [demux] [mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "Tsumiki no Ie - La Maison en Petits Cubes"
    [demux] [mkv] Track ID 2: audio (A_VORBIS) "2.0 VORBIS"
    [demuxer] Detected file format: Matroska
    [global] get_path('subfont.ttf') -> '/home/adam/.mpv/subfont.ttf'
    [global] get_path('fonts.conf') -> '/home/adam/.mpv/fonts.conf'
    [ass] [ass] Setting up fonts...
    [ass] [ass] Done.
    [subreader] Load subtitles in .
    [global] get_path('sub/') -> '/home/adam/.mpv/sub/'
    [cplayer] [stream] Video (+) --vid=0 'Tsumiki no Ie - La Maison en Petits Cubes' (h264)
    [cplayer] [stream] Audio (+) --aid=0 (*) '2.0 VORBIS' (vorbis)
    [cplayer] [V] fourcc:0x31637661 size:704x480 fps:29.970
    [vo] X11 opening display: :0
    [vo] vo: X11 running at 1366x768 (":0" => local display)
    [vo] [x11] Detected wm supports NetWM.
    [vo] [x11] Detected wm supports FULLSCREEN state.
    [vo] [x11] Detected wm supports ABOVE state.
    [vo] [x11] Detected wm supports BELOW state.
    [vo] [x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
    [VS] Software VDPAU backend library initialized
    [decvideo] Codec list:
    [decvideo] lavc:h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    [decvideo] lavc:h264_vdpau (h264) - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
    [decvideo] Opening video decoder lavc:h264
    [decvideo] Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
    [vo] Disabling DPMS
    [vo] DPMSDisable stat: 1
    [decaudio] Codec list:
    [decaudio] lavc:vorbis - Vorbis
    [decaudio] lavc:libvorbis (vorbis) - libvorbis
    [decaudio] Opening audio decoder lavc:vorbis
    [decaudio] dec_audio: Allocating 8192 + 65536 = 73728 bytes for output buffer.
    [decaudio] INFO: libavcodec "vorbis" init OK!
    [decaudio] Selected audio codec: Vorbis [lavc:vorbis]
    [decaudio] AUDIO: 48000 Hz, 2 ch, floatle
    [decaudio] Building audio filter chain for 48000Hz stereo 2ch floatle -> 0Hz empty 0ch ??...
    [af] Audio filter chain:
    [af] [in] 48000Hz stereo 2ch floatle
    [af] [out] 48000Hz stereo 2ch floatle
    [af] [ao] 0Hz empty 0ch ??
    [af] Audio filter chain:
    [af] [in] 48000Hz stereo 2ch floatle
    [af] [out] 48000Hz stereo 2ch floatle
    [af] [ao] 0Hz empty 0ch ??
    [cplayer] AO: [pulse] 48000Hz stereo 2ch floatle
    [cplayer] AO: Description: PulseAudio audio output
    AO: Author: Lennart Poettering
    [decaudio] Building audio filter chain for 48000Hz stereo 2ch floatle -> 48000Hz stereo 2ch floatle...
    [af] Audio filter chain:
    [af] [in] 48000Hz stereo 2ch floatle
    [af] [out] 48000Hz stereo 2ch floatle
    [af] [ao] 48000Hz stereo 2ch floatle
    [af] Audio filter chain:
    [af] [in] 48000Hz stereo 2ch floatle
    [af] [out] 48000Hz stereo 2ch floatle
    [af] [ao] 48000Hz stereo 2ch floatle
    [cplayer] Starting playback...
    [decvideo] Pixel formats supported by decoder: vaapi_vld vdpau yuv420p
    [decvideo] Pixel formats supported by decoder: vaapi_vld vdpau yuv420p
    [vo] X11 error: BadRequest (invalid request code or no such operation)
    [vo] Type: 0, display: 0x2c2a190, resourceid: 17, serial: 23
    [vo] Error code: 1, request code: a0, minor code: 1
    [decvideo] [ffmpeg] aspect_ratio: 0.000000
    [decvideo] VIDEO: 704x480 29.970 fps 0.0 kbps ( 0.0 kB/s)
    [decvideo] VDec: vo config request - 704 x 480 (vdpau)
    [vf] Trying filter chain:
    [vf] [vo] ???
    [cplayer] Aspect ratio is 1.78:1 - scaling to correct movie aspect.
    [cplayer] VO Config (704x480->853x480,flags=0,0x45C)
    [cplayer] VO: [vdpau] 704x480 => 853x480 vdpau
    [cplayer] VO: Description: VDPAU with X11
    [cplayer] VO: Author: Rajib Mahapatra <[email protected]> and others
    [vo] [vdpau] Got display refresh rate 60.001 Hz.
    [vdpau] If that value looks wrong give the -vo vdpau:fps=X suboption manually.
    [vo] [vdpau] Updating CSC matrix
    [vo] Window size: 853x480
    [vo] Video source: 704x480 (853x480)
    [vo] Video display: (0, 0) 704x480 -> (0, 0) 853x480
    [vo] Video scale: 1.211648/1.000000
    [vo] OSD borders: l=0 t=0 r=0 b=0
    [vo] Video borders: l=0 t=0 r=0 b=0
    [vo] [vdpau] Updating CSC matrix
    [vf] Video filter chain:
    [vf] [vo] 704x480->853x480 vdpau 0 BT.601 (SD)/TV
    [vo] [vdpau] Updating CSC matrix
    [decaudio] Increasing filtered audio buffer size from 0 to 4096
    [decaudio] Increasing filtered audio buffer size from 4096 to 69632
    [decaudio] Increasing filtered audio buffer size from 69632 to 135168
    [decaudio] Increasing filtered audio buffer size from 135168 to 200704
    [decaudio] Increasing filtered audio buffer size from 200704 to 266240
    [decaudio] Increasing filtered audio buffer size from 266240 to 331776
    [decaudio] Increasing filtered audio buffer size from 331776 to 388096
    [vo] [vdpau] Frame shown too early
    [vo] [vdpau] Frame shown too early
    [vo] [vdpau] Frame shown too early
    [vo] [vdpau] Frame shown too early
    [vo] [vdpau] Frame shown too early
    [vo] [vdpau] Frame shown too early
    [vo] [vdpau] Frame shown too early
    2) Playing a 10-bit file via vo=vdpau, desyncs and ultimately doesn't work properly:
    [cplayer] mpv 0.1.7 (C) 2000-2013 mpv/MPlayer/mplayer2 projects
    built on Fri Sep 20 22:59:56 CEST 2013
    [cplayer] Compiled against libavutil version 52.38.100
    [cplayer] Compiled against libavcodec version 55.18.102
    [cplayer] Compiled against libavformat version 55.12.100
    [cplayer] Compiled against libswscale version 2.3.100
    [cfgparser] Reading config file /etc/mpv/mpv.conf
    [cfgparser] : No such file or directory
    [global] get_path('') -> '/home/adam/.mpv'
    [global] get_path('config') -> '/home/adam/.mpv/config'
    [cfgparser] Reading config file /home/adam/.mpv/config
    [cplayer] Configuration: --prefix=/usr --confdir=/etc/mpv --disable-lircc --disable-joystick --disable-radio --disable-radio-capture --disable-radio-v4l2 --disable-rpath --disable-libbs2b --disable-direct3d --disable-corevideo --disable-cocoa --disable-coreaudio
    [cplayer] Command line: '[ANE] Ore no Imouto ga Konna ni Kawaii Wake ga Nai - Ep01 [BDRip 720p x264 Vorbis].mkv' '-v'
    [global] get_path('input.conf') -> '/home/adam/.mpv/input.conf'
    [input] Falling back on default (hardcoded) input config
    [global] get_path('fonts') -> '/home/adam/.mpv/fonts'
    [global] get_path('fonts') -> '/home/adam/.mpv/fonts'
    [global] get_path('subfont.ttf') -> '/home/adam/.mpv/subfont.ttf'
    [global] get_path('fonts.conf') -> '/home/adam/.mpv/fonts.conf'
    [ass] [ass] Setting up fonts...
    [ass] [ass] Done.
    [global] get_path('[ANE] Ore no Imouto ga Konna ni Kawaii Wake ga Nai - Ep01 [BDRip 720p x264 Vorbis].mkv.conf') -> '/home/adam/.mpv/[ANE] Ore no Imouto ga Konna ni Kawaii Wake ga Nai - Ep01 [BDRip 720p x264 Vorbis].mkv.conf'
    [global] get_path('watch_later/99B3F9726EDC41CCFA709D00925EB623') -> '/home/adam/.mpv/watch_later/99B3F9726EDC41CCFA709D00925EB623'
    [?1h=[cplayer] Playing [ANE] Ore no Imouto ga Konna ni Kawaii Wake ga Nai - Ep01 [BDRip 720p x264 Vorbis].mkv.
    [open] [file] File size is 397296634 bytes
    [open] [stream] [file] [ANE] Ore no Imouto ga Konna ni Kawaii Wake ga Nai - Ep01 [BDRip 720p x264 Vorbis].mkv
    [demuxer] Trying demuxer: edl (force-level: normal)
    [demuxer] Trying demuxer: cue (force-level: normal)
    [demuxer] Trying demuxer: rawaudio (force-level: normal)
    [demuxer] Trying demuxer: rawvideo (force-level: normal)
    [demuxer] Trying demuxer: tv (force-level: normal)
    [demuxer] Trying demuxer: libass (force-level: normal)
    [demuxer] Trying demuxer: mkv (force-level: normal)
    [demux] [mkv] Found the head...
    [demux] [mkv] + a segment...
    [demux] [mkv] /---- [ parsing seek head ] ---------
    [demux] [mkv] |+ segment information...
    [demux] [mkv] | + timecode scale: 1000000
    [demux] [mkv] | + duration: 1633.640s
    [demux] [mkv] | + segment uid b4 28 40 4c 87 1a 0e 65 a1 d8 4c d3 cc c3 96 ef
    [demux] [mkv] |+ segment tracks...
    [demux] [mkv] | + a track...
    [demux] [mkv] | + Track number: 1
    [demux] [mkv] | + Track type: Video
    [demux] [mkv] | + Video track
    [demux] [mkv] | + Display width: 1280
    [demux] [mkv] | + Display height: 720
    [demux] [mkv] | + Pixel width: 1280
    [demux] [mkv] | + Pixel height: 720
    [demux] [mkv] | + Codec ID: V_MPEG4/ISO/AVC
    [demux] [mkv] | + CodecPrivate, length 42
    [demux] [mkv] | + Default duration: 41.708ms ( = 23.976 fps)
    [demux] [mkv] | + a track...
    [demux] [mkv] | + Track number: 2
    [demux] [mkv] | + Track type: Audio
    [demux] [mkv] | + Audio track
    [demux] [mkv] | + Sampling frequency: 48000.000000
    [demux] [mkv] | + Channels: 2
    [demux] [mkv] | + Codec ID: A_VORBIS
    [demux] [mkv] | + CodecPrivate, length 4036
    [demux] [mkv] | + Language: jpn
    [demux] [mkv] | + a track...
    [demux] [mkv] | + Track number: 3
    [demux] [mkv] | + Name: Mazui
    [demux] [mkv] | + Track type: Subtitle
    [demux] [mkv] | + Codec ID: S_TEXT/ASS
    [demux] [mkv] | + CodecPrivate, length 2364
    [demux] [mkv] /---- [ parsing chapters ] ---------
    [demux] [mkv] New edition 0
    [demux] [mkv] Default edition flag: 0
    [demux] [mkv] Chapter 0 from 00:00:00.000 to 00:00:00.000, Prologue
    [demux] [mkv] Chapter 1 from 00:01:29.89000000 to 00:00:00.000, Opening
    [demux] [mkv] Chapter 2 from 00:02:59.179000000 to 00:00:00.000, Part A
    [demux] [mkv] Chapter 3 from 00:13:20.800000000 to 00:00:00.000, Part B
    [demux] [mkv] Chapter 4 from 00:25:37.536000000 to 00:00:00.000, Ending
    [demux] [mkv] Chapter 5 from 00:27:07.626000000 to 00:00:00.000, Preview
    [demux] [mkv] \---- [ parsing chapters ] ---------
    [demux] [mkv] /---- [ parsing attachments ] ---------
    [demux] [mkv] Attachment: arial.ttf, application/x-truetype-font, 774476 bytes
    [demux] [mkv] Attachment: ARIAL_0.TTF, application/x-truetype-font, 774476 bytes
    [demux] [mkv] Attachment: BALZANO.TTF, application/x-truetype-font, 51828 bytes
    [demux] [mkv] Attachment: CronosPro-Capt.otf, application/x-truetype-font, 107976 bytes
    [demux] [mkv] Attachment: NeoSansIntel.ttf, application/x-truetype-font, 63764 bytes
    [demux] [mkv] Attachment: AbyssEPTitleFont.ttf, application/x-truetype-font, 79104 bytes
    [demux] [mkv] Attachment: angeleobardo.ttf, application/x-truetype-font, 93660 bytes
    [demux] [mkv] \---- [ parsing attachments ] ---------
    [demux] [mkv] \---- [ parsing seek head ] ---------
    [demux] [mkv] |+ found cluster, headers are parsed completely :)
    [demux] [mkv] Aspect: 1.777778
    [demux] [mkv] Track ID 1: video (V_MPEG4/ISO/AVC)
    [demux] [mkv] Track ID 2: audio (A_VORBIS)
    [demux] [mkv] Track ID 3: subtitles (S_TEXT/ASS) "Mazui"
    [demuxer] Detected file format: Matroska
    [global] get_path('subfont.ttf') -> '/home/adam/.mpv/subfont.ttf'
    [global] get_path('fonts.conf') -> '/home/adam/.mpv/fonts.conf'
    [ass] [ass] Setting up fonts...
    [ass] [ass] Done.
    [subreader] Load subtitles in .
    [global] get_path('sub/') -> '/home/adam/.mpv/sub/'
    [cplayer] [stream] Video (+) --vid=0 (h264)
    [cplayer] [stream] Audio (+) --aid=0 --alang=jpn (*) (vorbis)
    [cplayer] [stream] Subs (+) --sid=0 --slang=eng (*) 'Mazui' (ass)
    [cplayer] [V] fourcc:0x31637661 size:1280x720 fps:23.976
    [vo] X11 opening display: :0
    [vo] vo: X11 running at 1366x768 (":0" => local display)
    [vo] [x11] Detected wm supports NetWM.
    [vo] [x11] Detected wm supports FULLSCREEN state.
    [vo] [x11] Detected wm supports ABOVE state.
    [vo] [x11] Detected wm supports BELOW state.
    [vo] [x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
    [VS] Software VDPAU backend library initialized
    [decvideo] Codec list:
    [decvideo] lavc:h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    [decvideo] lavc:h264_vdpau (h264) - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
    [decvideo] Opening video decoder lavc:h264
    [decvideo] Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
    [vo] Disabling DPMS
    [vo] DPMSDisable stat: 1
    [decaudio] Codec list:
    [decaudio] lavc:vorbis - Vorbis
    [decaudio] lavc:libvorbis (vorbis) - libvorbis
    [decaudio] Opening audio decoder lavc:vorbis
    [decaudio] dec_audio: Allocating 8192 + 65536 = 73728 bytes for output buffer.
    [decaudio] INFO: libavcodec "vorbis" init OK!
    [decaudio] Selected audio codec: Vorbis [lavc:vorbis]
    [decaudio] AUDIO: 48000 Hz, 2 ch, floatle
    [decaudio] Building audio filter chain for 48000Hz stereo 2ch floatle -> 0Hz empty 0ch ??...
    [af] Audio filter chain:
    [af] [in] 48000Hz stereo 2ch floatle
    [af] [out] 48000Hz stereo 2ch floatle
    [af] [ao] 0Hz empty 0ch ??
    [af] Audio filter chain:
    [af] [in] 48000Hz stereo 2ch floatle
    [af] [out] 48000Hz stereo 2ch floatle
    [af] [ao] 0Hz empty 0ch ??
    [cplayer] AO: [pulse] 48000Hz stereo 2ch floatle
    [cplayer] AO: Description: PulseAudio audio output
    AO: Author: Lennart Poettering
    [decaudio] Building audio filter chain for 48000Hz stereo 2ch floatle -> 48000Hz stereo 2ch floatle...
    [af] Audio filter chain:
    [af] [in] 48000Hz stereo 2ch floatle
    [af] [out] 48000Hz stereo 2ch floatle
    [af] [ao] 48000Hz stereo 2ch floatle
    [af] Audio filter chain:
    [af] [in] 48000Hz stereo 2ch floatle
    [af] [out] 48000Hz stereo 2ch floatle
    [af] [ao] 48000Hz stereo 2ch floatle
    [osd] Subtitle filter chain: ass (ass)
    [cplayer] Starting playback...
    [decvideo] [ffmpeg/h264] get_buffer() failed
    [decvideo] [ffmpeg/h264] thread_get_buffer() failed
    [decvideo] [ffmpeg/h264] decode_slice_header error
    [decvideo] [ffmpeg/h264] no frame!
    [decvideo] Error while decoding frame!
    [decvideo] Error using hardware decoding, falling back to software decoding.
    [decvideo] [ffmpeg] aspect_ratio: 0.000000
    [decvideo] VIDEO: 1280x720 23.976 fps 0.0 kbps ( 0.0 kB/s)
    [decvideo] VDec: vo config request - 1280 x 720 (420p10)
    [vf] Trying filter chain:
    [vf] [vo] ???
    [decvideo] Could not find matching colorspace - retrying with -vf scale...
    [vf] Opening video filter: [scale]
    [vf] SwScale params: -1 x -1 (-1=no scaling)
    [vf] Trying filter chain:
    [vf] [scale] ??? -> ???
    [vf] [vo] ???
    [cplayer] VO Config (1280x720->1280x720,flags=0,0x409)
    [global] [ffmpeg/swscaler] using unscaled yuv420p10le -> yuv420p special converter
    [cplayer] VO: [vdpau] 1280x720 => 1280x720 420p
    [cplayer] VO: Description: VDPAU with X11
    [cplayer] VO: Author: Rajib Mahapatra <[email protected]> and others
    [vo] [vdpau] Got display refresh rate 60.001 Hz.
    [vdpau] If that value looks wrong give the -vo vdpau:fps=X suboption manually.
    [vo] [vdpau] Updating CSC matrix
    [vo] Window size: 1280x720
    [vo] Video source: 1280x720 (1280x720)
    [vo] Video display: (0, 0) 1280x720 -> (0, 0) 1280x720
    [vo] Video scale: 1.000000/1.000000
    [vo] OSD borders: l=0 t=0 r=0 b=0
    [vo] Video borders: l=0 t=0 r=0 b=0
    [vo] [vdpau] Updating CSC matrix
    [vf] Video filter chain:
    [vf] [scale] 1280x720 420p10 0 BT.709 (HD)/TV -> 1280x720 420p 0 BT.709 (HD)/TV
    [vf] [vo] 1280x720 420p 0 BT.709 (HD)/TV
    [vo] [vdpau] Updating CSC matrix
    [decaudio] Increasing filtered audio buffer size from 0 to 4096
    [decaudio] Increasing filtered audio buffer size from 4096 to 69632
    [decaudio] Increasing filtered audio buffer size from 69632 to 135168
    [decaudio] Increasing filtered audio buffer size from 135168 to 200704
    [decaudio] Increasing filtered audio buffer size from 200704 to 266240
    [decaudio] Increasing filtered audio buffer size from 266240 to 331776
    [decaudio] Increasing filtered audio buffer size from 331776 to 388096
    [vo] [vdpau] Frame shown too early
    [vo] [vdpau] Frame shown too early
    [vo] [vdpau] Frame shown too early
    [vo] [vdpau] Frame shown too early
    3) Playing a 10-bit file through vo=opengl, works fine
    [cplayer] mpv 0.1.7 (C) 2000-2013 mpv/MPlayer/mplayer2 projects
    built on Fri Sep 20 22:59:56 CEST 2013
    [cplayer] Compiled against libavutil version 52.38.100
    [cplayer] Compiled against libavcodec version 55.18.102
    [cplayer] Compiled against libavformat version 55.12.100
    [cplayer] Compiled against libswscale version 2.3.100
    [cfgparser] Reading config file /etc/mpv/mpv.conf
    [cfgparser] : No such file or directory
    [global] get_path('') -> '/home/adam/.mpv'
    [global] get_path('config') -> '/home/adam/.mpv/config'
    [cfgparser] Reading config file /home/adam/.mpv/config
    [cplayer] Configuration: --prefix=/usr --confdir=/etc/mpv --disable-lircc --disable-joystick --disable-radio --disable-radio-capture --disable-radio-v4l2 --disable-rpath --disable-libbs2b --disable-direct3d --disable-corevideo --disable-cocoa --disable-coreaudio
    [cplayer] Command line: '[ANE] Ore no Imouto ga Konna ni Kawaii Wake ga Nai - Ep01 [BDRip 720p x264 Vorbis].mkv' '-v'
    [global] get_path('input.conf') -> '/home/adam/.mpv/input.conf'
    [input] Falling back on default (hardcoded) input config
    [global] get_path('fonts') -> '/home/adam/.mpv/fonts'
    [global] get_path('fonts') -> '/home/adam/.mpv/fonts'
    [global] get_path('subfont.ttf') -> '/home/adam/.mpv/subfont.ttf'
    [global] get_path('fonts.conf') -> '/home/adam/.mpv/fonts.conf'
    [ass] [ass] Setting up fonts...
    [ass] [ass] Done.
    [global] get_path('[ANE] Ore no Imouto ga Konna ni Kawaii Wake ga Nai - Ep01 [BDRip 720p x264 Vorbis].mkv.conf') -> '/home/adam/.mpv/[ANE] Ore no Imouto ga Konna ni Kawaii Wake ga Nai - Ep01 [BDRip 720p x264 Vorbis].mkv.conf'
    [global] get_path('watch_later/99B3F9726EDC41CCFA709D00925EB623') -> '/home/adam/.mpv/watch_later/99B3F9726EDC41CCFA709D00925EB623'
    [?1h=[cplayer] Playing [ANE] Ore no Imouto ga Konna ni Kawaii Wake ga Nai - Ep01 [BDRip 720p x264 Vorbis].mkv.
    [open] [file] File size is 397296634 bytes
    [open] [stream] [file] [ANE] Ore no Imouto ga Konna ni Kawaii Wake ga Nai - Ep01 [BDRip 720p x264 Vorbis].mkv
    [demuxer] Trying demuxer: edl (force-level: normal)
    [demuxer] Trying demuxer: cue (force-level: normal)
    [demuxer] Trying demuxer: rawaudio (force-level: normal)
    [demuxer] Trying demuxer: rawvideo (force-level: normal)
    [demuxer] Trying demuxer: tv (force-level: normal)
    [demuxer] Trying demuxer: libass (force-level: normal)
    [demuxer] Trying demuxer: mkv (force-level: normal)
    [demux] [mkv] Found the head...
    [demux] [mkv] + a segment...
    [demux] [mkv] /---- [ parsing seek head ] ---------
    [demux] [mkv] |+ segment information...
    [demux] [mkv] | + timecode scale: 1000000
    [demux] [mkv] | + duration: 1633.640s
    [demux] [mkv] | + segment uid b4 28 40 4c 87 1a 0e 65 a1 d8 4c d3 cc c3 96 ef
    [demux] [mkv] |+ segment tracks...
    [demux] [mkv] | + a track...
    [demux] [mkv] | + Track number: 1
    [demux] [mkv] | + Track type: Video
    [demux] [mkv] | + Video track
    [demux] [mkv] | + Display width: 1280
    [demux] [mkv] | + Display height: 720
    [demux] [mkv] | + Pixel width: 1280
    [demux] [mkv] | + Pixel height: 720
    [demux] [mkv] | + Codec ID: V_MPEG4/ISO/AVC
    [demux] [mkv] | + CodecPrivate, length 42
    [demux] [mkv] | + Default duration: 41.708ms ( = 23.976 fps)
    [demux] [mkv] | + a track...
    [demux] [mkv] | + Track number: 2
    [demux] [mkv] | + Track type: Audio
    [demux] [mkv] | + Audio track
    [demux] [mkv] | + Sampling frequency: 48000.000000
    [demux] [mkv] | + Channels: 2
    [demux] [mkv] | + Codec ID: A_VORBIS
    [demux] [mkv] | + CodecPrivate, length 4036
    [demux] [mkv] | + Language: jpn
    [demux] [mkv] | + a track...
    [demux] [mkv] | + Track number: 3
    [demux] [mkv] | + Name: Mazui
    [demux] [mkv] | + Track type: Subtitle
    [demux] [mkv] | + Codec ID: S_TEXT/ASS
    [demux] [mkv] | + CodecPrivate, length 2364
    [demux] [mkv] /---- [ parsing chapters ] ---------
    [demux] [mkv] New edition 0
    [demux] [mkv] Default edition flag: 0
    [demux] [mkv] Chapter 0 from 00:00:00.000 to 00:00:00.000, Prologue
    [demux] [mkv] Chapter 1 from 00:01:29.89000000 to 00:00:00.000, Opening
    [demux] [mkv] Chapter 2 from 00:02:59.179000000 to 00:00:00.000, Part A
    [demux] [mkv] Chapter 3 from 00:13:20.800000000 to 00:00:00.000, Part B
    [demux] [mkv] Chapter 4 from 00:25:37.536000000 to 00:00:00.000, Ending
    [demux] [mkv] Chapter 5 from 00:27:07.626000000 to 00:00:00.000, Preview
    [demux] [mkv] \---- [ parsing chapters ] ---------
    [demux] [mkv] /---- [ parsing attachments ] ---------
    [demux] [mkv] Attachment: arial.ttf, application/x-truetype-font, 774476 bytes
    [demux] [mkv] Attachment: ARIAL_0.TTF, application/x-truetype-font, 774476 bytes
    [demux] [mkv] Attachment: BALZANO.TTF, application/x-truetype-font, 51828 bytes
    [demux] [mkv] Attachment: CronosPro-Capt.otf, application/x-truetype-font, 107976 bytes
    [demux] [mkv] Attachment: NeoSansIntel.ttf, application/x-truetype-font, 63764 bytes
    [demux] [mkv] Attachment: AbyssEPTitleFont.ttf, application/x-truetype-font, 79104 bytes
    [demux] [mkv] Attachment: angeleobardo.ttf, application/x-truetype-font, 93660 bytes
    [demux] [mkv] \---- [ parsing attachments ] ---------
    [demux] [mkv] \---- [ parsing seek head ] ---------
    [demux] [mkv] |+ found cluster, headers are parsed completely :)
    [demux] [mkv] Aspect: 1.777778
    [demux] [mkv] Track ID 1: video (V_MPEG4/ISO/AVC)
    [demux] [mkv] Track ID 2: audio (A_VORBIS)
    [demux] [mkv] Track ID 3: subtitles (S_TEXT/ASS) "Mazui"
    [demuxer] Detected file format: Matroska
    [global] get_path('subfont.ttf') -> '/home/adam/.mpv/subfont.ttf'
    [global] get_path('fonts.conf') -> '/home/adam/.mpv/fonts.conf'
    [ass] [ass] Setting up fonts...
    [ass] [ass] Done.
    [subreader] Load subtitles in .
    [global] get_path('sub/') -> '/home/adam/.mpv/sub/'
    [cplayer] [stream] Video (+) --vid=0 (h264)
    [cplayer] [stream] Audio (+) --aid=0 --alang=jpn (*) (vorbis)
    [cplayer] [stream] Subs (+) --sid=0 --slang=eng (*) 'Mazui' (ass)
    [cplayer] [V] fourcc:0x31637661 size:1280x720 fps:23.976
    [vo] X11 opening display: :0
    [vo] vo: X11 running at 1366x768 (":0" => local display)
    [vo] [x11] Detected wm supports NetWM.
    [vo] [x11] Detected wm supports FULLSCREEN state.
    [vo] [x11] Detected wm supports ABOVE state.
    [vo] [x11] Detected wm supports BELOW state.
    [vo] [x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
    [vo] [gl] GLX chose visual with ID 0x29
    [vo] [gl] Detected OpenGL 3.0.
    [vo] GL_VENDOR='ATI Technologies Inc.'
    [vo] GL_RENDERER='AMD Radeon HD 7340 Graphics'
    [vo] GL_VERSION='3.0.12441 Compatibility Profile Context 13.20.11'
    [vo] GL_SHADING_LANGUAGE_VERSION='4.30'
    [vo] [gl] OpenGL legacy compat. found.
    [vo] [gl] Detected OpenGL features: [Basic OpenGL] [Legacy OpenGL] [OpenGL 2.0] [OpenGL 2.1] [OpenGL 3.0] [Framebuffers] [VAOs] [sRGB textures] [sRGB framebuffers] [Float textures] [RG textures] [NO_SW]
    [vo/opengl] Testing user-set FBO format
    [vo/opengl] Create FBO: 16x16
    [vo/opengl] 8-bit precision: 0x0p+0
    [vo/opengl] 16-bit precision: 0x1.0001p-9
    [vo/opengl] full float: 0x1.01p-9
    [vo/opengl] out of range value (2): 0x1p+0
    [vo/opengl] Display depth: R=8, G=8, B=8
    [vo/opengl] Testing user-set FBO format
    [vo/opengl] Create FBO: 16x16
    [vo/opengl] 8-bit precision: 0x0p+0
    [vo/opengl] 16-bit precision: 0x1.0001p-9
    [vo/opengl] full float: 0x1.01p-9
    [vo/opengl] out of range value (2): 0x1p+0
    [vo/opengl] Reinit rendering.
    [decvideo] Codec list:
    [decvideo] lavc:h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
    [decvideo] lavc:h264_vdpau (h264) - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
    [decvideo] Opening video decoder lavc:h264
    [decvideo] Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
    [vo] Disabling DPMS
    [vo] DPMSDisable stat: 1
    [decaudio] Codec list:
    [decaudio] lavc:vorbis - Vorbis
    [decaudio] lavc:libvorbis (vorbis) - libvorbis
    [decaudio] Opening audio decoder lavc:vorbis
    [decaudio] dec_audio: Allocating 8192 + 65536 = 73728 bytes for output buffer.
    [decaudio] INFO: libavcodec "vorbis" init OK!
    [decaudio] Selected audio codec: Vorbis [lavc:vorbis]
    [decaudio] AUDIO: 48000 Hz, 2 ch, floatle
    [decaudio] Building audio filter chain for 48000Hz stereo 2ch floatle -> 0Hz empty 0ch ??...
    [af] Audio filter chain:
    [af] [in] 48000Hz stereo 2ch floatle
    [af] [out] 48000Hz stereo 2ch floatle
    [af] [ao] 0Hz empty 0ch ??
    [af] Audio filter chain:
    [af] [in] 48000Hz stereo 2ch floatle
    [af] [out] 48000Hz stereo 2ch floatle
    [af] [ao] 0Hz empty 0ch ??
    [cplayer] AO: [pulse] 48000Hz stereo 2ch floatle
    [cplayer] AO: Description: PulseAudio audio output
    AO: Author: Lennart Poettering
    [decaudio] Building audio filter chain for 48000Hz stereo 2ch floatle -> 48000Hz stereo 2ch floatle...
    [af] Audio filter chain:
    [af] [in] 48000Hz stereo 2ch floatle
    [af] [out] 48000Hz stereo 2ch floatle
    [af] [ao] 48000Hz stereo 2ch floatle
    [af] Audio filter chain:
    [af] [in] 48000Hz stereo 2ch floatle
    [af] [out] 48000Hz stereo 2ch floatle
    [af] [ao] 48000Hz stereo 2ch floatle
    [osd] Subtitle filter chain: ass (ass)
    [cplayer] Starting playback...
    [decvideo] [ffmpeg] aspect_ratio: 0.000000
    [decvideo] VIDEO: 1280x720 23.976 fps 0.0 kbps ( 0.0 kB/s)
    [decvideo] VDec: vo config request - 1280 x 720 (420p10)
    [vf] Trying filter chain:
    [vf] [vo] ???
    [cplayer] VO Config (1280x720->1280x720,flags=0,0x409)
    [cplayer] VO: [opengl] 1280x720 => 1280x720 420p10
    [cplayer] VO: Description: Extended OpenGL Renderer
    [cplayer] VO: Author: Based on vo_gl.c by Reimar Doeffinger
    [vo/opengl] Testing user-set FBO format
    [vo/opengl] Create FBO: 16x16
    [vo/opengl] 8-bit precision: 0x0p+0
    [vo/opengl] 16-bit precision: 0x1.0001p-9
    [vo/opengl] full float: 0x1.01p-9
    [vo/opengl] out of range value (2): 0x1p+0
    [vo/opengl] Texture for plane 0: 1280x720
    [vo/opengl] Texture for plane 1: 640x360
    [vo/opengl] Texture for plane 2: 640x360
    [vo/opengl] Reinit rendering.
    [vo/opengl] compiling shader program 'frag_osd_libass', header:
    [vo/opengl] compiling shader program 'frag_osd_rgba', header:
    [vo/opengl] compiling shader program 'final', header:
    [vo/opengl] [ 1] #define SAMPLE_L sample_bilinear
    [vo/opengl] [ 2] #define USE_CONV CONV_PLANAR
    [vo/opengl] [ 3] #define USE_COLORMATRIX 1
    [vo/opengl] [ 4] #define SAMPLE_C sample_bilinear
    [vo/opengl] Resize: 1280x720
    [vo] Window size: 1280x720
    [vo] Video source: 1280x720 (1280x720)
    [vo] Video display: (0, 0) 1280x720 -> (0, 0) 1280x720
    [vo] Video scale: 1.000000/1.000000
    [vo] OSD borders: l=0 t=0 r=0 b=0
    [vo] Video borders: l=0 t=0 r=0 b=0
    [vf] Video filter chain:
    [vf] [vo] 1280x720 420p10 0 BT.709 (HD)/TV
    [decaudio] Increasing filtered audio buffer size from 0 to 4096
    [decaudio] Increasing filtered audio buffer size from 4096 to 69632
    [decaudio] Increasing filtered audio buffer size from 69632 to 135168
    [decaudio] Increasing filtered audio buffer size from 135168 to 200704
    [decaudio] Increasing filtered audio buffer size from 200704 to 266240
    [decaudio] Increasing filtered audio buffer size from 266240 to 331776
    [decaudio] Increasing filtered audio buffer size from 331776 to 388096
    Last edited by aphirst (2014-01-02 23:20:53)

    So, I had a nice long conversation last night with some of the devs on the IRC channel (that I didn't find first-time-round somehow). I'll summarise this in bullet points:
    >I'm using an ATI card with the proprietary driver
    >I'm exposing VDPAU via a library that uses VA-API underneath
    >the vo_vdpau mode for mpv continues to handle file playback even if the vdpau hardware decoder won't initialise
    >>i.e. vdpau itself calls the software decoder, and then handles the calls to a software renderer
    >because I'm using VDPAU in an indirect "wheels within wheels" library, it's slow as all hell
    Solution:
    UPDATE: READ THE POST BELOW, A BETTER SOLUTION HAS BEEN IMPLEMENTED
    >mpv-git has native VA-API support, vo_vaapi
    >compiling and using this works perfectly
    >the vaapi handler is able to much more efficiently handle the calls to software decoders/renderers
    >8bit h.264 files play fullspeed using hardware decoding
    >10bit h.264 files are automatically handed to software-decoding, and play (almost!) as well as they should (i.e. when directly calling vo_opengl or vo_xv)
    Note that it's still a little slower than using opengl or xv, which is kind of odd. wm4 on IRC mentioned he might be able to do something about this, by implementing the (hackish, apparently) thing that VLC does, so that vo_vaapi doesn't have to use swscale (slow) before rendering; but I'll wait and see if that pans out.
    TL;DR - People using the proprietary ATI driver should compile mpv-git and and use vo=vaapi
    @Roberth: I actually did have that enabled, but whether it was or wasn't enabled didn't affect the problem I was having. After all, the problem was with vo_vdpau calling software decoding in an inefficient, roundabout way. vo_vaapi still isn't as efficient at this as it should be, it seems, but it's better than vo_vdpau was on my setup.
    @kaszak696: As far as I was aware, sws=0 was the default behaviour, but I do recall forcing that at one point with no effect. Either way, my particular problem is solved/worked around now! Well, almost.
    Last edited by aphirst (2013-09-22 23:38:35)

  • How do I fix extremely slow rendering with buffered images?

    I've found random examples of people with this problem, but I can't seem to find any solutions in my googling. So I figured I'd go to the source. Basically, I am working on a simple platform game in java (an applet) as a surprise present for my girlfriend. The mechanics work fine, and are actually really fast, but the graphics are AWFUL. I wanted to capture some oldschool flavor, so I want to render several backgrounds scrolling in paralax (the closest background scrolls faster than far backgrounds). All I did was take a buffered image and create a graphics context for it. I pass that graphics context through several functions, drawing the background, the distant paralax, the player/entities, particles, and finally close paralax.
    Only problem is it runs at like 5 fps (estimated, I havn't actually counted).
    I KNOW this is a graphics thing, because I can make it run quite smoothly by commenting out the code to draw the background/paralax backgrounds... and that code is nothing more complicated than a graphics2d.drawImage
    So obviously I am doing something wrong here... how do I speed this up?
    Code for main class follows:
    import javax.swing.JApplet;
    import java.awt.*;
    import java.awt.image.BufferedImage;
    import java.awt.event.*;
    import Entities.*;
    import Worlds.*;
    // run this applet in 640x480
    public class Orkz extends JApplet implements Runnable, KeyListener
         double x_pos = 10;
         double y_pos = 400;
         int xRes=640;
         int yRes=480;
         boolean up_held;
         boolean down_held;
         boolean left_held;
         boolean right_held;
         boolean jump_held;
         Player player;
         World world;
         BufferedImage buffer;
         Graphics2D bufferG2D;
         int radius = 20;
         public void init()
              //xRes=(int) this.getSize().getWidth();
              //yRes=(int) this.getSize().getHeight();
            buffer=new BufferedImage(xRes, yRes, BufferedImage.TYPE_INT_RGB);
            bufferG2D=buffer.createGraphics();
              addKeyListener(this);
         public void start ()
                player=new Player(320, 240, xRes,yRes);
                world=new WorldOne(player, getCodeBase(), xRes, yRes);
                player.setWorld(world);
               // define a new thread
               Thread th = new Thread (this);
               // start this thread
               th.start ();
         public void keyPressed(KeyEvent e)
              //works fine
         }//end public void keypressed
         public void keyReleased(KeyEvent e)
              //this works fine
         public void keyTyped(KeyEvent e)
         public void paint( Graphics g )
               update( g );
        public void update(Graphics g)
             Graphics2D g2 = (Graphics2D)g;              
             world.render(bufferG2D);                
             g2.drawImage(buffer, null, null);
         public void run()
              // lower ThreadPriority
              Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
              long tm;
              long tm2;
              long tm3;
              long tmAhead=0;
              // run a long while (true) this means in our case "always"
              while (true)
                   tm = System.currentTimeMillis();
                   player.moveEntity();
                  x_pos=player.getXPos();
                  y_pos=player.getYPos();
                  tm2 = System.currentTimeMillis();
                    if ((tm2-tm)<20)
                     // repaint the applet
                     repaint();
                    else
                         System.out.println("Skipped draw");
                    tm3= System.currentTimeMillis();
                    tmAhead=25-(tm3-tm);
                    try
                        if (tmAhead>0) 
                         // Stop thread for 20 milliseconds
                          Thread.sleep (tmAhead);
                          tmAhead=0;
                        else
                             System.out.println("Behind");
                    catch (InterruptedException ex)
                          System.out.println("Exception");
                    // set ThreadPriority to maximum value
                    Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
         public void stop() { }
         public void destroy() { }
    }Here's the code for the first level
    package Worlds;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.image.BufferedImage;
    import java.util.*;
    import javax.swing.*;
    import javax.imageio.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.awt.image.*;
    import java.io.File;
    import java.net.URL;
    import java.awt.geom.AffineTransform;
    import Entities.Player;
    public class WorldOne implements World
         Player player;
         //Location of Applet
         URL codeBase;
         // Image Resources
         BufferedImage paralax1Image;
         BufferedImage paralax2Image;
         BufferedImage backgroundImage;
         // Graphics Elements     
         int xRes;
         int yRes;
         double paralaxScale1,paralaxScale2;
         double worldSize;
         int frameX=1;
         int frameY=1;
         public WorldOne(Player player, URL codeBase, int xRes, int yRes)
              this.player=player;
              this.codeBase=codeBase;
              this.xRes=xRes;
              this.yRes=yRes;
              worldSize=4000;
            String backgroundImagePath="worlds\\world1Graphics\\WorldOneBack.png";
            String paralax1ImagePath="worlds\\world1Graphics\\WorldOnePara1.png";
            String paralax2ImagePath="worlds\\world1Graphics\\WorldOnePara2.png";
            try
            URL url1 = new URL(codeBase, backgroundImagePath);
             URL url2 = new URL(codeBase, paralax1ImagePath);
             URL url3 = new URL(codeBase, paralax2ImagePath);
            backgroundImage = ImageIO.read(url1);
            paralax1Image  = ImageIO.read(url2);
            paralax2Image = ImageIO.read(url3);
            paralaxScale1=(paralax1Image.getWidth()-xRes)/worldSize;
            paralaxScale2=(paralax2Image.getWidth()-xRes)/worldSize;
            catch (Exception e)
                 System.out.println("Failed to load Background Images in Scene");
                 System.out.println("Background Image Path:"+backgroundImagePath);
                 System.out.println("Background Image Path:"+paralax1ImagePath);
                 System.out.println("Background Image Path:"+paralax2ImagePath);
         }//end constructor
         public double getWorldSize()
              double xPos=player.getXPos();
              return worldSize;
         public void setFramePos(int frameX, int frameY)
              this.frameX=frameX;
              this.frameY=frameY;
         public int getFrameXPos()
              return frameX;
         public int getFrameYPos()
              return frameY;
         public void paralax1Render(Graphics2D renderSpace)
              int scaledFrame=(int)(paralaxScale1*frameX);
              renderSpace.drawImage(paralax1Image,-scaledFrame,0,null); //Comment this to increase performance Massively
         public void paralax2Render(Graphics2D renderSpace)
              int scaledFrame=(int)(paralaxScale2*frameX);
              renderSpace.drawImage(paralax2Image,-scaledFrame,0,null); //Comment this to increase performance Massively
         public void backgroundRender(Graphics2D renderSpace)
              renderSpace.drawImage(backgroundImage,null,null); //Comment this to increase performance Massively
         public void entityRender(Graphics2D renderSpace)
              //System.out.println(frameX);
              double xPos=player.getXPos()-frameX+xRes/2;
             double yPos=player.getYPos();
             int radius=15;
             renderSpace.setColor (Color.blue);
            // paint a filled colored circle
             renderSpace.fillOval ((int)xPos - radius, (int)yPos - radius, 2 * radius, 2 * radius);
              renderSpace.setColor(Color.blue);
         public void particleRender(Graphics2D renderSpace)
              //NYI
         public void render(Graphics2D renderSpace)
              backgroundRender(renderSpace);
              paralax2Render(renderSpace);
              entityRender(renderSpace);
              paralax1Render(renderSpace);
    }//end class WorldOneI can post more of the code if people need clarification. And to emphasize, if I take off the calls to display the background images (the 3 lines where you do this are noted), it works just fine, so this is purely a graphical slowdown, not anything else.
    Edited by: CthulhuChild on Oct 27, 2008 10:04 PM

    are the parallax images translucent by any chance? The most efficient way to draw images with transparent areas is to do something like this:
         public static BufferedImage optimizeImage(BufferedImage img)
              GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();                    
              GraphicsConfiguration gc = gd.getDefaultConfiguration();
              boolean istransparent = img.getColorModel().hasAlpha();
              BufferedImage img2 = gc.createCompatibleImage(img.getWidth(), img.getHeight(), istransparent ? Transparency.BITMASK : Transparency.OPAQUE);
              Graphics2D g = img2.createGraphics();
              g.drawImage(img, 0, 0, null);
              g.dispose();
              return img2;
         }I copied this from a util class I have and I had to modify it a little, I hope I didn't break anything.
    This piece of code does a number of things:
    - it allows the images to be hardware accelerated
    - the returned image is 100% compatible with the display, regardless of what the input image is
    - BITMASK transparent images are an incredible amount faster than translucent images
    BITMASK means that a pixel is either fully transparent or it is fully opaque; there is no alpha blending being performed. Alpha blending in software rendering mode is very slow, so this may be the bottleneck that is bothering you.
    If you require your parallax images to be translucent then I wouldn't know how to get it to draw quicker in an applet, other than trying out java 6 update 10 to see if it fixes things.

  • Acrobat 3D transparency rendering

    Hello!
    Rendering transparent geometry is problematic since alpha blending is
    not in general commutative(The order in which something is done dont
    affect the outcome).
    So doing transparent rendering correctly requires depth-peeling or funky
    per pixel sorting techniques that can only be done on that latest GPU
    generations.
    Acrobat is doing back to front sorting when rendering transparent objects,
    which is good. However, z-writing is kept on.
    I think it would be better if z-writing was turned off when rendering transparent
    geometry. It still wont be perfect but I think it will be better than the current
    situation in Acrobat where transparent geometry may occlude other geometry!
    Is there a spesific reason why z-writing is kept on in Acrobat?
    Can we get transparent rendering using depth-peeling in Acrobat? Pretty please!
    -rb

    The Adobe is well aware of the problem, including discussions at this forum, http://forums.adobe.com/message/1148132#1148132 :
    The surf_alpha file contains one mesh for the complex surface, and Acrobat sorts by object. Sorting by triangle would give visually fewer artifacts, and would also be incredibly slow as every triangle in the scene would be sorted for every frame. Z buffer rendering does not deal well with multiple simultaneous transparent objects, and even sorting the triangles does not always work if there is self intersection within or between objects. Some algorithms do deal with this issue properly, but would require significant pre-processing, hardware or time per frame.
    One partial solution you could try is to break the mesh into multiple objects. Minimizing concavity within each mesh will minimize artifacts due to transparency.
    and their reaction is "we do not care"(tm), see http://forums.adobe.com/message/2765728#2765728 :
    I've actually been through this before with Adobe, when I proved to the bug-handling engineer, over a painfully long period of time, that the 3D rendering engine inside PDF does not sort triangles, and therefore cannot render alpha correctly.  That experience has taught me to let Adobe drive the process, since every bit of initiative I took in that case was wasted effort.
    They never have fixed alpha sorting.  They acknowledged it was wrong, but told me that none of their big CAD clients seemed to care, so they did not  feel it was worth the engineering time to do correctly.
    Back when I had "inside" contacts at Adobe, I basically got that answer to every defect I pointed out.  (Like the fact that their software rendering engine is an embarrassment; 
    Hope they have done something about that in the upcoming Reader 10, but we well never know till it is released and tried (they never publish ChangeLog information).

  • Why does Premiere Pro CC 2014 renders incredibly slow?

    Dear Premiere Pro experts
    I created a movie with Adobe Premiere Pro CC 2014 and I have serious performance issues when it comes to export the movie.
    The first 10% renders pretty fast and takes 1 hour. Then it takes for every additional 1% about 4 hours! (never rendered it to finish so far, 14% max so far)
    Here are some facts that might help to isolate the problem:
    Project:
    Length: 24 minutes in total, splitted into several sequences (up to 4 minutes) and arranged on a "main-sequence"
    Input: Cineform AVI files, 1080p, 59fps (I converted GoPro 3+ footage (3D!) using GoPro Studio to the Cineform format for further processing)
    Desired Output: Same as input, preserving 3D (Render 3D Intermediate)
    Effects used: Warp-Stabilizer (default settings) and Auto-Color (smoothing 1-2 sec) on almost every clip.
    Hardware / Software:
    i7-3770K @3.5 GHZ (Quadcore)
    16 GB RAM
    NVIDIA Geforce GTX 970 (also tried with a ATI Radeon R9 290X)
    Windows 8.1
    SSD for OS and programs, RAID 0 for media files and project, separate drive for rendering output.
    Then I tried to render using AME using the same settings. The whole video rendered in about 14 hours what is acceptable in my case. There problem here is that the 3D gets lost, even if I selected "Render 3D Intermediate". The picture for the left eye is the same as the one for the right eye. This is not happening when I do a direct export. But the direct export get almost stuck at around 10%.
    There is almost no difference in choosing Software-Rendering and GPU. Also, the GPU has almost no load. Premiere Pro uses the CPU for about 45% (total usage 65%) and takes up 5-9 GB of memory (total usage 65%). Disk usage at around 14b/s.
    I think there are two problems. One is that AME renders differently (no 3D) and the other is that the direct export takes way too long.
    Can someone help me with any of these problems?
    Thank you,
    Martin

    I did some additional research and found out, that the slow rendering happens with this combination:
    - Auto-Color using Temporal Smoothing
    - Render 3D Intermediate
    Without rendering the 3D intermediate, Temporal Smoothing is not a problem. And without temporal smoothing, Rendering 3D Intermediate is not a problem.
    Might this be a problem in the codec or in Premiere?

  • Media Encoder CC Problems - No sound and often crashes while rendering to Youtube 1080p 29.97 fps

    I'm baffled by all of this.
    I'm trying to render a clip similar to this:
    http://www.youtube.com/watch?v=fprMxgfdpRo
    except there are 8 equalizers and I have to do it for a 2 hour podcast. I have to do it in 10 minute clips because it will either crash every 2 hours of rendering, or it won't have sound, which seems like a common problem with AME. It is very difficult to get the sound to line up after the fact.
    Here are my specs:
    Windows 8.1
    i7 - 3770K
    AMD Radeon HD 7870 GHz edition
    16gb Ram
    I can't seem to pinpoint a fix for this problem. Anyone have any ideas?

    This is user to user forum.  Some of us on Adobe side check forums once in a while to help users.  Contacting support is the proper direct communication with Adobe.  That said..
    Try encoding uisng Software rendering instead of GPU.  Look for "Renderer" just below queue panel and select "Mercury Playback Engine: software only".  We have seens in some cases (on longer clips) where graphic card runs out of memory and causes application to mis behave or crash.
    If that doesn't solve, let us know if you can encode that particular video to any other preset (Not Youtube).  Just to see if this is common issue with all preset or particular one.

Maybe you are looking for