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


OEM  IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working picture

OEM IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working

$49.99



IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM picture

IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM

$2.99



New 2 Sets of 2 (4) keys total OEM 9952 IBM Keys for Cash Drawers Displays Locks picture

New 2 Sets of 2 (4) keys total OEM 9952 IBM Keys for Cash Drawers Displays Locks

$14.99



IBM CASH DRAWER KEY'S #9960 SET OF 2 KEYS. AFTERMARKET KEY'S SAME AS OEM 33G3360 picture

IBM CASH DRAWER KEY'S #9960 SET OF 2 KEYS. AFTERMARKET KEY'S SAME AS OEM 33G3360

$18.00



IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259 picture

IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259

$24.79



IBM Selectric Part OEM 1141765 15

IBM Selectric Part OEM 1141765 15" Velocity Cable

$14.95







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