changeset 526:74d60f61a8aa

Automated merge with http://winxp:8080/
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sat, 27 Oct 2012 01:06:32 +0300
parents 2527a3c1d750 (current diff) 296131d12ed8 (diff)
children d2ae002787b7
files printarg/Makefile
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/misc/video2nokia5320.sh	Sat Oct 27 01:03:37 2012 +0300
+++ b/misc/video2nokia5320.sh	Sat Oct 27 01:06:32 2012 +0300
@@ -15,11 +15,12 @@
   printf '\033[32m'"$name"'\033[0m\n'
   #  -noskip
   # -ofps 20
+  # -endpos 20: convert only first 20 sec
 
   mencoder -mc 0 -of lavf -lavfopts format=mp4 \
     -oac lavc -ovc lavc \
     -lavcopts aglobal=1:vglobal=1:acodec=libmp3lame:abitrate=96:vcodec=mpeg4:vbitrate=500:keyint=100 \
-    -vf scale=-3:240,crop=320:240,harddup -af lavcresample=44100 -ofps 15 \
+    -vf scale=-3:240,crop=320:240,harddup -af lavcresample=44100,volume=10:0 -ofps 15 \
     -o "$name"-mp3.mp4 "$video"
 
   # mencoder -mc 0 -afm ffmpeg -of lavf -lavfopts format=mp4 \
--- a/printarg/Makefile	Sat Oct 27 01:03:37 2012 +0300
+++ b/printarg/Makefile	Sat Oct 27 01:06:32 2012 +0300
@@ -13,6 +13,12 @@
 
 S := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
 B := $(abspath .)/
+ifeq '' '$(filter %/,${B})'
+  $(error B value must end with slash but actually is '${B}')
+endif
+ifeq '' '$(wildcard ${B})'
+  $(shell mkdir -p ${B})
+endif
 
 ifeq '' '$(prefix)'
   ifneq '' '$(HOME)'