Giter Club home page Giter Club logo

Comments (9)

chldydgh4687 avatar chldydgh4687 commented on August 14, 2024

ffmpeg (youtube-dl -g ([link)] | sed "s/.*/-ss 10 -i &/") -t 60 -c copy test3.mkv

from 00self-linux_trial_and_error.

chldydgh4687 avatar chldydgh4687 commented on August 14, 2024

os.system("") – PrinceOfCreation Feb 23 '19 at 18:41
I tried but it is not working os.system("ffmpeg ([link)] | sed 's/.*/-ss 10 -i &/') -t 60 -c copy test3.mkv") – Anish Mazumdar Feb 24 '19 at 5:48

from 00self-linux_trial_and_error.

chldydgh4687 avatar chldydgh4687 commented on August 14, 2024

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

from 00self-linux_trial_and_error.

chldydgh4687 avatar chldydgh4687 commented on August 14, 2024

ffmpeg -ss 00:00:15.00 -i "OUTPUT-OF-FIRST URL" -t 00:00:10.00 -c copy out.mp4

from 00self-linux_trial_and_error.

chldydgh4687 avatar chldydgh4687 commented on August 14, 2024

youtube-dl -g "https://www.youtube.com/watch?v=V_f2QkBdbRI"

from 00self-linux_trial_and_error.

chldydgh4687 avatar chldydgh4687 commented on August 14, 2024

ffmpeg $(youtube-dl -g 'https://www.youtube.com/watch?v=oHg5SJYRHA0' | sed "s/.*/-ss 00:05 -i &/") -t 01:00 -c copy out.mkv

from 00self-linux_trial_and_error.

chldydgh4687 avatar chldydgh4687 commented on August 14, 2024

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
)

from 00self-linux_trial_and_error.

chldydgh4687 avatar chldydgh4687 commented on August 14, 2024

ffmpeg $(youtube-dl -g 'https://www.youtube.com/watch?v=NnW5EjwtE2U' | sed "s/.*/-ss 10 -i &/") -t 60 -c copy test3.mkv

from 00self-linux_trial_and_error.

chldydgh4687 avatar chldydgh4687 commented on August 14, 2024

성공

# 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')

from 00self-linux_trial_and_error.

Related Issues (20)

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.