Git Product home page Git Product logo

Comments (1)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 11, 2024
Okay, a little followup info -- I was finally able to get electricsheep to 
render sheep on the screen. I found inspiration in this discussion --> 
http://libav-users.943685.n4.nabble.com/Libav-user-got-picture-ptr-of-avcodec-de
code-video2-always-returns-0-for-a-particular-MTS-file-td4360493.html -- where 
the advisor points out that the video in question contained "non-displayable" 
(?) frames for which avcodec_decode_video2() returned 0 in the flag used to 
indicate a valid video frame.

Thus I changed CContentDecoder::ReadOneFrame() method to repeatedly attempt to 
get a valid frame (with a maximum of 10 attempts before giving up) and it turns 
out that for some sheep, there are as many as 5 frames at the beginning that 
have to be skipped before the first usable frame is obtained. However, there 
are no other frames in that sheep that have to be skipped this way.

This makes me wonder why this happens -- is it a quirk of the codec used by 
electricsheep or something? Also, what is the behavior of electricsheep on 
other platforms? After all, this is shared code that should pretty much behave 
the same way on all supported platforms. Can anyone say how it works on 
Windows/Mac?

At any rate, this wasn't the only problem with electricsheep that prevents its 
proper use. It seems that the input processing part is also somewhat broken 
because when I run the screensaver via the command line, I cannot terminate it 
from its window, even with Ctrl+C; I always have to go to the command line and 
press Ctrl+C there. (Maybe the deprecation message mentioned in ticket #13 has 
something to do with that.)

Original comment by [email protected] on 9 Nov 2013 at 6:56

from electricsheep.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.