Page 2 of 13

theora

Posted: Thu 06 May 2010, 09:01
by soliver
Hello abushcrafter

I'm using puppy 4.12, so don't know if real-media is working properly in 4.31. What I can say is, when you make xinelib 1.28 in 4.12 you'll get a crappy sound with low bitrates (test an the url above).

If you want theora, you'll have to download and compile the source from the website http://theora.org/downloads/ with the dependencies (libogg, libvorbis and SDL). Now you can make the xinelib and/or ffmpeg with theora. That's what I did and it's working. I'm using ucview for my webcam and saving the vids with theora. Most of the time no problems :) , sometimes it's hanging :?

Greets

Re: theora

Posted: Thu 06 May 2010, 18:24
by abushcrafter
soliver wrote:Hello abushcrafter

I'm using puppy 4.12, so don't know if real-media is working properly in 4.31. What I can say is, when you make xinelib 1.28 in 4.12 you'll get a crappy sound with low bitrates (test an the url above).

If you want theora, you'll have to download and compile the source from the website http://theora.org/downloads/ with the dependencies (libogg, libvorbis and SDL). Now you can make the xinelib and/or ffmpeg with theora. That's what I did and it's working. I'm using ucview for my webcam and saving the vids with theora. Most of the time no problems :) , sometimes it's hanging :?

Greets
I already have those libs. I guess I will have to compile xine or ffmpeg. Which version should I go for?

Posted: Fri 07 May 2010, 07:59
by soliver
Hi abushcrafter
I already have those libs. I guess I will have to compile xine or ffmpeg. Which version should I go for?
I think I'm not the one to tell you that, because of a "rookie-status". I'll try to explain what I did and hope it helps you, but be careful :roll:

I took ffmpeg source 0.5.1 and xinelib 1.28. Have some extras like new lame, speex, mad, musepack, wavpack, sndfile, replaygain... and then compiled it. Sounds easy, but wasn't. If you only need theora and you have compiled the libs, just try

ffmpeg:
use the one from shinobar

and

xinelib:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-t2-linux-gnu --enable-ipv6 --disable-gnomevfs --disable-samba --enable-modplug --enable-antialiasing --with-sdl --with-wavpack --with-vorbis --with-theora --with-external-ffmpeg --with-freetype --with-fontconfig

(as a part of my ./configure lines)
Now xine/gxine can play theora and ffmpeg from shinobar can convert it / play it with ffplay.

Greets

Posted: Fri 07 May 2010, 10:58
by abushcrafter
soliver wrote:Hi abushcrafter
I already have those libs. I guess I will have to compile xine or ffmpeg. Which version should I go for?
I think I'm not the one to tell you that, because of a "rookie-status". I'll try to explain what I did and hope it helps you, but be careful :roll:

I took ffmpeg source 0.5.1 and xinelib 1.28. Have some extras like new lame, speex, mad, musepack, wavpack, sndfile, replaygain... and then compiled it. Sounds easy, but wasn't. If you only need theora and you have compiled the libs, just try

ffmpeg:
use the one from shinobar

and

xinelib:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-t2-linux-gnu --enable-ipv6 --disable-gnomevfs --disable-samba --enable-modplug --enable-antialiasing --with-sdl --with-wavpack --with-vorbis --with-theora --with-external-ffmpeg --with-freetype --with-fontconfig

(as a part of my ./configure lines)
Now xine/gxine can play theora and ffmpeg from shinobar can convert it / play it with ffplay.

Greets
Thank you. I will give that a go when I have the time.

Posted: Tue 11 May 2010, 04:23
by Flash
soliver wrote:
Flash wrote:
I'm trying out Quirky 021, which comes with FFConvert in the Multimedia section. I'd like to use FFConvert to change the resolution of mp3 files from 192 kbps (or whatever) stereo, to 32 kbps mono, but I can't see any way to do it.
Just go to the preset MP3 (mono), choose your file and output directory and type 32 in the bitrate:(kbps) area.
It won't work. Here are the FFConvert settings I used, and the result. :(

Also, I can't see any way to tell FFConvert to convert the whole CD full of mp3 files. It only allows me to do them one at a time, which will take forever as there can be several hundred mp3 files on a mp3 book CD.

convert directory

Posted: Wed 12 May 2010, 18:39
by dweez
Hello Flash

to convert whole directory try this:

- go to directory and open terminal
- type/paste
for f in *.mp3;do ffmpeg -i "$f" -y -f mp3 -acodec libmp3lame -ab 32k -ac 1 -ar 22050 /root/My-Music/"$f";done
- wait :roll:

You can change the output directory and/or the input filetype.
Can someone integrate this in ffconvert?

Hope this works

Posted: Wed 12 May 2010, 20:12
by Flash
Thanks, dweez. I'll try it tonight, I hope. :)

Posted: Tue 18 May 2010, 04:12
by Flash
It didn't work. :(

It almost did. (In Quirky 1.0) I created a directory in /tmp called Dallas,/Whiter to hold the converted mp3 files, mounted the mp3 CD, opened a terminal in the CD directory, pasted the code as you see it below, and here's the error it gave:

Code: Select all

# for f in *.mp3;do ffmpeg -i "$f" -y -f mp3 -acodec libmp3lame -ab 32k -ac 1 -ar 22050 /tmp/Dallas,/Whiter/"$f";done
ffmpeg: symbol lookup error: /usr/lib/libavcodec.so.52: undefined symbol: speex_header_free

converting directory

Posted: Wed 19 May 2010, 17:36
by soliver
Hi ho flash

For ME it seems that it is a problem of your/shinobars ffmpeg. Like you see (picture) it works well. I mounted a stick instead a cd, named the directory and copied the code....
Two differences : a) another puppy version (think don't matter) b) I have ffmpeg latest stable (because of the x264) compiled by myself with all dependencies (like new liblame). It looks that ffmepg isn't compiled against your liblame and others so it won't work.
Sorry for that, but seems you'll have to compile it yourself with all the dependencies. Don't know what other people think but the code is working well.

Greets
and
take care

ffmpeg/ffconvert update

Posted: Thu 20 May 2010, 07:40
by shinobar
Hi flash and to all,
if you installed my ffmpeg of the large pet, try to upgrade:
ffmpeg-20100408-0.7.pet, which contains libspeex.

ffconvert also updated to version 0.7, with small bugfix.

ffmpeg/ffconvert update

Posted: Thu 20 May 2010, 07:41
by shinobar
The large pet ffmpeg-20100408-0.7.pet, which contains libspeex.
The small pet ffconvert-0.7.pet, with small bugfix.
Both available from the top of this topic.

Re: ffmpeg/ffconvert update

Posted: Fri 21 May 2010, 01:34
by BarryK
shinobar wrote:The large pet ffmpeg-20100408-0.7.pet, which contains libspeex.
The small pet ffconvert-0.7.pet, with small bugfix.
Both available from the top of this topic.
Hi, you have uploaded the 'ffconvert-0.7' directory, not the .pet.

Re: ffmpeg/ffconvert update

Posted: Fri 21 May 2010, 14:32
by shinobar
BarryK wrote:[Hi, you have uploaded the 'ffconvert-0.7' directory, not the .pet.
Thanks Barry. Uploaded the pet now.

Re: convert directory

Posted: Mon 24 May 2010, 03:06
by Flash
dweez wrote:Hello Flash

to convert whole directory try this:

- go to directory and open terminal
- type/paste

Code: Select all

for f in *.mp3;do ffmpeg -i "$f" -y -f mp3  -acodec libmp3lame -ab 32k -ac 1 -ar 22050   /root/My-Music/"$f";done
After installing shinobar's big ffmpeg-0.7.pet, this did the job. The only hitch, which had no effect on the result, was that when it ran out of mp3 files to convert, it gave this confusing error:
Input #0, mp3, from '153END.mp3':
Metadata:
TIT2 : 153 The End - Pearl of China
TPE1 : Recorded Books
Duration: 00:00:00.00, start: 0.000000, bitrate: -2147483 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
Output #0, mp3, to '/mnt/sdf1/Mp3_books/Min,/Pearl/153END.mp3':
Metadata:
TSSE : Lavf52.61.0
Stream #0.0: Audio: libmp3lame, 22050 Hz, 1 channels, s16, 32 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[libmp3lame @ 0x809f460]lame: output buffer too small (buffer index: 9508, free bytes: 284)
Audio encoding failed

#

Posted: Mon 24 May 2010, 03:32
by Flash
GNOME MPlayer started working in Quirky 100 after I installed shinobar's big ffmpeg-0.7.pet. :D

Convert whole directory

Posted: Tue 01 Jun 2010, 12:16
by shinobar
Thanks Flash and to all:

FFconvert-0.8 can now convert all files in the same directory with one operation.
Try the new version.

Posted: Tue 01 Jun 2010, 20:38
by abushcrafter
Bug: FFConvert can't cope with files with spaces in their paths.

Posted: Wed 02 Jun 2010, 03:35
by Flash
What ambushcrafter said, and it is a real pain in the you-know-what.

Haven't I seen a program somewhere in Puppy that changes spaces to _underlines_ and back again?

file names with spaces

Posted: Wed 02 Jun 2010, 13:47
by shinobar
Updated FFconvert to v.0.9 which can handle paths with spaces.
Thanks abushcrafter and flash.

Posted: Wed 02 Jun 2010, 15:40
by Flash
Thanks a bunch. :D I'll try it as soon as I can.