Are you a spammer

Please note, that the first 3 posts you make, will need to be approved by a forum Administrator or Moderator before they are publicly viewable.
Each application to join this forum is checked at the Stop Forum Spam website. If the email or IP address appears there when checked, you will not be allowed to join this forum.
If you get past this check and post spam on this forum, your posts will be immediately deleted and your account inactivated.You will then be banned and your IP will be submitted to your ISP, notifying them of your spamming. So your spam links will only be seen for an hour or two at most. In other words, don't waste your time and ours.

This forum is for the use and enjoyment of the members and visitors looking to learn about and share information regarding the topics listed. It is not a free-for-all advertising venue. Your time would be better spent pursuing legitimate avenues of promoting your websites.

mp4 to mp3 converter

Source code I have written openly published for your viewing pleasure.


mp4 to mp3 converter

Postby TheeMahn » Mon Nov 18, 2013 7:40 am

I was over at my better half's this weekend and she had a list of what I assumed were music videos she wanted. I broke out youtube-dl built into most if not all Ultimate Edition's and snatched them up. When she awoke I thought she would be plesently surprised only to find what she wanted was mp3's for her phone. Grrr.

No more searching, no more downloading lets rip the audio out of the mp4's was my solution, I have now enhanced it to do it with a GUI (graphical User Interface):
toyz.png
mp4tomp3


Code: Select all
theemahn@JackHammer:~$ mp4tomp3 --help

mp4tomp3 1.0, 11/17/2013
GNU mp4tomp3 home page: <http://ultimateedition.info/>.
E-mail bug reports to: <[email protected]>.
Be sure to include the word mp4tomp3 somewhere in the Subject: field.

Usage: mp4tomp3 -<-COMMAND>
Mandatory arguments to long options are identical for short options.
possible commands...

-c --convert convert mp4 to mp3 audio
-h --help this help message
-v --version dump version info

mp4tomp3 --help [COMMAND] for further information.


The program:
#!/bin/bash
# ==============================================================================
# title :mp4tomp3
# description :Converts mp4 videos to mp3 music
# author :theemahn <[email protected]>
# date :11/17/2013
# version :1.0
# usage :mp4tomp3 --help
# manual :man mp4tomp3
# notes :See change-log below for further information.
# ==============================================================================
# Change-log: 1.0: unreleased
# ==============================================================================

PROGNAME="mp4tomp3"
BUILDDATE="11/17/2013"
VERSION="1.0"
#File to process - Grab input before setting IFS tears it apart. Compgen should ensure
#this value is correct.
FTP=$2

# set colors so errors etc. stand out.
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
txtblu='\e[0;34m' # Blue
txtpur='\e[0;35m' # Purple
txtcyn='\e[0;36m' # Cyan
txtwht='\e[0;37m' # White
bldblk='\e[1;30m' # Black - Bold
bldred='\e[1;31m' # Red
bldgrn='\e[1;32m' # Green
bldylw='\e[1;33m' # Yellow
bldblu='\e[1;34m' # Blue
bldpur='\e[1;35m' # Purple
bldcyn='\e[1;36m' # Cyan
bldwht='\e[1;37m' # White
unkblk='\e[4;30m' # Black - Underline
undred='\e[4;31m' # Red
undgrn='\e[4;32m' # Green
undylw='\e[4;33m' # Yellow
undblu='\e[4;34m' # Blue
undpur='\e[4;35m' # Purple
undcyn='\e[4;36m' # Cyan
undwht='\e[4;37m' # White
bakblk='\e[40m' # Black - Background
bakred='\e[41m' # Red
badgrn='\e[42m' # Green
bakylw='\e[43m' # Yellow
bakblu='\e[44m' # Blue
bakpur='\e[45m' # Purple
bakcyn='\e[46m' # Cyan
bakwht='\e[47m' # White
txtrst='\e[0m' # Text Reset

#Folder executed in.
CURRENT=`pwd`

function Process() {
#App Detection - prefer avconv over depriciated ffmpeg
AVCONV=`which avconv 2>/dev/null`
FFMPEG=`which ffmpeg 2>/dev/null`
if [[ $1 == "" ]]; then
echo -e "${bldgrn}Processing all MP4's in directory $CURRENT${txtrst}"
# Backup of the current IFS. One can never be too cautious.
OLDIFS=$IFS
IFS=:

for file in $(find $directory *.mp4 -type f -printf "%p$IFS")
do
echo -e "${bldgrn}Processing $file in directory $CURRENT${txtrst}"
OUTEXTENSION='.mp3'
INEXTENSION='.mp4'
RAWNAME=${file%.mp4}
if [[ $AVCONV ]]; then
avconv -i $file $RAWNAME$OUTEXTENSION
AC=1
fi
if [[ $FFMPEG && $AC == "" ]]; then
ffmpeg -i $file -f mp3 -ab 192000 -vn $RAWNAME$OUTEXTENSION
fi
done|sort
IFS=$OLDIFS
else
#Process an individual file.

# Backup of the current IFS. One can never be too cautious.
OLDIFS=$IFS
IFS=:

echo -e "${bldgrn}Processing $FTP in directory $CURRENT${txtrst}"
file=$FTP
OUTEXTENSION='.mp3'
INEXTENSION='.mp4'
RAWNAME=${file%.mp4}
if [[ $AVCONV ]]; then
avconv -i $file $RAWNAME$OUTEXTENSION
AC=1
fi
if [[ $FFMPEG && $AC == "" ]]; then
ffmpeg -i $file -f mp3 -ab 192000 -vn $RAWNAME$OUTEXTENSION
fi

IFS=$OLDIFS
fi
exit 0
}

function Help() {
VersionDump
if [[ $1 == "" ]];
then
PRAM="ALL"
else
PRAM=$1
fi

case $PRAM in
ALL)
echo -e "
${bldgrn}Usage: $PROGNAME -<-COMMAND>${txtrst}
Mandatory arguments to long options are identical for short options.
possible commands...

-c --convert convert mp4 to mp3 audio
-h --help this help message
-v --version dump version info

${bldgrn}$PROGNAME --help [COMMAND] for further information.${txtrst}";;
ALL|c|convert)
echo -e "
${bldwht}Usage convert;${txtrst}
${txtgrn}$PROGNAME -c${txtrst}
Converts MP4 to mp3 audio. Not specifying a file will process all mp4's
in the current directory'.";;
ALL|v|version)
echo -e "
${bldwht}Usage version;${txtrst}
${txtgrn}$PROGNAME -v${txtrst}
Displays $PROGNAMEs version number and exits.";;
ALL|h|help|\?)
echo -e "
${bldwht}Useage Help [COMMAND];${txtrst}
${txtgrn}$PROGNAME -h [COMMAND]${txtrst}
Displays this message. For futher information $PROGNAME help [COMMAND]
or refer to the manpages.

man $PROGNAME"
echo -e "${txtgrn}"
echo -e "Example: $PROGNAME -h version"
echo -e "${txtwht}Will display help about the command version${txtrst}"
esac
exit 0
}

function VersionDump {
echo -e "${undwht}$PROGNAME $VERSION, $BUILDDATE${txtrst}
GNU $PROGNAME home page: <http://ultimateedition.info/>.
E-mail bug reports to: <[email protected]>.
Be sure to include the word $PROGNAME somewhere in the Subject: field."
}

# Command line pre-processor

case "$1" in
-c|--convert) Process $FTP; exit 0;;
-h|--help|-\?) Help $2; exit 0;;
-v|--version) VersionDump; exit 0;;
*) Help; exit 0;;
esac


Majority of my work done with the assistance of our bash builder ;)

Simple and straight forward right? Well yes and no. Some of the files youtube-dl yanked down as can be seen above have spaces and single quotes in thier filenames a true nightmare to program in bash. I resolved the issue by writing a bash completion script, I must say works wonderfully(/etc/bash_completion.d/mp4tomp3):
# Debian mp4tomp3(8) completion.

have mp4tomp3 &&
_mp4tomp3()
{
dashify()
{
local i

for (( i=0; i < ${#COMPREPLY[@]}; i++ )); do
if [ ${#COMPREPLY[i]} -le 2 ]; then
COMPREPLY[i]=-${COMPREPLY[i]}
else
COMPREPLY[i]=--${COMPREPLY[i]}
fi
done
}

local cur cur_nodash prev
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
cur_nodash=${cur#-}
prev=${COMP_WORDS[COMP_CWORD-1][COMP_CWORD-2]}

if [ $COMP_CWORD = 1 ]; then
# first parameter on line
case "$cur" in
-c*)
COMPREPLY=( $( compgen -W 'convert' \
$cur_nodash ) )
dashify
return 0
;;
-*)
COMPREPLY=( $( compgen -W 'convert version help' ${cur_nodash#-} ) )
dashify;
return 0
;;
--*)
COMPREPLY=( $( compgen -W 'convert version help' ${cur_nodash#-} ) )
dashify;
return 0
;;
*)
COMPREPLY=( $( compgen -W 'convert version help' ${cur_nodash#-} ) )
dashify;
return 0
;;
esac
fi
saveIFS=$IFS
IFS=$'\n' # this will allow filenames with spaces (but not filenames with newlines)
toks=( $(compgen -f -- "${cur}" )) # the -- protects against filenames that start with a hyphen
toks=("${toks[@]/%/ }") # add a trailing space to each element

if [ $COMP_CWORD = 2 ]; then
case "${COMP_WORDS[1]}" in
--convert*)
# filename completion only showing mp4s
COMPREPLY=($(compgen -o plusdirs -f -X '!*.mp4' \
-- "${COMP_WORDS[COMP_CWORD]}"))
if [ ${#COMPREPLY[@]} = 1 ]; then
[ -d "$COMPREPLY" ] && LASTCHAR=/
COMPREPLY=$(printf %q%s "$COMPREPLY" "$LASTCHAR")
else
for ((i=0; i < ${#COMPREPLY[@]}; i++)); do
[ -d "${COMPREPLY[$i]}" ] && COMPREPLY[$i]=${COMPREPLY[$i]}/
done
fi
;;
-c)
# filename completion only showing mp4s
COMPREPLY=($(compgen -o plusdirs -f -X '!*.mp4' \
-- "${COMP_WORDS[COMP_CWORD]}"))
if [ ${#COMPREPLY[@]} = 1 ]; then
[ -d "$COMPREPLY" ] && LASTCHAR=/
COMPREPLY=$(printf %q%s "$COMPREPLY" "$LASTCHAR")
else
for ((i=0; i < ${#COMPREPLY[@]}; i++)); do
[ -d "${COMPREPLY[$i]}" ] && COMPREPLY[$i]=${COMPREPLY[$i]}/
done
fi
;;
--h*)
# complete on list of relevant options
COMPREPLY=( $( compgen -W 'convert help version' ${cur_nodash#-} ) )
#dashify;
return 0
;;
-h)
# complete on list of relevant options
COMPREPLY=( $( compgen -W 'convert help version' ${cur_nodash#-} ) )
#dashify;
return 0
;;
esac
fi
}
complete -F _mp4tomp3 mp4tomp3


I deliberately tried to foul up the software by putting the files in a foldername mp:4/ etc. and rolls through them like a champ. Well we are lazy and don't want to be bothered by a terminal right? Enter a zenity script to handle the workload:
#!/bin/sh

# How many files to make the progress bar
PROGRESS=0
NUMBER_OF_FILES=`find -iname "*.mp4" -maxdepth 1 | wc -l`
let "INCREMENT=100/$NUMBER_OF_FILES"

(for i in *.mp4; do
echo "$PROGRESS";
echo "# Converting $i to mp3";
mp4tomp3 --convert "$i"
let "PROGRESS+=$INCREMENT"
done
) | zenity --progress --title "TheeMahn's MP4 Converter..." --percentage=0

Great work huh? Well not good enough for me lets build a postinst script for it and package it up:
#!/bin/bash
# title :mp4tomp3 post installation
# author :Glenn Cady <[email protected]>
# date :11/18/2013
# ============================================================================
set -e

#Pull info we will use to compare against later
IUSER=${SUDO_USER:-$USER}
IHOME="/home/$IUSER"


case "$1" in
configure)
if [[ -x "`which caja 2>/dev/null`" && -x "`which zenity 2>/dev/null`" ]]; then
echo "Installation of Caja & Zenity detected, setting up scripts for $IUSER."
if [ -x $IHOME"/.config/caja/scripts/" ]; then
cp "/usr/share/ultimate_edition/MP4 to MP3" $IHOME"/.config/caja/scripts/"
chown $IUSER:$IUSER $IHOME"/.config/caja/scripts/MP4 to MP3"
chmod 755 $IHOME"/.config/caja/scripts/MP4 to MP3"
else
mkdir -p $IHOME"/.config/caja/scripts/"
cp "/usr/share/ultimate_edition/MP4 to MP3" $IHOME"/.config/caja/scripts/"
chown $IUSER:$IUSER $IHOME"/.config/caja/scripts/MP4 to MP3"
chmod 755 $IHOME"/.config/caja/scripts/MP4 to MP3"
fi
else
echo "Zenity, Caja or both are not installed. Not setting up scripts for Caja."
fi
if [[ -x "`which nautilus 2>/dev/null`" && -x "`which zenity 2>/dev/null`" ]]; then
echo "Installation of Nautilus & Zenity detected, setting up scripts for $IUSER."
if [ -x $IHOME"/.config/nautilus/scripts/" ]; then
cp "/usr/share/ultimate_edition/MP4 to MP3" $IHOME"/.config/nautilus/scripts/"
chown $IUSER:$IUSER $IHOME"/.config/nautilus/scripts/MP4 to MP3"
chmod 755 $IHOME"/.config/nautilus/scripts/MP4 to MP3"
else
mkdir -p $IHOME"/.config/nautilus/scripts/"
cp "/usr/share/ultimate_edition/MP4 to MP3" $IHOME"/.config/nautilus/scripts/"
chown $IUSER:$IUSER $IHOME"/.config/nautilus/scripts/MP4 to MP3"
chmod 755 $IHOME"/.config/nautilus/scripts/MP4 to MP3"
fi
else
echo "Zenity, Nautilus or both are not installed. Not setting up scripts for Nautilus."
fi
esac
exit 0;

Detects if you have nautilus installed or caja etc. and sets up appropriately, let's box it up and ship it:
theemahn@JackHammer:~/Music$ repostorm --build ultimate-edition-mp4tomp3-1.0.0_all
repostorm 1.7.3 is beginning initial build.
First build or no previous errors.

=======================================================
Beginning build of ultimate-edition-mp4tomp3-1.0.0_all
=======================================================

Relaxing permissions of ultimate-edition-mp4tomp3-1.0.0_all
[sudo] password for theemahn:
Cleaning up any tmp or backup files.
Setting individual file permissions to 644.
Scanning /etc to build conffiles.
Scanning for executables in ultimate-edition-mp4tomp3-1.0.0_all Stage 1.
ultimate-edition-mp4tomp3-1.0.0_all/bin/mp4tomp3
ultimate-edition-mp4tomp3-1.0.0_all/usr/share/ultimate_edition/MP4 to MP3
Scanning for executables in ultimate-edition-mp4tomp3-1.0.0_all Stage 2.
Calculating Installed size & inserting into control file if necessary.
ultimate-edition-mp4tomp3-1.0.0_all is 72. Control file reporting: 72
Size indicated in control file is correct.
Calculating MD5SUMS in ultimate-edition-mp4tomp3-1.0.0_all
Setting ownership to root in ultimate-edition-mp4tomp3-1.0.0_all
Setting individual folder permissions to 755.
Setting permissions rights for control etc.
Building of ultimate-edition-mp4tomp3-1.0.0_all
dpkg-deb: building package `ultimate-edition-mp4tomp3' in `ultimate-edition-mp4tomp3-1.0.0_all.deb'.
Lintian resulting package ultimate-edition-mp4tomp3-1.0.0_all.deb.
We have built a totally perfect deb.
Recursively removing ultimate-edition-mp4tomp3-1.0.0_all since we have a perfect deb.
Moving ultimate-edition-mp4tomp3-1.0.0_all.deb to .debs/


All in less then a days work. Enjoy, your feedback is appriciated.

TheeMahn
Attachments
ultimate-edition-mp4tomp3-1.0.0_all.deb
Enjoy!!!
(6.08 KiB) Downloaded 786 times
Home of Ultimate Edition. Got a question? Please review the F.A.Q. Browse the How to section.

Main O/S: Builder of O/S Guess.
Mainboard: ASUS Hero VI (AM4)
CPU: AMD 1700X water cooled (Deepcool Captain Genome Cooling tower)
Ram: 16 GB GSkill Trident RGB Series Dual Channel DDR4 3200
Video: MSI RX470 8GB Gaming card.
Hard Disks: MASSIVE on the network.(10 Gigabit, 48 port, multiple servers)
Monitors: Dual 4K 43" LG, 4K Samsung 28"
750 Watt modular PSU (Rosswell)
1100 Watt Amp & 4 X 600 Watt speakers

Servers in the basement.
User avatar
TheeMahn
Site Admin
 
Posts: 4201
Joined: Fri Oct 12, 2007 10:02 am
Location: U.S.A.
Age: 53
Operating System: Ultimate Edition Developer



Re: mp4 to mp3 converter

Postby ryanvade » Mon Nov 18, 2013 11:02 am

cool.

But I prefer
ffmpeg -i "name.mp4" -vn -ar 44100 -ac 2 -ab 192k -f mp3 "name.mp3"
Image

Laptop: HP dv6t-7000 CTO Desktop: Compaq Presario SR21632wm
i5 2450m Pentium D 960 @ 4 GHz
6 GB ram 2 GB ram
Intel HD 3000 Graphics / Nvidia GT 630M Nvidia GT 520 @ 820 MHz
Diamond II-B 3.10-rc4/Windows 7 Home Premium KDE | Windows 7 Starter/Arch Linux

Paid supporter of the Linux Foundation
User avatar
ryanvade
Moderator
 
Posts: 499
Joined: Sat Apr 28, 2012 10:54 am
Operating System: Other Linux



Re: mp4 to mp3 converter

Postby pam » Mon Nov 18, 2013 11:14 am

No Bugs.
mp4tomp3.png
DONOTSPAMORTROLL:
http://forumubuntusoftware.info/viewtopic.php?f=9&t=11
Download Ultimate Edition and Oz Unity 3.0 from copy:-
https://www.copy.com/s/oBnDBsDOvxF8jW1EuLKM/Public
Download Ultimate Edition from sourceforge:-
http://sourceforge.net/projects/ultimat ... rce=navbar
Download Oz Unity 3.0 from sourceforge:-
http://sourceforge.net/projects/ueoz/files/UEOz/
Download Ultimate Edition torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Download Oz Unity 3.0 torrents from linuxtracker:-
http://linuxtracker.org/index.php?page= ... 0&active=1
Image Image
Visit:http://www.ultimateeditionoz.com
User avatar
pam
Site Admin
 
Posts: 1087
Joined: Wed May 25, 2011 5:56 am
Location: India
Age: 38
Operating System: Ultimate Edition 3.5 64 BIT



Re: mp4 to mp3 converter

Postby TheeMahn » Mon Nov 18, 2013 10:20 pm

ryanvade wrote:cool.

But I prefer
ffmpeg -i "name.mp4" -vn -ar 44100 -ac 2 -ab 192k -f mp3 "name.mp3"


I don't know if you get the same thing:
theemahn@JackHammer:~/Downloads/mp4$ ffmpeg -i "16volt - Official Music Video - 'Burn'-CBZzx4QncDc.mp4" -vn -ar 44100 -ac 2 -ab 192k -f mp3 "16volt - Official Music Video - 'Burn'-CBZzx4QncDc.mp3"
ffmpeg version 0.8.9-6:0.8.9-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
built on Nov 9 2013 19:09:46 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.


It's in yellow as a warning
Home of Ultimate Edition. Got a question? Please review the F.A.Q. Browse the How to section.

Main O/S: Builder of O/S Guess.
Mainboard: ASUS Hero VI (AM4)
CPU: AMD 1700X water cooled (Deepcool Captain Genome Cooling tower)
Ram: 16 GB GSkill Trident RGB Series Dual Channel DDR4 3200
Video: MSI RX470 8GB Gaming card.
Hard Disks: MASSIVE on the network.(10 Gigabit, 48 port, multiple servers)
Monitors: Dual 4K 43" LG, 4K Samsung 28"
750 Watt modular PSU (Rosswell)
1100 Watt Amp & 4 X 600 Watt speakers

Servers in the basement.
User avatar
TheeMahn
Site Admin
 
Posts: 4201
Joined: Fri Oct 12, 2007 10:02 am
Location: U.S.A.
Age: 53
Operating System: Ultimate Edition Developer



Re: mp4 to mp3 converter

Postby ryanvade » Tue Nov 19, 2013 1:53 pm

TheeMahn wrote:
ryanvade wrote:cool.

But I prefer
ffmpeg -i "name.mp4" -vn -ar 44100 -ac 2 -ab 192k -f mp3 "name.mp3"


I don't know if you get the same thing:
theemahn@JackHammer:~/Downloads/mp4$ ffmpeg -i "16volt - Official Music Video - 'Burn'-CBZzx4QncDc.mp4" -vn -ar 44100 -ac 2 -ab 192k -f mp3 "16volt - Official Music Video - 'Burn'-CBZzx4QncDc.mp3"
ffmpeg version 0.8.9-6:0.8.9-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
built on Nov 9 2013 19:09:46 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.


It's in yellow as a warning


Just a warning that ffmpeg will be replaced with avconv... Hasn't happened yet though.
Image

Laptop: HP dv6t-7000 CTO Desktop: Compaq Presario SR21632wm
i5 2450m Pentium D 960 @ 4 GHz
6 GB ram 2 GB ram
Intel HD 3000 Graphics / Nvidia GT 630M Nvidia GT 520 @ 820 MHz
Diamond II-B 3.10-rc4/Windows 7 Home Premium KDE | Windows 7 Starter/Arch Linux

Paid supporter of the Linux Foundation
User avatar
ryanvade
Moderator
 
Posts: 499
Joined: Sat Apr 28, 2012 10:54 am
Operating System: Other Linux



Re: mp4 to mp3 converter

Postby TheeMahn » Wed Nov 20, 2013 10:44 am

ryanvade wrote:
TheeMahn wrote:
ryanvade wrote:cool.

But I prefer
ffmpeg -i "name.mp4" -vn -ar 44100 -ac 2 -ab 192k -f mp3 "name.mp3"


I don't know if you get the same thing:
theemahn@JackHammer:~/Downloads/mp4$ ffmpeg -i "16volt - Official Music Video - 'Burn'-CBZzx4QncDc.mp4" -vn -ar 44100 -ac 2 -ab 192k -f mp3 "16volt - Official Music Video - 'Burn'-CBZzx4QncDc.mp3"
ffmpeg version 0.8.9-6:0.8.9-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the Libav developers
built on Nov 9 2013 19:09:46 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.


It's in yellow as a warning


Just a warning that ffmpeg will be replaced with avconv... Hasn't happened yet though.


I hate it when they depriciate software... Fusion-Icon is dead, they are working on whacking Compiz with mir... Not on my watch:
fusiontray.png
Fusion-tray app in works ;)

Fusion-Icon is totally broken in Mate 1.6. I have not written any detection classes yet ie if /usr/bin/compiz create compiz menu-item. It does work right now. A bunch of programming ahead on this one, this will not be a one day project.

I would prefer the simplicity of bash for example Session detection in bash:
CURRENTSESSION=$(env | grep 'GDMSESSION' | cut -d"=" -f2)

Lets make it a little more complex:
CURRENTSESSION=$(env | grep 'GDMSESSION' | cut -d"=" -f2); if [[ $CURRENTSESSION ]]; then echo "SESSION DETECTED AS:" $CURRENTSESSION; else echo "You just got the Weenie :)"; fi

Flexability ;)
Python:
#!/usr/bin/env python
import os
try:
name = os.environ["GDMSESSION"]
print "Session properly detected as", name
except KeyError:
print "The shaft has been dropped. Session is not set in environment."
sys.exit(1)


that code has not even touched fusion-tray yet, never assume anything. It will make an ass out of u and me ;)
both pieces of code return the value of mate on my PC, what if the user is running KDE? I bet all the code I have written so far would more then double in just session detection, not getting into software detection, is Emerald installed on the end users PC?

The 2 definitions you see tword the top before the class will allow me to change the icon on the fly in the menu. So if emerald is engaged change the icon to a red gem etc. Python is much better then writing in C IMHO. C is my last choice in writing software, drivers or hardware programing then my first choice.
Home of Ultimate Edition. Got a question? Please review the F.A.Q. Browse the How to section.

Main O/S: Builder of O/S Guess.
Mainboard: ASUS Hero VI (AM4)
CPU: AMD 1700X water cooled (Deepcool Captain Genome Cooling tower)
Ram: 16 GB GSkill Trident RGB Series Dual Channel DDR4 3200
Video: MSI RX470 8GB Gaming card.
Hard Disks: MASSIVE on the network.(10 Gigabit, 48 port, multiple servers)
Monitors: Dual 4K 43" LG, 4K Samsung 28"
750 Watt modular PSU (Rosswell)
1100 Watt Amp & 4 X 600 Watt speakers

Servers in the basement.
User avatar
TheeMahn
Site Admin
 
Posts: 4201
Joined: Fri Oct 12, 2007 10:02 am
Location: U.S.A.
Age: 53
Operating System: Ultimate Edition Developer



Re: mp4 to mp3 converter

Postby TheeMahn » Thu Nov 21, 2013 2:41 am

Xxjoker21xX wrote:Cool being able to wright sofware for your needs One thing I would like to have in my OS's Is CPU control for Intel and AMD CPU's :downthere :idea:

For doing what? ACPI, Throttling and/or Overclocking?
Home of Ultimate Edition. Got a question? Please review the F.A.Q. Browse the How to section.

Main O/S: Builder of O/S Guess.
Mainboard: ASUS Hero VI (AM4)
CPU: AMD 1700X water cooled (Deepcool Captain Genome Cooling tower)
Ram: 16 GB GSkill Trident RGB Series Dual Channel DDR4 3200
Video: MSI RX470 8GB Gaming card.
Hard Disks: MASSIVE on the network.(10 Gigabit, 48 port, multiple servers)
Monitors: Dual 4K 43" LG, 4K Samsung 28"
750 Watt modular PSU (Rosswell)
1100 Watt Amp & 4 X 600 Watt speakers

Servers in the basement.
User avatar
TheeMahn
Site Admin
 
Posts: 4201
Joined: Fri Oct 12, 2007 10:02 am
Location: U.S.A.
Age: 53
Operating System: Ultimate Edition Developer



Re: mp4 to mp3 converter

Postby Zaileion » Sun Dec 08, 2013 1:55 pm

A CPU controller built into Ultimate Edition would be AWESOME!! Especially if it tied directly into the BIOS and settings could be saved. Some motherboards allow for dual bios setup (which provides an option during post). Overclocking feature would eliminate the repeated reboots, especially right at the end when you’re trying to get the voltages just right. the Asus rampage has a feature called ROG connect where there is a USB port on the back of the mobo for a laptop to be connected allowing for live overclocking from this remote laptop while the pc is running as normal . Problem is this feature only works if Windows is installed on both pc and laptop... :x

As far as Compiz.. I only wish I had programing skills. I am currently staying with Ultimate Edition 3.5.2 to keep the Compiz effects. There is no composite manager like it. I personally don’t want my phone, laptop, tablet, and TV to be identical. I want my PC to have way more options, and be far more advanced than my phone or TV. Phones are for quick access to many key features. Computers are to provide complete control over everything. Kind of like a "control center" or "base station" where all modifications and customizations can occur then pipe these features to your mobile devices and such. Am i the only one who thinks we could be so much further than we are right now? I’m just now starting to begin venturing into C++ and JAVA. It will be a long time before I have any such skills. As far as I can see there is only one direction to proceed, if considering a career in modern tech.

What theme do you have in post # 1?
Asus Rampage III Black Edition
Intel i7 Extreem X990
Corsair Dominator GT 12 GB RAM
LSI MEGARaid Controller 9271
2 Samsung 840 Pro SSD (RAID0)
ATI Radeon HD 6990
SoundBlaster X-FI Platinum Pro
Corsair 1200W Power Supply
Corsair Water Cooled CPU
Ultimate Edition 3.5.2 (LTS) / Windows 7 Ultimate
User avatar
Zaileion
U.E. Pro
U.E. Pro
 
Posts: 110
Joined: Sat Dec 10, 2011 11:59 pm
Location: Berlin, NJ, USA
Age: 45
Operating System: Ultimate Edition 3.2 64 BIT



Re: mp4 to mp3 converter

Postby BBOSAK2143 » Sun Dec 08, 2013 4:57 pm

Just keep pushin Zaileion you'll get there! Takes time to figure all this stuff. Lot of it what I did is simply read a bunch of files to see how they are written. Sure have been to school for a few years, but nothing beats hands on! Also for the Picasso of writing programs you are in the right place! TheeMahn is it! He writes some beautiful themes and I do my best to make some nice ones also. So far my nicest is Black Beauty III which is located at http://gnome-look.org/content/show.php/?content=161437. Just figured since you showed interest in a darker theme would link you to mine also so you can have your choice. Am sure TheeMahn will also do the same! Very awesome and brilliant TheeMahn is and always have the highest regard for him and everyone here! Stick with it here, is guaranteed you will learn many things, this forum is it!!!! Will always cheer anyone on getting into all this, love the ideas and all the progress, to me is the best thing to see!!!!
Firm believer in Asus, Linux and Technology
"Art is to be enjoyed by all that enjoy it"
Asus M5A97 Plus motherboard
AMD FX 4350 Processor
Asus R7250 2GD5 graphics card
16gig DDR3-1333
2TB Hitachi Hard Drive
24in Asus VE248 LED Monitor
OS=My 8th OS Star Trek(Ubuntu 16.04)
Desktops=Gnome 3.20 and LXDE
Warp Speed!
ASUS Laptop R503U
AMD E2-1800
ATI HD7340
4gig Memory
500gig Hitachi HD
OS= Win7 SP1/8th OS Star Trek(Ubuntu 16.04)
Desktops Gnome 3.20 and LXDE
2nd 500gig Seagate HD R.I.P
User avatar
BBOSAK2143
U.E. God
U.E. God
 
Posts: 923
Joined: Tue Jul 03, 2012 7:56 pm
Location: Mount Pleasant, Tennessee
Age: 61
Operating System: Ultimate Edition 3.5 64 BIT


Return to Programming

Who is online

Users browsing this forum: No registered users and 8 guests