FFConvert - multimedia converter
ffmpeg/ffconvert update
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.
The small pet ffconvert-0.7.pet, with small bugfix.
Both available from the top of this topic.
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
Re: ffmpeg/ffconvert update
Hi, you have uploaded the 'ffconvert-0.7' directory, not the .pet.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.
[url]https://bkhome.org/news/[/url]
Re: ffmpeg/ffconvert update
Thanks Barry. Uploaded the pet now.BarryK wrote:[Hi, you have uploaded the 'ffconvert-0.7' directory, not the .pet.
Re: convert directory
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:dweez wrote:Hello Flash
to convert whole directory try this:
- go to directory and open terminal
- type/pasteCode: 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
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
#
Convert whole directory
Thanks Flash and to all:
FFconvert-0.8 can now convert all files in the same directory with one operation.
Try the new version.
FFconvert-0.8 can now convert all files in the same directory with one operation.
Try the new version.
- abushcrafter
- Posts: 1418
- Joined: Fri 30 Oct 2009, 16:57
- Location: England
- Contact:
file names with spaces
Updated FFconvert to v.0.9 which can handle paths with spaces.
Thanks abushcrafter and flash.
Thanks abushcrafter and flash.
Okay, I gave it a try tonight.
I wanted to reduce the size of the files on an mp3 CD audio book, from 92 Kbps stereo to 32 kbps mono, so they would fit on my mp3 player. My first try, I missed the preload option in FFConvert. The minimum bitrate FFConvert would allow was 64 kbps, so that's what I chose for the test.
FFconvert didn't have any problem with spaces in the directory names, but it failed to convert the files to mono or to 64 kbps. I'm pretty sure I set up the GUI correctly, but maybe not.
When that didn't work, I took another look at the GUI and discovered the preload section had an mp3 32 kbps mono option. This also had no problem with spaces in the directories, but it skipped converting three of the 91 mp3 files on the CD. All three files play in Gxine from the CD, but when I tell FFConvert to convert them, it says there is no video or audio stream to convert.
The audio quality of the converted 32 kbps mp3 files is perfectly adequate for my purpose. They sometimes sound slightly rough, like someone speaking through a fan, but if the book is good I get into it and I don't notice the roughness.
I wanted to reduce the size of the files on an mp3 CD audio book, from 92 Kbps stereo to 32 kbps mono, so they would fit on my mp3 player. My first try, I missed the preload option in FFConvert. The minimum bitrate FFConvert would allow was 64 kbps, so that's what I chose for the test.
FFconvert didn't have any problem with spaces in the directory names, but it failed to convert the files to mono or to 64 kbps. I'm pretty sure I set up the GUI correctly, but maybe not.
When that didn't work, I took another look at the GUI and discovered the preload section had an mp3 32 kbps mono option. This also had no problem with spaces in the directories, but it skipped converting three of the 91 mp3 files on the CD. All three files play in Gxine from the CD, but when I tell FFConvert to convert them, it says there is no video or audio stream to convert.
The audio quality of the converted 32 kbps mp3 files is perfectly adequate for my purpose. They sometimes sound slightly rough, like someone speaking through a fan, but if the book is good I get into it and I don't notice the roughness.
Link corrected
Sorry, the link corrected.
- abushcrafter
- Posts: 1418
- Joined: Fri 30 Oct 2009, 16:57
- Location: England
- Contact:
For the OGG preset your need to change the file format parameter to "ogg" from "OGG".
[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/
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/
case of ogg
I have no problem with "ogg" in lower case, using the large pet.abushcrafter wrote:For the OGG preset your need to change the file format parameter to "ogg" from "OGG".
what version of ffmpeg you use?
- abushcrafter
- Posts: 1418
- Joined: Fri 30 Oct 2009, 16:57
- Location: England
- Contact:
Case of ogg
Strange.abushcrafter wrote:Your version.
Will you paste the error log?
- abushcrafter
- Posts: 1418
- Joined: Fri 30 Oct 2009, 16:57
- Location: England
- Contact:
Code: Select all
#!/bin/sh
ffmpeg -i "/mnt/sda6/Media/Audio/tmp/01-AllSaints-NeverEver.bak.flac" -y -f OGG -acodec vorbis -ac 2 -aq 60 "/mnt/sda6/Media/Audio/tmp/01-AllSaints-NeverEver.OGG"
STATUS=$?
echo -n $STATUS > "/tmp/ffconvert_01-AllSaints-NeverEver.tmp"
[ "$STATUS" = "0" ] && exit
echo -n Press [ENTER] to exit :
read REP
[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/
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/
Re: case of ogg
abushcrafter wrote:Code: Select all
#!/bin/sh ffmpeg -i "/mnt/sda6/Media/Audio/tmp/01-AllSaints-NeverEver.bak.flac" -y -f OGG -acodec vorbis -ac 2 -aq 60 "/mnt/sda6/Media/Audio/tmp/01-AllSaints-NeverEver.OGG"[/quote] As for the preset value in the large pet, ffmpeg-20100408-0.9.pet contains /usr/shar/ffconvert/OGG_theora_vorvis, and it uses lower case 'ogg', not 'OGG'. -f ogg -vcodec libtheora -b 1000k -acodec vorbis -ab 128k
- abushcrafter
- Posts: 1418
- Joined: Fri 30 Oct 2009, 16:57
- Location: England
- Contact:
I tried again on a clean pupsave of my very customised Puppy Linux 4.3.2 version3. This time I used the "OGG theora vorbis" preset and that also failed.
Here is the SHA1 checksum of the ffmpeg20100408-0.9.pet I am using: eb063a38ebfc9f2667157423e9b15d3fa0a4fd71
An other problem is ffconvert still can't cope with paths with spaces. A feature I would love/badly need is for metadata to be copied across between converted files. FFmpeg has this option: But I can't get it to work at all. I have tried it with flac to ogg, flac to acc (yuck) flac to mp3 (yuck) with all possible methods I can think of and it still refuses to do its job . So the only way I can think to do it, Is by using the option to add the metadata with the "-y" option to get the meta data. Here is how far I have got with writing a script to do it: The version of FFmpeg that Puppy came with before the 5 series does not have the "-metadata" option. So I used the right options for that version. Hence the "if" statement.
Code: Select all
#!/bin/sh
ffmpeg -i "/mnt/sda6/Media/Audio/tmp/01-AllSaints-NeverEver.bak.flac" -y -f OGG -acodec vorbis -ac 2 -aq 60 "/root/01-AllSaints-NeverEver.OGG"
STATUS=$?
echo -n $STATUS > "/tmp/ffconvert_01-AllSaints-NeverEver.tmp"
[ "$STATUS" = "0" ] && exit
echo -n Press [ENTER] to exit :
read REP
An other problem is ffconvert still can't cope with paths with spaces. A feature I would love/badly need is for metadata to be copied across between converted files. FFmpeg has this option:
Code: Select all
-map_meta_data outfile:infile set meta data information of outfile from infile
Code: Select all
-metadata string=string add metadata
Code: Select all
#!/bin/sh
ffmpeg -i ""
tracknumber=
artist=
album=
title=
genre=
date=
copyright=
comment=
if ffmpeg -v = then
ffmpeg -metadata timestamp="$date" artist="$artist" copyright="$copyright" comment="$comment" album="$album" title="$title" year="" genre="$genre" track="$tracknumber" -i "$in" -acodec copy -vcodec copy "$out"
else
# -year ?
ffmpeg -title "$title" -timestamp "$date" -author "$artist" -copyright "$copyright" -comment "$comment" -album "$album" -track "$tracknumber" -year "" -i "$in" -acodec copy -vcodec copy "$out"
[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/
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/