Coder Social home page Coder Social logo

streamsave's People

Contributors

sagnac avatar

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

Watchers

 avatar  avatar  avatar  avatar

streamsave's Issues

Is webm still supported?

force_extension=.webm gives me a "Cache dumping stopped due to a error" message with the output being a 1kb webm file.

the saved file lost audio track

the file info on stream
image

the file info downloaded
image

My operation:
continious mode, ctrl+Z to start dumping, and ctrl+X to end dumping

glad to provide more info if needed

No issue, just a big thank you

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

  • is really usefull
  • seems to be very well thought (ex. cases 'continuous', AB, start to point)
  • carefully documented (IMPORTANT)
  • doesnt impose or force me to options or keybindings, is configurable
  • unlike other similar "hacks" it worked flawless at first time, with no surprises, i didn't have to go back and forth to the code or README to understand what was happening

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.

Subtitle tracks prevent saving.

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

Clips sometime longer than expected

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.

streamsave ffmpeg error

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

streamsave error messages

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

Steps to reproduce.

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

The question is about the title file being recorded and completed

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.

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.