diff options
Diffstat (limited to 'video')
-rwxr-xr-x | video/ffconcat | 17 | ||||
-rwxr-xr-x | video/ytdl-dlplst | 5 |
2 files changed, 11 insertions, 11 deletions
diff --git a/video/ffconcat b/video/ffconcat index 7e903f6..06eb066 100755 --- a/video/ffconcat +++ b/video/ffconcat @@ -1,17 +1,12 @@ #!/bin/sh -#for out; do true; done # get last argument -filelist=$(mktemp ${TMPDIR:-/tmp}/ffconcat.XXXXXX) || exit -pwd="$(pwd)" -for out; do - [ -e "$pwd/$out" ] \ - && files="$pwd/$out\n$files" \ - || ([ -e "$out" ] && files="$out\n$files") -done -echo $files | tail +2 | sed -n "s/\(.\+\)/file '\1'/p"# > $filelist +ffconcat="$(ls | sed "s/^/file '/; s/$/'/")" +echo "$ffconcat" > ffconcat ffmpeg \ -f concat \ -safe 0 \ - -i $filelist \ + -i ffconcat \ -c copy \ - $out + out.mkv + +rm ffconcat diff --git a/video/ytdl-dlplst b/video/ytdl-dlplst new file mode 100755 index 0000000..f7b4a47 --- /dev/null +++ b/video/ytdl-dlplst @@ -0,0 +1,5 @@ +#!/bin/sh +echo "Getting Video ID's..." +for id in $(youtube-dl --get-id "$1"); do + youtube-dl --newline "https://youtu.be/$id" & +done |