BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 03-30-2007, 01:05 PM   #1
erroneus
Knows Where the Search Button Is
 
erroneus's Avatar
 
Join Date: Feb 2007
Location: Texas
Model: 8100
Carrier: T-Mobile
Posts: 42
Default Something I thought I would share...

Please Login to Remove!

There's already the shell script for re-coding video for putting onto the blackberry, but I thought I would make it work with Nautilus. To make it work for you, remove the .txt extension, chmod +x the file and place it here:

"/home/<Username>/.gnome2/nautilus-scripts/vid2bb recoding"

Then when you right-click on a file or set of files, you can recode a whole batch of files. At the moment, it is kinda dangerous in that there's no grahical feedback to show progress or anything like that. (I understand zenity might be the best answer for that... just never used it for anything other than a password entry dialog.)

I find it useful not only for making a video fit the blackberry, but also to make it compatible. For example, I just downloaded a video using a firefox extension and it was saved as a .flv file. Don't think the blackberry can use that format. But after running it through the script, it worked just fine. (sound was a little low...)
Attached Files
File Type: txt vid2bb recoding.txt (481 Bytes, 11 views)
__________________
Device: Blackberry 8100 v4.2.0.64
Carrier: T-Mobile USA
BES: 4.1.0.38
Desktop OS: Fedora 7 Linux, Windows XP (vmware)
Offline  
Old 08-24-2007, 12:50 AM   #2
Keyscan
Thumbs Must Hurt
 
Keyscan's Avatar
 
Join Date: Aug 2007
Model: 8800
PIN: N/A
Carrier: Rogers
Posts: 140
Default

Will take a look. Thanks!
Offline  
Old 08-25-2007, 11:56 AM   #3
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Default

Suggestion from the bash nerd (heh ): use "-r" (or -f, but -r is better) instead of "-n" when checking the filename. -n simply checks for a non-zero length string, -f checks that a file exists (which would include a 0-length check), but -r checks if the file exists and is readable (permissions, etc.).

Since you're nautilizing it, I'd also check that the output directory is writeable -- it might go something like...

Code:
MYDIR=`dirname "${filename}"`
if [ ! -d "${MYDIR}" ] || [ ! -w "${MYDIR}" ]; then
  echo "Output directory missing or unwritable, exiting."
  exit 1
fi
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


C2102A-4 INTEL VINTAGE 1K SRAM 1024Bit CERAMIC GOLD PINS APPLE 1, DC1976 Mimeo-1 picture

C2102A-4 INTEL VINTAGE 1K SRAM 1024Bit CERAMIC GOLD PINS APPLE 1, DC1976 Mimeo-1

$30.83



Retro 1951 Apple Computer Logo 0.7mm Ballpoint Black Ink Pen Gold Barrel picture

Retro 1951 Apple Computer Logo 0.7mm Ballpoint Black Ink Pen Gold Barrel

$56.41



Lot of 6 Vintage Apple Drawstring Bags For iPhone, Mac, Apple Watch, iPod picture

Lot of 6 Vintage Apple Drawstring Bags For iPhone, Mac, Apple Watch, iPod

$45.00



Vintage Print Block “ Apple Corer Kitchen Tool “ Copper Face Block picture

Vintage Print Block “ Apple Corer Kitchen Tool “ Copper Face Block

$16.00



Vintage Food Cut-Out Display Print: Mama's Apple Pie w/Ice Cream Topper picture

Vintage Food Cut-Out Display Print: Mama's Apple Pie w/Ice Cream Topper

$19.00



COMPUTER TECH Vintage Street Sign Metal Plastic geek repair fix apple pc picture

COMPUTER TECH Vintage Street Sign Metal Plastic geek repair fix apple pc

$28.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.