LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-15-2006, 04:27 PM   #1
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
nautilus scripting - shh-tc.ksh


hi,
# i wish this would use a gdialog progress bar rather
an infobox so that it would be easier to determine its current status.
# transcode prints out current frame and current movie time but i would like to determine what the projected file size will be so that it can calculate when it is done.
Code:
        #!/bin/bash
        
        # shh-tc-v0.1.ksh
        # transcodes selected file or contents of directory to a 750 kb
        bitrate xvid avi file
        # depends: transcode, gdialog
        # this software can be distributed or modified as needed -
        season to taste.
        # schneidz
        # 12.05.2006
         
        pwd=`echo $NAUTILUS_SCRIPT_CURRENT_URI | sed 's/file\:\/\///'`
        cd $pwd
        
        gdialog --infobox "starting transcode $1" 200 200
         
        transcode -y xvid,xvid -F mpeg4 -M 2 -N 0x55 -s 3 -w 750,75,90
        -b 64 -B 12,10,8 -i $1 -o $1.avi 
        
        gdialog --infobox "transcode complete - $1.avi" 200 200

Last edited by schneidz; 12-15-2006 at 04:31 PM.
 
Old 03-05-2007, 11:06 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Original Poster
Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
i am wondering if there are gdialog examples that i can base a script off of.

i am looking for a gauge that i can update the surrounding text.

like when copying or moving multiple files a pop-up comes up and updates based on the filename that it is currently working on.

anyone know where i can get something like that ?

thanks,
schneidz
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nautilus scripting - shh-cd-rip schneidz Programming 0 12-15-2006 04:23 PM
KSH and SCO Shell Scripting mpgram Programming 3 12-29-2005 12:24 PM
Three ksh scripting questions liguorir Linux - Software 2 10-22-2005 12:40 PM
KSH Scripting case statement..... ']['HeBroken Programming 1 12-10-2004 10:38 AM
some ksh scripting nabil Programming 1 03-03-2002 10:34 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration