ekisu / mpv-webm

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

Not encoding #17

Closed FlappyFalcon closed 4 years ago

FlappyFalcon commented 6 years ago

Is there a limit on file size of a file that this plugin can encode from? It won't encode at all from, well, it says encoded successfully but no file.

ekisu commented 6 years ago

Please post logs. There's no limit, AFAIK.

FlappyFalcon commented 6 years ago

Sorry but where are the logs located? I wasn't aware it made a log after each encode. Well this won't even give a file, it just instantly says successfully encoded after pressing e. I think it's just buggy, because it works at different sections of the video but not at specific frame. weird

FlappyFalcon commented 6 years ago

Yeah I'm not getting this, it's not encoding at all for whatever reason

ekisu commented 6 years ago

not at specific frame

Are you trying to encode a single frame? Or is it between some two specific points?

To generate logs, either run mpv with the -v flag on the command line and redirect the output to a text file, or add log-file=log.txt to the mpv.conf file. The log will be stored on a log.txt file on the same directory as the video file that was playing.

macamaca2 commented 6 years ago

I downloaded this video from youtube with youtube-dl -f best https://www.youtube.com/watch?v=Zzq5PW5cyp0 . Set the start point to 0 and the endpoint almost at the end. Set audio on (works with audio off). Change the scale to 240 and the file size to 3800. When I press encode it immediately says successful but it outputs nothing. log.txt

macamaca2 commented 6 years ago

I think what FlappyFalcon means by "not at a specific frame" is that it works on some videos when the section is like 00:10 to 00:20, but when you select 00:01 to 01:20 it fails. 00:10 to 00:20 actually works on the video I linked. But change it to 00:00 to 2:01 and it fails.

ekisu commented 6 years ago

@macamaca2 Looking at the logs, there's nothing really suspicious. I wished it printed the encoding command output (it usually does for me, but I guess it's because I use log-file on the config file, which causes the encoder to also output to the log).

Could you try running the encode command line (search for "Command line" on the log) separately and see what happens? (You'll need to escape the paths I think).

macamaca2 commented 6 years ago

@ElegantMonkey When I run the command manually I get a few errors. I'm attaching a log file generated with log-file doing the original converting, and a log file piped from output doing the command manually. generated-with-log-file.txt manual-command-piped.txt

ekisu commented 6 years ago

[encode-lavc] no audio stream succeeded - invalid codec?

This line is interesting. Usually, when the encoding codec isn't available, I think it shows a different error. mpv --oac=help should show the available audio codecs.

mpv-player/mpv#5666 seems to be somewhat related to this, at first sight.

FlappyFalcon commented 6 years ago

I think what FlappyFalcon means by "not at a specific frame" is that it works on some videos when the section is like 00:10 to 00:20, but when you select 00:01 to 01:20 it fails. 00:10 to 00:20 actually works on the video I linked. But change it to 00:00 to 2:01 and it fails.

this is exactly what i meant, sorry for not specifying properly. at some time intervals it works, at others it doesn't

ekisu commented 6 years ago

It seems that a lot of files fail to encode from the beginning (--start=0) or near beginning. While fiddling with some flags on the encode line worked for some videos, and some of them didn't have the issue, this specific YouTube one seems to fail even with the simplest of the encode options:

mpv -v "LooseyLunchesNYC - Slicing a Texas Style BBQ Brisket Smoked on Weber Kettle Grill-Zzq5PW5cyp0.mp4" --ovc=libx264 --oac=libopus -o="test.mkv"

I've opened an issue on mpv's repo, let's see how it turns out.

ekisu commented 6 years ago

Welp, this issue is getting kinda old, so I'd like to confirm if this still happens. mpv-player/mpv#5750 was supposed to fix this, but I still haven't gotten around testing.

FlappyFalcon commented 4 years ago

I will close this now since I don't have this issue anymore since a long time ago, and was most likely something on mpv's end.