-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First fully operational video indexer
- Loading branch information
Showing
9 changed files
with
172 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
:: split video in 2 parts | ||
d:\bin\ffmpeg\bin\ffmpeg -i test.mp4 -t 00:00:20 -c copy test1.mp4 -ss 00:00:60 -c copy test2.mp4 | ||
|
||
:: reduce video size | ||
d:\bin\ffmpeg\bin\ffmpeg -i test1.mp4 -filter:v scale=120:-1 -acodec copy test1s.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
:: Generate index for a folder | ||
:: Usage: make_shoot_index source | ||
|
||
:: TODO: update index for all video folders | ||
|
||
set LIBRARY=Video.Maxim | ||
set DST_DRIVE=v: | ||
set SRC=%1 | ||
set DST=%DST_DRIVE%\Video\%LIBRARY%\_index | ||
set PYTHON=python | ||
|
||
if '%1' == '' goto error | ||
|
||
%PYTHON% %~dp0\make_thumbnails.py %SRC% %DST% | ||
|
||
pause | ||
|
||
exit /b | ||
|
||
:error | ||
echo Usage: make_shoot_index source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
|
||
<title>Test Example</title> | ||
<meta name="description" content="A simple inquiry of function." /> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="content"> | ||
<ul> | ||
|
||
<li>0001.jpg</li> | ||
|
||
<li>0002.jpg</li> | ||
|
||
</ul> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
|
||
<title>{{ title }}</title> | ||
<meta name="description" content="{{ description }}" /> | ||
</head> | ||
|
||
<body> | ||
|
||
<div id="content"> | ||
<table> | ||
{% for item in shots %} | ||
{% if loop.index0 is divisibleby 6 %} | ||
<tr> | ||
{% endif %} | ||
<td> | ||
<a href="{{ item.location }}"> | ||
<img src="{{ item.thumbnail }}" width="150" height="120"/> | ||
</a> | ||
</td> | ||
{% if loop.index is divisibleby 6 %} | ||
</tr> | ||
{% endif %} | ||
{% endfor %} | ||
</table> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
|
||
<title>{{ title }}</title> | ||
<meta name="description" content="{{ description }}" /> | ||
</head> | ||
|
||
<body> | ||
|
||
<h1>{{ title }}<h1/> | ||
|
||
<div id="content"> | ||
<a href="..">Back</a> | ||
<table> | ||
{% for item in thumbnails %} | ||
{% if loop.index0 is divisibleby 6 %} | ||
<tr> | ||
{% endif %} | ||
<td> | ||
<a href="{{ item }}"> | ||
<img src="{{ item }}" width="150" height="120"/> | ||
</a> | ||
</td> | ||
{% if loop.index is divisibleby 6 %} | ||
</tr> | ||
{% endif %} | ||
{% endfor %} | ||
</table> | ||
<a href="..">Back</a> | ||
</div> | ||
|
||
</body> | ||
</html> |
Binary file not shown.
Binary file not shown.
Binary file not shown.