2017-04-18 3 views
1

Ich mache dieses Batch-Skript zum Herunterladen eines Videos in MP4 von Youtube mit VLC mit der Befehlszeile. und es funktioniert gut für mich!Herunterladen von Video von Youtube mit VLC mit der Befehlszeile

@echo off 
REM Downloading a video from youtube using VLC with the command line by (c) Hackoo 2017 
Title Si Lemhaf - Kharrej Legrinta Elli Fik by (c) Hackoo 2017 
mode con:cols=65 lines=3 & COLOR 0E 
Taskkill /IM "vlc.exe" /F >nul 2>&1 
echo. 
echo  Please wait a while ... The download is in progress ... 
set Title=Si Lemhaf - Kharrej Legrinta Elli Fik by (c) Hackoo 2017 
set "VLC_URL=http://www.videolan.org/vlc/download-windows.html" 
set "URL=https://www.youtube.com/watch?v=KDI1C27zEC0" 
set "File=SiLmehaf.mp4" 

IF /I "%PROCESSOR_ARCHITECTURE%"=="x86" (
     Set "vlc=%ProgramFiles%\VideoLAN\VLC\vlc.exe" 
    ) else (
     Set "vlc=%ProgramFiles(x86)%\VideoLAN\VLC\vlc.exe" 
) 

If Not Exist "%vlc%" (
    Cls & COLOR 0C 
    echo. 
    Echo  "The VLC program is not installed on your system" 
    TimeOut /T 5 /NoBreak>nul 
    Start "" %VLC_URL% 
    Exit 
) 

"%vlc%" -vvv "%URL%" --qt-start-minimized --qt-notification=0 --sout=#transcode{vcodec="h264",vb="512",fps="23.97",scale="1",acodec="mpga",ab="128","channels=2",samplerate="44100"}:standard{access="file",mux=mp4,dst=%File%} vlc://quit" 
REM Starting the video in fullscreen with VLC 
Start "" "%vlc%" -f --meta-title="%Title%" %File% 

Aber mein Problem ist, warum einige URLs von Youtube nicht funktionieren? wie diese:

https://www.youtube.com/watch?v=TGtWWb9emYI 

bekam ich diesen Fehler von VLC Programm

nicht das Format der Eingabemedien

+1

Meine beste Vermutung ist, dass dieses bestimmte Video wurde entweder nicht als MP4 hochgeladen oder Vevo hat eine Art Kopie Schutz darauf. – SomethingDark

Antwort

2

erkennen kann, weil der Besitzer dieses Video: https://www.youtube.com/watch?v=TGtWWb9emYIturn off the embedding hat Sie können es nicht mit VLC herunterladen. Dein Code funktioniert einwandfrei. Wenn du das YouTube-Video aus dem vlc-Programm streamen >> Medien >> Aufnahmegerät öffnen und deine URL überspringst, bekommst du einen Fehler.

Auch das yturls Skript wird die folgende Fehlermeldung angezeigt wird, wenn versucht, das Youtube-Video zum Download:

YouTubeAPIError: This video contains content from VEVO. It is restricted 
from playback on certain sites or applications. 
Verwandte Themen