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


Jelenko Commodore LS VPF with Pump  picture

Jelenko Commodore LS VPF with Pump

$875.00



To Suit Holden Commodore 3 Button Car Remote Case/Shell Uncut Key VS VX VY VZ WH picture

To Suit Holden Commodore 3 Button Car Remote Case/Shell Uncut Key VS VX VY VZ WH

$11.99



Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc picture

Vintage MOS 8502 8502R0 Commodore C64 very rare good condition x 1pc

$22.00



Vintage MOS 6510CBM 6510 HMOS Commodore C64 IC x 1pc picture

Vintage MOS 6510CBM 6510 HMOS Commodore C64 IC x 1pc

$30.00



Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC picture

Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC

$49.00



Windsor Commodore Duo 20

Windsor Commodore Duo 20" Carpet extractor w/Lester Charger 25900/Battery/99hour

$2799.99







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