Giter Site home page Giter Site logo

Webm support about pqiv HOT 9 CLOSED

phillipberndt avatar phillipberndt commented on May 28, 2024
Webm support

from pqiv.

Comments (9)

CamilleScholtz avatar CamilleScholtz commented on May 28, 2024

That's probably because webm is a video format

from pqiv.

hetraeus avatar hetraeus commented on May 28, 2024

FYI soundless WEBM is replacing GIFs here and there in the web. It is becoming pretty common.

from pqiv.

phillipberndt avatar phillipberndt commented on May 28, 2024

I thought about generic video support a while ago, but then did not implement it because I could not find any real use case. Yours sounds good enough for me to give it a try.

See the libav branch for an early and experimental version of the new backend.

from pqiv.

phillipberndt avatar phillipberndt commented on May 28, 2024

I've tested the backend with both the libav fork and the latest ffmpeg release now. While everything works somehow, it appears that frames should be read continuously from a separate thread and queued instead of the read-as-needed basis I'm currently using – I'm experiencing load-dependent glitches/frame drops/fragment errors, but only with larger videos. Small animations seem to run fine mostly. Please test this feature, I'm eager for feedback 😉

I'm tempted to leave it in its current state and ship it flagged such that it is not compiled in unless explicitly selected in configure (I share @onodera-punpun's opinion that video support is an uncommon feature for image viewers..).

from pqiv.

hetraeus avatar hetraeus commented on May 28, 2024

I just tested it. It runs seamlessly between image, gifs, and webm! Excellent!

I did a PKGBUILD, so Arch Linux testers may help theirselves
https://aur.archlinux.org/packages/pqiv-git/
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pqiv-git

Works for me. Should I close this ticket?

from pqiv.

phillipberndt avatar phillipberndt commented on May 28, 2024

Great! I'll close it once I merge this, with which I'm going to wait until I've had a chance to test this further & on different platforms.

from pqiv.

phillipberndt avatar phillipberndt commented on May 28, 2024

I've tested this in Ubuntu with both the libav fork and the latest ffmpeg, on FreeBSD and on Windows using mxe now. Seems to work smoothly everywhere. I merged the code to master now.

The only thing that might turn out to be a problem could be the reading-fames-as-needed thing. We'll see about that.

from pqiv.

CamilleScholtz avatar CamilleScholtz commented on May 28, 2024

I tried compiling this with the lates ffmpeg (2.8, I also tried 2.7.4) but I keep getting the following:

/usr/bin/ld: backends/libav.o: undefined reference to symbol 'av_frame_alloc@@LIBAVUTIL_54'
/usr/lib/libavutil.so.54: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
GNUmakefile:115: recipe for target 'pqiv' failed

EDIT: Fixed this: #41

from pqiv.

RaitaroH avatar RaitaroH commented on May 28, 2024

@phillipberndt I am a bit confused regarding webm support. I have version 2.11 and according to the changelog this should support webm, right? Testing it with this file from wikipedia pqiv gives:

$ pqiv Schlossbergbahn.webm
Didn't recognize file `Schlossbergbahn.webm': Both its extension and MIME-type `video/webm' are unknown. Fall-back to default file handler.
Failed to load image Schlossbergbahn.webm: Unrecognized image file format
No images left to display.

I have installed the package from AUR, so 2.11-3 and libwebp is a dependency for it, I am not missing it. Also, the git version for the AUR package in the readme is dead.

EDIT
Actually nevermind. I was dumb and I didn't notice that the pkgbuild is building pqiv without video support 😅

from pqiv.

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.