FFConvert - multimedia converter

Audio editors, music players, video players, burning software, etc.
Post Reply
Message
Author
User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#91 Post by L18L »

Hi shinobar,

I had just downloaded wary090.
Nice idea to put de/LC_MESSAGES/ffconvert.mo
So I updated from doc/.../nls/...pot.

Regards
Attachments
ffconvert_de.tar.gz
/usr/share/locale/de/LC_MESSAGES/ffconvert.mo
/usr/share/doc/ffconvert/nls/ffconvert_de.po
(3.9 KiB) Downloaded 670 times

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#92 Post by Flash »

L18L, your explanation is too terse or cryptic. Would you please add some meat to it? Thanks. :)

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#93 Post by L18L »

Hi Flash,
terse or cryptic
you are absolutely right.
shinobar will understand it, but here is an explanation for you and all who are interested in localization.

I was testing the german translation and uploaded the recreated result.

wary090 contains /usr/bin/ffconvert which is internationalized.
The German translation file is
/usr/share/locale/de/LC_MESSAGES/ffconvert.mo (de for German).
It is ( besides japanese ) the only language file in wary090. shinobar will put it into the language-pack_de and then it will be wasting space in the main.sfs no more!

.mo stands for 'machine object' and can be created by the gettext utility msgfmt from the 'portable object' file
/usr/share/doc/ffconvert/nls/ffconvert_de.po
which is editable in geany (or in yudit for languages which write from right to left).

If you want to use the german ffconvert:
Desktop > Choose Locale Country Setup
choose de_DE
no need to restart X
You can launch ffconvert in German language from terminal:

Code: Select all

LANG=de_DE; ffconvert
You will see the GUI with some textes not translated and some ugly characters which are not german.
Now apply the new translation:

edit /usr/bin/ffconvert to:

Code: Select all

#!/bin/sh
# FFConvert - a frontend of ffmpeg
# 20 Jul 2010 by shinobar <shino@pos.to>
export OUTPUT_CHARSET=UTF-8
VERSION="1.0"
copy the new translation ffconvert.mo to
/usr/share/locale/de/LC_MESSAGES
and relaunch

Code: Select all

LANG=de_DE; ffconvert
Now everything is allright.
'export OUTPUT_CHARSET=UTF-8' is nort really a bug and shinobar will correct it, I am sure about this :D

You can launch ffconvert in English by

Code: Select all

LANG=en_US; ffconvert
If you like to produce a translation to another language feel free to do so!
Hope that helps
Cheers

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Development ffconvert

#94 Post by shinobar »

L18L wrote:'export OUTPUT_CHARSET=UTF-8' is nort really a bug and shinobar will correct it, I am sure about this :D
I was almost forgetting it. Thanks.

I am planning the next release, but time goes by... :lol:

Attached a development version.
It is not PET because it is not official release. Use who knows how to use.
It does not contain full components. Only the script and the launcher(.desktop file).
Use with ffconvert-1.0.
The development version can launch with the launcher or clicking the script.
Or type 'ffconvert-1.1' from the virtual terminal.
Attachments
ffconvert-1.1.tar.gz
Recomended with ffconvert-1.0 installed
(9.95 KiB) Downloaded 677 times
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
L18L
Posts: 3479
Joined: Sat 19 Jun 2010, 18:56
Location: www.eussenheim.de/

#95 Post by L18L »

Just tried to convert 2barks.au to mp3 mono (wary090)

Code: Select all

# LANG=de_DE@euro;ffconvert-1.1
output:

Code: Select all

/usr/bin/ffconvert-1.1: line 130: 31775 Terminated              gtkdialog3 -p DIALOG >/dev/null

(gtkdialog3:1858): GLib-GObject-WARNING **: gsignal.c:3079: signal name `depressed' is invalid for instance `0x8532258'
/usr/bin/ffconvert-1.1: line 774: 31783 Terminated              gtkdialog3 -p DIALOG >/dev/null
[1]+  Terminated              gtkdialog3 -p DIALOG >$REPFILE
#
result sounds good in Pmusic :D
no sound in mplayer :cry:
May others
who knows how to use
do more testing.

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

#96 Post by shinobar »

Code: Select all

# LANG=de_DE@euro;ffconvert-1.1
output:

Code: Select all

/usr/bin/ffconvert-1.1: line 130: 31775 Terminated              gtkdialog3 -p DIALOG >/dev/null

(gtkdialog3:1858): GLib-GObject-WARNING **: gsignal.c:3079: signal name `depressed' is invalid for instance `0x8532258'
/usr/bin/ffconvert-1.1: line 774: 31783 Terminated              gtkdialog3 -p DIALOG >/dev/null
[1]+  Terminated              gtkdialog3 -p DIALOG >$REPFILE
#
Thanks for testing.
The output on the terminal is nomal.
The GLib-GObject-WARNING can be seen with Lucid Puppy(LupQ/Lupu). Suspect the gtkdialog3 bug or compiled under different environment.

Changes of 1.1

Code: Select all

# 28 Jul 2010 check ffmpeg suports for each codec, crop and zoom, libvovis instead of ovis
# 10 Oct 2010 progress bar, allow both 'orvis' or 'liborvis' as the codec name
Known problem: Canceling the job.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#97 Post by abushcrafter »

shinobar wrote:Changes of 1.1

Code: Select all

# 28 Jul 2010 check ffmpeg suports for each codec, crop and zoom, libvovis instead of ovis
# 10 Oct 2010 progress bar, allow both 'orvis' or 'liborvis' as the codec name
Known problem: Canceling the job.
To remain compatible with older versions of FFmpeg in older puppy's, what about this script: http://www.murga-linux.com/puppy/viewto ... 967#456967.
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

backward conpatible

#98 Post by shinobar »

abushcrafter wrote:To remain compatible with older versions of FFmpeg in older puppy's, what about this script: http://www.murga-linux.com/puppy/viewto ... 967#456967.
Tnx. The wrapper is great.

FFconvert-1.1 itself also has the code:

Code: Select all

# 10 Oct 2010 progress bar, allow both 'orvis' or 'liborvis' as the codec name
Also xvid and can be another have same situation.

Code: Select all

    VCODEC=$(echo "$VCODECS" | grep -w "$VCODEC1")
    if [ "$VCODEC" = "" ] ; then
      case $VCODEC1 in
        lib*) VCODEC=$(echo $VCODEC1| sed -e 's/^lib//') ;;
        *) VCODEC="lib$VCODEC1";;
      esac
      VCODEC=$(echo "$VCODECS" | grep -w "$VCODEC")
    fi
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#99 Post by technosaurus »

I added your development version of ffconvert to my bashbox script - it went fairly smoothly. (I am trying to consolidate as many functions as possible into a single script to ease development) Once we get everything together we can probably do some significant code reduction through code reuse (another bonus would be a unified look and feel).

Let me know what you think....or any other goodies you'd like to see added.

bashbox thread
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

Re: backward conpatible

#100 Post by abushcrafter »

shinobar wrote:
abushcrafter wrote:To remain compatible with older versions of FFmpeg in older puppy's, what about this script: http://www.murga-linux.com/puppy/viewto ... 967#456967.
Tnx. The wrapper is great.

FFconvert-1.1 itself also has the code:

Code: Select all

# 10 Oct 2010 progress bar, allow both 'orvis' or 'liborvis' as the codec name
Also xvid and can be another have same situation.

Code: Select all

    VCODEC=$(echo "$VCODECS" | grep -w "$VCODEC1")
    if [ "$VCODEC" = "" ] ; then
      case $VCODEC1 in
        lib*) VCODEC=$(echo $VCODEC1| sed -e 's/^lib//') ;;
        *) VCODEC="lib$VCODEC1";;
      esac
      VCODEC=$(echo "$VCODECS" | grep -w "$VCODEC")
    fi
Oh/arrr. So what does "progress bar" mean in the change log? Thanks for pointing out xvid. Will add that to the script.
[url=http://www.adobe.com/flashplatform/]adobe flash is rubbish![/url]
My Quote:"Humans are stupid, though some are clever but stupid." http://www.dependent.de/media/audio/mp3/System_Syn_Heres_to_You.zip http://www.systemsyn.com/

mama21mama

#101 Post by mama21mama »

:shock:
Attachments
ffconvert_es.tar.gz
/usr/share/locale/es/LC_MESSAGES/ffconvert.mo
/usr/share/doc/ffconvert/nls/ffconvert_es.po

md5sum: d255cdf1565ed2240e0c19d56ad782f1
(3.97 KiB) Downloaded 596 times

GaRailroader
Posts: 33
Joined: Thu 17 Jun 2010, 01:14
Location: Atlanta, GA

ffmpeg

#102 Post by GaRailroader »

FFConvert works beautifully on my Fluppy 10 installation to convert a flac file to MP3. On the same machine when I try to do the same task using ffmpeg I get an error for unknown encoder libmp3lame. What would the ffmpeg command look like that FFConvert is creating? Any help is greatly appreciated.

Pat

User avatar
trapster
Posts: 2117
Joined: Mon 28 Nov 2005, 23:14
Location: Maine, USA
Contact:

#103 Post by trapster »

Try mp3lame instead of libmp3lame
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Slacko
Currently using full install: DebianDog

GaRailroader
Posts: 33
Joined: Thu 17 Jun 2010, 01:14
Location: Atlanta, GA

#104 Post by GaRailroader »

Try mp3lame instead of libmp3lame
I tried that and got the same message.

Pat

User avatar
ravensrest
Posts: 365
Joined: Fri 22 Feb 2008, 16:43
Location: Grants Pass, Oregon

#105 Post by ravensrest »

I reported this in the Wary 5.0-final bug report, but that appears to be the wrong spot, so I'll retry here in the hopes someone can answer.

I can't seem to get FFConvert multimedia converter in Wary 5.0 to produce playable files. If I try to select and convert any ogg file (say Magic-Pilot.ogg) to an mp3 file using ffconvert, a file approximately 2.4 meg long is produced, but it lasts only a few milliseconds and is not recognizable. The command line produced by ffconvert is:

Code: Select all

ffmpeg -i "/data/music/1970s/Magic-Pilot.ogg" -y -f mp3  -acodec libvorbis -ab 128k    "/data/Magic-Pilot.mp3"
If I just convert using ffmpeg directly using either of these two statements from the command line:

Code: Select all

ffmpeg -i "/data/music/1970s/Magic-Pilot.ogg" -ab 128k "/data/magicpilot.mp3"
ffmpeg -i /data/music/1970s/Magic-Pilot.ogg -ab 128k /data/magicpilot.mp3
a 2.7 meg mp3 file is produced that plays correctly in any mp3 player I have tried.

What is wrong?

GaRailroader
Posts: 33
Joined: Thu 17 Jun 2010, 01:14
Location: Atlanta, GA

#106 Post by GaRailroader »

can't seem to get FFConvert multimedia converter in Wary 5.0 to produce playable files. If I try to select and convert any ogg file (say Magic-Pilot.ogg) to an mp3 file using ffconvert, a file approximately 2.4 meg long is produced, but it lasts only a few milliseconds and is not recognizable. The command line produced by ffconvert is:
ravensrest: Sorry I am no help with your problem. How are you able to determine what the command line that ffconvert generates is?

Pat

User avatar
ravensrest
Posts: 365
Joined: Fri 22 Feb 2008, 16:43
Location: Grants Pass, Oregon

#107 Post by ravensrest »

GaRailroader, there are two ways I know of to see the command FFConvert generates. First, while it is converting it creates a file "ffconvert..*.sh" in the /tmp/directory. Open this as a text file to see the command line. Second, if you run ffconvert in a terminal it will print the command to the terminal.
BS

User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

Converting ogg to mp3

#108 Post by shinobar »

ravensrest wrote:I can't seem to get FFConvert multimedia converter in Wary 5.0 to produce playable files. If I try to select and convert any ogg file (say Magic-Pilot.ogg) to an mp3 file using ffconvert, a file approximately 2.4 meg long is produced, but it lasts only a few milliseconds and is not recognizable. The command line produced by ffconvert is:

Code: Select all

ffmpeg -i "/data/music/1970s/Magic-Pilot.ogg" -y -f mp3  -acodec libvorbis -ab 128k    "/data/Magic-Pilot.mp3"
Have you loaded the preset for 'MP3 Audio'?
Or, select 'libmp3lame' for the audio codec.
Downloads for Puppy Linux [url]http://shino.pos.to/linux/downloads.html[/url]

User avatar
ravensrest
Posts: 365
Joined: Fri 22 Feb 2008, 16:43
Location: Grants Pass, Oregon

#109 Post by ravensrest »

Shinobar, selecting the libmp3lame codec produces a usable mp3 file. Thanks, but why wouldn't one choose the vorbis codec when handling ogg files.
BS

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#110 Post by ASRI éducation »

French localisation : mo & po files.
If a French speaker has time to check...
:wink:

Post Reply