ekisu / mpv-webm

Simple WebM maker for mpv, with no external dependencies.
MIT License
576 stars 33 forks source link

Fails to encode #48

Open XLR-XR opened 5 years ago

XLR-XR commented 5 years ago

mpv version and platform

macOS 10.12.6
mpv 0.29.1

mpv 0.29.1 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
 built on Fri Oct  5 00:01:23 CEST 2018
ffmpeg library versions:
   libavutil       56.14.100
   libavcodec      58.18.100
   libavformat     58.12.100
   libswscale      5.1.100
   libavfilter     7.16.100
   libswresample   3.1.100
ffmpeg version: 4.0.2

Description

Encoding fails. "No video", despite MPV playing it fine.

Log file

https://pastebin.com/9VjGG98a

ekisu commented 5 years ago
[   7.930][v][webm] "[ffmpeg] filter: Value 3.000000 for parameter 'tempo' out of range [0.5 - 2]"
[   7.930][v][webm] "[lavfi] Could not set AVOption tempo='3' (Result too large)" 

Looking into it.

bluefiberbread commented 5 years ago

Nothing happens if I try to encode something longer than 5 seconds too

nevermind, enabling "strict filesize constraint" causes nothing to happen when trying to encode something

ekisu commented 5 years ago

Actually, this revealed a somewhat bigger issue regarding to speeding up the encoded video. I can't find any combination of setpts, atempo and sub-speed that, together with the --start and --end options, results in a correctly synced and positioned output video. ~i'm going insane~

@bluefiberbread Logs?

bluefiberbread commented 5 years ago

No log file is generated when I try to encode with "strict filesize constraint" :/

This is what I'm using https://pastebin.com/mScr8HCT

ekisu commented 5 years ago

@bluefiberbread Check latest build, should be fixed.

bluefiberbread commented 5 years ago

thanks for the quick fix m8

XLR-XR commented 5 years ago

It turns out the macOS Homebrew devs decided to go full retard and removed the ability to build software with additional options. As a result, my previously functional ffmpeg & mpv have "updated" to neutered versions with missing features, which explains why this script worked for me ~9 months ago but not today. I am absolutely livid about this, and hopefully anyone encountering issues in the future will complain to Mike McQuaid and the rest of the devs behind this positively asinine decision.

To fix this script and others like it:
brew uninstall mpv

Open the Homebrew mpv formula in a text editor:
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/mpv.rb

Replace everything with this & save: https://pastebin.com/9AcsfVWY
brew install --build-from-source mpv

If you desire, download & place the precompiled binary in your Applications folder. Enjoy until it doesn't work anymore.