clipper skips existing files
This commit is contained in:
@@ -1,74 +1,128 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo52",
|
"source": "http://mmurl.de/judo52",
|
||||||
"target": "videos/5terKyu/Ukemi/MaeMawari.webm", "poster": {"timeIndex": "17.880"}
|
"target": "videos/5terKyu/Ukemi/MaeMawari.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "17.880"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo53",
|
"source": "http://mmurl.de/judo53",
|
||||||
"target": "videos/5terKyu/NageWaza/MoroteSeoiNage.webm", "poster": {"timeIndex": "23.400"}
|
"target": "videos/5terKyu/NageWaza/MoroteSeoiNage.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "23.400"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo54",
|
"source": "http://mmurl.de/judo54",
|
||||||
"target": "videos/5terKyu/NageWaza/SasaeTsuriKomiAshiHizaGuruma.webm", "poster": {"timeIndex": "24.760"}
|
"target": "videos/5terKyu/NageWaza/SasaeTsuriKomiAshiHizaGuruma.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "24.760"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo55",
|
"source": "http://mmurl.de/judo55",
|
||||||
"target": "videos/5terKyu/NageWaza/OkuriAshiBarei.webm", "poster": {"timeIndex": "16.720"}
|
"target": "videos/5terKyu/NageWaza/OkuriAshiBarei.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "16.720"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo56",
|
"source": "http://mmurl.de/judo56",
|
||||||
"target": "videos/5terKyu/NageWaza/OSotoGari.webm", "poster": {"timeIndex": "23.640"}
|
"target": "videos/5terKyu/NageWaza/OSotoGari.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "23.640"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo57",
|
"source": "http://mmurl.de/judo57",
|
||||||
"target": "videos/5terKyu/NageWaza/HaraiGoshi.webm", "poster": {"timeIndex": "16.440"}
|
"target": "videos/5terKyu/NageWaza/HaraiGoshi.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "16.440"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo58",
|
"source": "http://mmurl.de/judo58",
|
||||||
"target": "videos/5terKyu/KansetsuWaza/JujiGatame.webm", "poster": {"timeIndex": "27.040"}
|
"target": "videos/5terKyu/KansetsuWaza/JujiGatame.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "27.040"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo59",
|
"source": "http://mmurl.de/judo59",
|
||||||
"target": "videos/5terKyu/KansetsuWaza/UdeGarami.webm", "poster": {"timeIndex": "15.040"}
|
"target": "videos/5terKyu/KansetsuWaza/UdeGarami.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "15.040"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo60",
|
"source": "http://mmurl.de/judo60",
|
||||||
"target": "videos/5terKyu/TachiWaza/KonterEindreh.webm", "poster": {"timeIndex": "17.560"}
|
"target": "videos/5terKyu/TachiWaza/KonterEindreh.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "17.560"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo61",
|
"source": "http://mmurl.de/judo61",
|
||||||
"target": "videos/5terKyu/TachiWaza/KonterFuss.webm", "poster": {"timeIndex": "13.120"}
|
"target": "videos/5terKyu/TachiWaza/KonterFuss.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "13.120"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo62",
|
"source": "http://mmurl.de/judo62",
|
||||||
"target": "videos/5terKyu/TachiWaza/KombiEindreh.webm", "poster": {"timeIndex": "19.880"}
|
"target": "videos/5terKyu/TachiWaza/KombiEindreh.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "19.880"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo63",
|
"source": "http://mmurl.de/judo63",
|
||||||
"target": "videos/5terKyu/TachiWaza/KombiFuss.webm", "poster": {"timeIndex": "28.200"}
|
"target": "videos/5terKyu/TachiWaza/KombiFuss.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "28.200"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo64",
|
"source": "http://mmurl.de/judo64",
|
||||||
"target": "videos/5terKyu/NeWaza/UkesBefreiungZuJujiGatame.webm", "poster": {"timeIndex": "24.600"}
|
"target": "videos/5terKyu/NeWaza/UkesBefreiungZuJujiGatame.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "24.600"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo65",
|
"source": "http://mmurl.de/judo65",
|
||||||
"target": "videos/5terKyu/NeWaza/UkesBefreiungZuUdeGarami.webm", "poster": {"timeIndex": "16.400"}
|
"target": "videos/5terKyu/NeWaza/UkesBefreiungZuUdeGarami.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "16.400"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo66",
|
"source": "http://mmurl.de/judo66",
|
||||||
"target": "videos/5terKyu/NeWaza/BefreiungDurchBeinklammer.webm", "poster": {"timeIndex": "26.960"}
|
"target": "videos/5terKyu/NeWaza/BefreiungDurchBeinklammer.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "26.960"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo67",
|
"source": "http://mmurl.de/judo67",
|
||||||
"target": "videos/5terKyu/NeWaza/BefreiungAusBeinklammer.webm", "poster": {"timeIndex": "22.600"}
|
"target": "videos/5terKyu/NeWaza/BefreiungAusBeinklammer.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "22.600"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo68",
|
"source": "http://mmurl.de/judo68",
|
||||||
"target": "videos/5terKyu/NeWaza/JujiGgBank.webm", "poster": {"timeIndex": "36.520"}
|
"target": "videos/5terKyu/NeWaza/JujiGgBank.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "36.520"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "http://mmurl.de/judo69",
|
"source": "http://mmurl.de/judo69",
|
||||||
"target": "videos/5terKyu/Randori/Randori.webm", "poster": {"timeIndex": "54.160"}
|
"target": "videos/5terKyu/Randori/Randori.webm",
|
||||||
|
"poster": {
|
||||||
|
"timeIndex": "54.160"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -63,6 +63,9 @@ def getDimensions(config, clip, bitrateProfiles):
|
|||||||
return w, h
|
return w, h
|
||||||
|
|
||||||
def twoPassEncode(inputFilename, clip):
|
def twoPassEncode(inputFilename, clip):
|
||||||
|
if os.path.isfile(clip['target']):
|
||||||
|
print(f"{clip['target']} already existing! Skipping!")
|
||||||
|
return
|
||||||
# cutting
|
# cutting
|
||||||
kwArgs = {}
|
kwArgs = {}
|
||||||
if 'from' in clip:
|
if 'from' in clip:
|
||||||
@@ -88,7 +91,7 @@ def twoPassEncode(inputFilename, clip):
|
|||||||
vcodec=config['vcodec'],
|
vcodec=config['vcodec'],
|
||||||
**{
|
**{
|
||||||
# "an":None,
|
# "an":None,
|
||||||
"y": None,
|
# "y": None,
|
||||||
"pass": "1",
|
"pass": "1",
|
||||||
"b:v": bitrateProfile[config['bitrateProfile']['bitrate']],
|
"b:v": bitrateProfile[config['bitrateProfile']['bitrate']],
|
||||||
"minrate": bitrateProfile[config['bitrateProfile']['minrate']],
|
"minrate": bitrateProfile[config['bitrateProfile']['minrate']],
|
||||||
@@ -127,7 +130,7 @@ def twoPassEncode(inputFilename, clip):
|
|||||||
clip['target'],
|
clip['target'],
|
||||||
vcodec=config['vcodec'],
|
vcodec=config['vcodec'],
|
||||||
**{
|
**{
|
||||||
"y": None,
|
# "y": None,
|
||||||
"pass": "2",
|
"pass": "2",
|
||||||
"b:v": bitrateProfile[config['bitrateProfile']['bitrate']],
|
"b:v": bitrateProfile[config['bitrateProfile']['bitrate']],
|
||||||
"minrate": bitrateProfile[config['bitrateProfile']['minrate']],
|
"minrate": bitrateProfile[config['bitrateProfile']['minrate']],
|
||||||
|
|||||||
Reference in New Issue
Block a user