Open chldydgh4687 opened 4 years ago
ffmpeg (youtube-dl -g ([link)] | sed "s/.*/-ss 10 -i &/") -t 60 -c copy test3.mkv
os.system("
ffmpeg -ss 12:15 -i "1st-URL" -ss 12:15 -i "2nd-URL" -t 5:15 -map 0:v -map 1:a -c:v libx264 -c:a aac output.mkv
ffmpeg -ss 00:00:15.00 -i "OUTPUT-OF-FIRST URL" -t 00:00:10.00 -c copy out.mp4
youtube-dl -g "https://www.youtube.com/watch?v=V_f2QkBdbRI"
ffmpeg $(youtube-dl -g 'https://www.youtube.com/watch?v=oHg5SJYRHA0' | sed "s/.*/-ss 00:05 -i &/") -t 01:00 -c copy out.mkv
SET /P url= FOR /F %%A IN ('youtube-dl.exe -g %url%') DO ( ffmpeg.exe -ss 00:41:55 -i "%%A" -c copy -t 00:03:00 output.mp4 )
ffmpeg $(youtube-dl -g 'https://www.youtube.com/watch?v=NnW5EjwtE2U' | sed "s/.*/-ss 10 -i &/") -t 60 -c copy test3.mkv
# from pytube import YouTube
from __future__ import unicode_literals
import os
import youtube_dl
import urllib
import shutil
TEXT_DIR = '/home/ivcl/Desktop/git/video-captioning/text_files/'
Vid2Url = eval(open(TEXT_DIR + 'Vid2Url_Full.txt').read())
video_id = str(Vid2Url['vid1547'])
video_url = 'https://www.youtube.com/watch?v='+ video_id
print('https://www.youtube.com/watch?v='+ video_id)
ydl_opts = {
'format' : 'best/best',
'outtmpl': ("/home/ivcl/Desktop/git/video-captioning/Data/YouTubeClips/test"),
'merge_output_format' : 'ffmpeg',
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download([video_url])
os.chdir('/home/ivcl/Desktop/git/video-captioning/Data/YouTubeClips/')
os.system('ffmpeg -ss 00:01:44 -i test -t 00:00:06 -vcodec copy -acodec copy test_m.mp4')
os.chdir('/home/ivcl/Desktop/git/video-captioning')
pytube
youtubeDL https://www.programcreek.com/python/example/98358/youtube_dl.YoutubeDL