sagnac / streamsave Goto Github PK
View Code? Open in Web Editor NEWmpv script aimed at saving live streams and clipping online videos without encoding.
mpv script aimed at saving live streams and clipping online videos without encoding.
force_extension=.webm gives me a "Cache dumping stopped due to a error" message with the output being a 1kb webm file.
The A-B loop clipping doesn't work with this video https://ok.ru/video/7179694836436, first time it happened.
When the URL's very long, streamsave seems to fail to create the file, probably due to an OS path length error, should prob be trunc-ed with room to account for the file extension.
Originally posted by @brian6932 in #12 (comment)
Thanks for providing this script.
I just found it today and started using it immediately
Been searching for long time for this kind of functionality,
and your script
Only got into this error (because when random browsing youtube, I use youtube-dl "worst" quality which sometimes is vp9)
Errors on some videos if you use the default youtube-dl format selection (e.g. dump-cache won't write vp9 + aac with mp4a tags to mkv)
But even that you had it documented in the README. Bravo !
I still have a lot of testing to do, and hope to give you more feedback from an end user perspective and usability. Explain my real word use cases and so.
It would be great if you could open up the "Discussions"
https://github.com/Sagnac/streamsave/discussions
a better place to post messages like this.
You might want to close this issue and move it there.
Hi, after much troubleshooting I've discovered that subtitle tracks prevent saving, causing the
"Cache dumping stopped due to an error" msg. Could streamsave ignore subtitle tracks, so toggling them off is not required every time? Thank you
Sometimes the extracted clip will contain around 6 seconds more of video then expected (but for these extra seconds there is no audio). This also can happen before the expected starting time of the clip (each time this has happened it's been including audio).
I'm using mp4 local video and I'm using A-B Loops to determine the length of the extract.
Sorry if this is all rather vague, but I can't quite figure out a pattern.
Mplug is like a package manager but for mpv scripts.
Please add your script there (if already not there) and also installation instructions in manifest - https://github.com/Nudin/mpv-script-directory/blob/master/HOWTO_ADD_INSTALL_INSTRUCTIONS.md
mpv https://www.2ix2.com/rtl-live/
(+) Video --vid=1 (h264 1024x576 25.000fps)
(+) Audio --aid=1 (aac 2ch 48000Hz)
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 1024x576 yuv420p
ctrl-z:
Cache dumping started.
[ffmpeg] mp4: Tag [15][0][0][0] incompatible with output codec id '86018' (mp4a)
[recorder] Writing header failed.
Cache dumping stopped due to error.
mpv 0.33.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
built on Thu Nov 26 06:59:44 UTC 2020
FFmpeg library versions:
libavutil 56.60.100
libavcodec 58.112.103
libavformat 58.64.100
libswscale 5.8.100
libavfilter 7.90.100
libswresample 3.8.100
FFmpeg version: git-2020-11-22-9208b72
Hi Sagnac,
I installed streamsave on my Debian 10 Buster Box. My expectation: dump to my disk the stream I am watching.
mpv 0.29.1 Copyright © 2000-2018 mpv/MPlayer/mplayer2 projects
built on UNKNOWN
ffmpeg library versions:
libavutil 56.14.100 (runtime 56.22.100)
libavcodec 58.18.100 (runtime 58.35.100)
libavformat 58.12.100 (runtime 58.20.100)
libswscale 5.1.100 (runtime 5.3.100)
libavfilter 7.16.100 (runtime 7.40.101)
libswresample 3.1.100 (runtime 3.3.100)
ffmpeg version: 4.1.6-1~deb10u1
I have installed:
lua script on: ~/.config/mpv/scripts/streamsave.lua
no config file on: ~/.config/mpv/scripts/script-opts
Note: I already installed ano
I have A Playlist.me3 PLAYLIST FILE with URL to internet for streamed videos.
url are streamed and played with mpv, no problems
With this command:
mpv --idle=once --load-scripts=yes iptvPlaylist.m3u
I got these error messages after typing CTRL-Z :
`[streamsave] Command 'expand-path' not found.
Playing: iptvPlaylist.m3u
(+) Video --vid=1 (h264 640x360 29.970fps)
(+) Audio --aid=1 (aac 2ch 48000Hz)
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 640x360 yuv420p
AV: 00:00:38 / 00:01:14 (51%) A-V: 0.000 Cache: 35s+5MB
[streamsave]
[streamsave] stack traceback:
[streamsave] /home/omvault/.config/mpv/scripts/streamsave.lua:302: in function 'increment_filename'
[streamsave] /home/omvault/.config/mpv/scripts/streamsave.lua:330: in function 'fn'
[streamsave] mp.defaults:202: in function 'fn'
[streamsave] mp.defaults:60: in function 'handler'
[streamsave] mp.defaults:339: in function 'handler'
[streamsave] mp.defaults:459: in function 'call_event_handlers'
[streamsave] mp.defaults:496: in function 'dispatch_events'
[streamsave] mp.defaults:452: in function mp.defaults:451
[streamsave] [C]: in ?
[streamsave] [C]: in ?
[streamsave] Lua error: /home/omvault/.config/mpv/scripts/streamsave.lua:302: attempt to concatenate field 'path' (a nil value)`
Thanks in advance for your help reviewing this.
Thanks for streamsave lua script.
Francisco
Here is the conf of my streamsave
# Default writing directory is the current working directory.
# Relative and absolute paths as well as ~/ and ~~/ meta paths are accepted.
save_directory=~~/07save/
# <ab|current|continuous|chapter|segments>
dump_mode=continuous
# <increment|range|timestamp|overwrite|chapter>
output_label=increment
# <.ext>
force_extension=no
# <title>
force_title=no
# <yes|no>
range_marks=no
track_packets=no
# Automation Options
# <yes|no>
autostart=yes
# <no|HH:MM:SS>
autoend=no
# <yes|no>
hostchange=no
on_demand=no
# <no|HH:MM:SS>
quit=no
# <yes|no>
piecewise=no
When I use streamsave sometimes the title will contain an ID so I use auto to change the name quickly. But the problem is is there any way to help me distinguish which file is being recorded or which file has been completed? I don't want to use auto rename when a file is being recorded because I'm afraid it will damage the file. Thank you very much.
Imo this should kinda match the way screenshot-template
works in mpv.conf
, with %F
/%f
as the filename, so for example in streamsave.conf
you'd have something like force_title=streamsave_%F
Any ideas why I'm getting this message when trying to make clips?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.