mpv-webm icon indicating copy to clipboard operation
mpv-webm copied to clipboard

Fails to encode

Open XLR-XR opened this issue 5 years ago • 7 comments

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

XLR-XR avatar Apr 21 '19 09:04 XLR-XR

[   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.

ekisu avatar Apr 21 '19 12:04 ekisu

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

bluefiberbread avatar Apr 21 '19 14:04 bluefiberbread

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?

ekisu avatar Apr 21 '19 14:04 ekisu

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

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

bluefiberbread avatar Apr 21 '19 14:04 bluefiberbread

@bluefiberbread Check latest build, should be fixed.

ekisu avatar Apr 21 '19 14:04 ekisu

thanks for the quick fix m8

bluefiberbread avatar Apr 21 '19 14:04 bluefiberbread

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.

XLR-XR avatar Apr 22 '19 22:04 XLR-XR