Giter VIP home page Giter VIP logo

mpv-scripts's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mpv-scripts's Issues

Avoid reencoding

Hi,

I often use Losslesscut for cutting video.
I like the fact that it is not reencoding the video.
Do you think would be possible to implement this ? I may miss something. I have tried but did not succeeded until now.

Losslesscut use this cmd:

ffmpeg -hide_banner -ss start_timestamp -i video_path -t t -avoid_negative_ts make_zero -c copy -map '0:0' -map '0:1' -map_metadata 0 -movflags use_metadata_tags -movflags '+faststart' -ignore_unknown -f mp4 -y output.mp4

I tried to change your code :

args = {
	ffmpeg_path,
	"-y",
	"-ss", start_timestamp,
	"-i", video_path,
	"-t", t,
	"-map", "0:v:0",
	"-map", "0:a:" .. ff_aid,
	"-af", "afade=t=in:st=0:d=" .. d .. ",afade=t=out:st=" .. (t - d) .. ":d=" .. d,
	"-c:v", "libx264",
	"-preset", video_encoding_preset,
	"-c:a", "aac",
	"-ac", "2",
	filename .. ".mp4"
}

into

args = {
	ffmpeg_path,
	"-ss", start_timestamp,
	"-i", video_path,
	"-t", t,
	"-c", "copy",
	"-avoid_negative_ts", "make_zero",
	"-map", "'0:0'", 
	"-map", "'0:1'",
	"-map_metadata", "0",
	"-movflags", "use_metadata_tags",
	"-movflags", "'+faststart'",
	"-ignore_unknown",
	-- "-f", "mp4",
	"-y",
	filename .. ".mp4"
}

Sub Search with ".ass" files

It would be nice if the script could work with .ass file seeing as how they are a very common subtitle format.

sub-bilingual and sub-sentences only works in terminal

Hi, i haven't used this scripts for a long time. When I switched to linux, i decided to use it again and i encountered this problem. If i open the video in normal ways scripts doesn't work. but if i open it from terminal, scripts works fine.

Os: EndeavourOS KDE Plasma 5.24
Linux: 5.16.10-zen
Mpv: 0.34.0-198-gbc9805c71a

Script to speed up sections without subtitle

Not sure if you would be interested in creating something like that, but I love the idea of a script that would fast forward (let's say, a configurable 200% increase of the current speed) while there are no subtitles, and would immediately slow down to the previous speed once there are subtitles again.

sub-cut.lua and youtube links

First of all, thank you for your awesome work. I use sub-cut.lua and it works perfectly โ€“ except when dealing with youtube links.

Right now, when I try to cut youtube videos, the sub-cut.lua plugin gives the following error:
/home/user/watch?v=WOfmnbU5S5o: No such file or directory
when opened with
mpv https://www.youtube.com/watch?v=WOfmnbU5S5o
and trying to cut the video.

It obviously points to a non-existing file, as it is a not known use case for the plugin.

It would be awesome if you were able to cut youtube videos on the fly. I have no idea how hard this is to implement, but it would be nice-to-have feature.

You would have to know where and how the cache is layed, and from there, try to figure out which parts to use.

Somewhat related links on this issue:
https://mpv.io/manual/master/#options-cache-file
antoniy/mpv-youtube-dl-binding#32
ytdl-org/youtube-dl#622

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.