Skip to content

Instantly share code, notes, and snippets.

View parixitjani's full-sized avatar

Parixit Jani parixitjani

  • iSummation Technologies PVT. LTD.
View GitHub Profile
<cfoutput>#now()#</cfoutput>
casper.test.comment('Starting Testing');
for mfile in $ifiles
do
outfile=${mfile%.*}
ext=${mfile##*.}
#convert to mp4 if file is not mp4
if [ $ext != 'mp4' ]
then
_ffmpegcmd1="ffmpeg -loglevel panic -y -i $mfile -deinterlace -pix_fmt yuv420p -an -vf scale=640:trunc(ow/a/2)*2 -vcodec libx264 -threads 0 "$outfile".mp4"
$_ffmpegcmd1
ffmpeg -loglevel panic -y -i <inputfile> -deinterlace -pix_fmt yuv420p -an -vf scale=640:trunc(ow/a/2)*2 -vcodec libx264 -threads 0 <outputfile.mp4>
for mfile in $ifiles
do
outfile=${mfile%.*}
ext=${mfile##*.}
if [ $ext != 'mp3' ]
then
_ffmpegcmd1="ffmpeg -nostats -loglevel panic -y -i $mfile -codec:a libmp3lame -qscale:a 3 "$outfile".mp3"
ffmpeg -nostats -loglevel panic -y -i <inputfile> -codec:a libmp3lame -qscale:a 3 <outputfile.mp3>
@parixitjani
parixitjani / designer.html
Last active August 29, 2015 14:14
designer
<link href="../paper-input/paper-input.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
height: 100%;