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


1747-M13/A ABoriginal packaging   SLC EEPROM Memory module 1747M13  Brand new GN picture

1747-M13/A ABoriginal packaging SLC EEPROM Memory module 1747M13 Brand new GN

$309.99



1PC USED   FX-EEPROM-4 picture

1PC USED FX-EEPROM-4

$23.93



1PC New In Box PLC Memory Card  FX-EEPROM-16  picture

1PC New In Box PLC Memory Card FX-EEPROM-16

$142.50



1PCS New In Box Memory Card FXEEPROM8 FX-EEPROM-8 picture

1PCS New In Box Memory Card FXEEPROM8 FX-EEPROM-8

$100.70



CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip picture

CH341A 24 25 Series EEPROM Flash BIOS USB Programmer Module + SOIC8 Test Clip

$5.88



10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA picture

10PCS W27C512-45Z W27C512 DIP IC EEPROM 512KBIT 45NS Winbond EEPROMs USA

$17.98







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