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


Thread Tools

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


4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts picture

4 Count Case GE ProLine 2 Bulb 120V T12 Electronic Fluorescent Light Ballasts

$49.99



EnergyPro 2 Lamp T8 Rapid Start Electronic Ballast Model SLE-232-120-LPF picture

EnergyPro 2 Lamp T8 Rapid Start Electronic Ballast Model SLE-232-120-LPF

$8.39



Philips ADVANCE AmbiStar RELB-2S40-N Replacement Ballast 40-Watt 2-Lamp T12 picture

Philips ADVANCE AmbiStar RELB-2S40-N Replacement Ballast 40-Watt 2-Lamp T12

$18.79



KTEB-432RIS-1-TP-SL 4 Lamp F32T8 120V Electronic Ballast picture

KTEB-432RIS-1-TP-SL 4 Lamp F32T8 120V Electronic Ballast

$22.75



10-Count GE Fluorescent Ballast, GE432-MVPS-L Electronic T8, 120v to 277v picture

10-Count GE Fluorescent Ballast, GE432-MVPS-L Electronic T8, 120v to 277v

$108.99



Fulham Pony Solid State electronic ballast picture

Fulham Pony Solid State electronic ballast

$15.00







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