projects
/
videoscripts
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed up scripts to support importing videos from phones
[videoscripts/.git]
/
mts2mpg
diff --git
a/mts2mpg
b/mts2mpg
index e3e49628fa7d85156c95041cfded8aced028c213..c29e3f3f78beee2f190e56f2172f32fcf1693d85 100755
(executable)
--- a/
mts2mpg
+++ b/
mts2mpg
@@
-9,8
+9,8
@@
foreach(@files)
# Find out if content is interlaced or not
$deint_option = "-deinterlace";
# Find out if content is interlaced or not
$deint_option = "-deinterlace";
- $
interlaced
= system('ffmpeg -i "$_.MTS" 2>&1 | grep -q "frame rate differs"');
- if(
$interlaced != 0
) {
+ $
progressive
= system('ffmpeg -i "$_.MTS" 2>&1 | grep -q "frame rate differs"');
+ if(
!$progressive
) {
print " Detected interlaced video content\n";
} else {
print " Detected progressive video content\n";
print " Detected interlaced video content\n";
} else {
print " Detected progressive video content\n";