FFmpeg-0.7.6 and xine-lib for Puppy 4.x

Audio editors, music players, video players, burning software, etc.
Message
Author
User avatar
shinobar
Posts: 2672
Joined: Thu 28 May 2009, 09:26
Location: Japan
Contact:

FFmpeg-0.7.6 and xine-lib for Puppy 4.x

#1 Post by shinobar »

FFmpeg-0.7.6(stable libav version) and codecs compiled on Puppy 4.3.1(JP)
Hopefully works on Puppy/Pupplets 4.x.
DO NOT install on recent 5.x. They already have recent ffmpeg pre-installed.
But there is FFmpeg-0.8.12 for Wary/Racy-5.3

upload: 24 July 2012
ffmpeg_runall-0.7.6-p4.pet
http://shino.pos.to/party/bridge.cgi?pu ... /opt/pets/

Configure option:

Code: Select all

export LIBRARY_PATH=$LD_LIBRARY_PATH
./configure --prefix=/usr --cpu=i486 --enable-shared --enable-gpl --enable-nonfree --enable-pic --enable-x11grab --enable-network --enable-small --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libfaac --enable-libfreetype --enable-libmp3lame --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-zlib --enable-postproc --disable-debug --enable-bzlib --enable-version3 --enable-libtheora --enable-swscale
(old version)
ffmpeg_runall-0.7.2-p4.pet (28 Dec 2011)
ffmpeg-runall-0.6-i686-p4.pet (20 Jul 2010)
If you are using Lupu version 511 and older, install ffmpeg1-0.6-Lucid and ffmpeg_dependencys-0.6-Lucid from the Lucid repository.
NOTE: it does not contain FFConvert.
WARNING: Installing this pet, primerly installed ffmpeg and libraries are overwritten. If you install and uninstall, your multimedia environment may corrupt.

If your Puppy have gxine and like to use it with the ffmpeg here, also install
xine-lib-1.1.19-p4.pet available at the same place above.
upload: 28 Oct 2010, install size: 15MB

Contents:
  • ffmpeg-0.6
  • faac-1.2.8
  • faad2-2.7
  • flac-1.2.1
  • lame-3.98.4
  • libao-1.0.0
  • libogg-1.2.0
  • libtheora-1.1.1
  • libvorvis-1.3.1
  • libvpx-0.9.1
  • opencore-amr-0.1.2
  • SDL-1.2.14
  • speex-1.2rc1
  • x264-snapshot-0100714-2245
  • xvidcore-1.2.2

Code: Select all

FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jul 15 2010 17:29:31 with gcc 4.2.2
  configuration: --prefix=/usr --cpu=i686 --enable-libmp3lame --enable-libx264 --enable-libfaac --enable-libfaad --enable-pthreads --enable-small --enable-postproc --enable-libvorbis --enable-gpl --enable-shared --enable-nonfree --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-debug --enable-bzlib --enable-zlib --enable-libspeex --enable-version3 --enable-runtime-cpudetect --enable-x11grab --enable-libtheora --enable-libxvid --enable-swscale --enable-mmx --enable-libvpx
DEVELOPMENT FILES:
ffmpeg-runall_DEV-0.6-i686-p4.pet at the same place.
If your devx files has '/usr/include/ffmpeg' directory, it is not of this DEV-PET. Rename '/usr/include/ffmpeg' to '/usr/include/ffmpeg.old' to compile with this ffmpeg.

xine-lib-1.1.19-p4-FULL.pet has xine-lib development files and NLS.
xine-lib-1.1.19 compile option:

Code: Select all

./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --host=i486-t2-linux-gnu --disable-rpath --with-gnu-ld --disable-dxr3 --disable-glu --disable-gnomevfs --with-x --without-xcb --with-external-ffmpeg --without-imagemagick --with-freetype --without-esound --without-jack --with-libflac --disable-altivec --disable-vis --disable-opengl --disable-aalib --disable-fb --enable-directfb --disable-oss --disable-mng --enable-mmap --with-sdl --with-external-libfaad
Last edited by shinobar on Tue 24 Jul 2012, 05:43, edited 18 times in total.
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:

#2 Post by abushcrafter »

It works :D! Including the WebM format. Which did not need loads of resources to play. I used this test WebM video: http://lachy.id.au/lib/media/elephantsd ... tereo.webm from: Custom controls WebM video. Thanks muchly.
[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
jemimah
Posts: 4307
Joined: Wed 26 Aug 2009, 19:56
Location: Tampa, FL
Contact:

#3 Post by jemimah »

Awesome. Thanks for this.

Is there a matching Ffmpeg_DEV pet?

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

#4 Post by abushcrafter »

Now what I could do with now is a full featured new build of Mplayer, eg. with multi core support and maybe a full featured new build of Xine too. Please.
[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
Iguleder
Posts: 2026
Joined: Tue 11 Aug 2009, 09:36
Location: Israel, somewhere in the beautiful desert
Contact:

#5 Post by Iguleder »

Got a very similar pack on my puplet. It's brilliant, I'd recommend this to any 4.x user. Plays FLV (x264), OGG, xVid ... it's awesome.
[url=http://dimakrasner.com/]My homepage[/url]
[url=https://github.com/dimkr]My GitHub profile[/url]

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

#6 Post by abushcrafter »

Arr :x! This ffmpeg does not know what vorbis is!

Code: Select all

# ffmpeg -i "/mnt/sda6/Media/Audio/Music/CD/Buyed/Riped/Drum & Bass/Pendulum/Hold Your Colour/02 - Slam - Pendulum.flac" -f ogg -acodec vorbis -aq 60 -vn -ac 2 ./
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jul 15 2010 17:29:31 with gcc 4.2.2
  configuration: --prefix=/usr --cpu=i686 --enable-libmp3lame --enable-libx264 --enable-libfaac --enable-libfaad --enable-pthreads --enable-small --enable-postproc --enable-libvorbis --enable-gpl --enable-shared --enable-nonfree --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-debug --enable-bzlib --enable-zlib --enable-libspeex --enable-version3 --enable-runtime-cpudetect --enable-x11grab --enable-libtheora --enable-libxvid --enable-swscale --enable-mmx --enable-libvpx
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.73. 2 / 52.73. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
Input #0, flac, from '/mnt/sda6/Media/Audio/Music/CD/Buyed/Riped/Drum & Bass/Pendulum/Hold Your Colour/02 - Slam - Pendulum.flac':
  Metadata:
    ALBUM           : Hold Your Colour
    ARTIST          : Pendulum
    COMMENT         : BonkEnc v1.0.9 <http://www.bonkenc.org/>
    DATE            : 2007
    GENRE           : Drum & Bass
    TITLE           : Slam
    TRACKNUMBER     : 2
  Duration: 00:05:46.97, bitrate: 1069 kb/s
    Stream #0.0: Audio: flac, 44100 Hz, 2 channels, s16
Unknown encoder 'vorbis'
# 
At least ffmpeg2theora works and it copys metadata across converted media files :D.
[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
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#7 Post by abushcrafter »

Update: Vorbis works if you use "libvorbis".
[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:

DEV files

#8 Post by shinobar »

Uploaded ffmpeg-runall_DEV-0.6-i686-p4.pet at the same place.

paulski
Posts: 130
Joined: Fri 06 Oct 2006, 15:30
Location: Cologne, Germany &/or Perth, Australia

#9 Post by paulski »

@ Shinobar
There is a lot of good work you have done to compile this and the other work you contribute to puppy.
I'd love to download this ffmpeg pet but I the link times out on me and I cannot download it. :/

Could you check to see if it is okay?
Perhaps someone else could offer to mirror this package?

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

#10 Post by abushcrafter »

paulski wrote:Perhaps someone else could offer to mirror this package?
Here: http://www.adrive.com/public/f106a12fe4 ... af73a.html URL dies in 14 days from now.
[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:

Dead link

#11 Post by shinobar »

Sorry and thank you paulski and abushcrafter. The link now fixed.

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

#12 Post by abushcrafter »

Some how the contents of this post did not get posted a few days after you posted the dev PET :?.

Dad helped me at looking at the source code from dev PET and he (Maybe we?) could not find any thing that stood out as being a problem, The problem being of needing to use "libvorbis" instead of "vorbis" for the audio codec parameter (Don't know if any other parameters that are affected by the same problem.). So when I have the time I intent lean some/more bash to write a simple wrapper script for FFmpeg which changes the audio codec parameter "vorbis" to "libvorbis".
[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
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

FFmpeg Wrapper

#13 Post by abushcrafter »

Here is the FFmpeg Wrapper script. It corrects the acodec "vorbis" parameter to "libvorbis". This is because older versions of FFmpeg used "vorbis" as the acodec parameter and in new version it was changed to "libvorbis". This way old pre-sets/scripts are still compatible with this version of FFmpeg.

To use, rename the "ffmpeg" binary to "fmpeg.bin" and save this script in "/usr/bin/" using the name "ffmpeg".
[EDIT: CODE DOES NOT WORK! SEE UPDATE.]

Code: Select all

#!/bin/sh

#Version=0.0.1
#Date (dd.mm.yyyy hh:mm:ss)=30.09.2010 23:20:36
#Thanks to the dad of Alexander .S.T. Ross (abushcrafter) (I got stuck again :).)

var=$(echo "$@" | sed 's/-acodec vorbis/-acodec libvorbis/g')
ffmpeg.bin "$var"
[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
abushcrafter
Posts: 1418
Joined: Fri 30 Oct 2009, 16:57
Location: England
Contact:

#14 Post by abushcrafter »

The new FFmpeg Wrapper that works!
[EDIT]The ffmpeg command now has the ".bin" bit added.
[Update]Now corrects "-vcodec xvid" to "-vcodec libxvid".

Code: Select all

#!/bin/sh

#FFmpeg Wrapper
#Version=0.0.5
#Date (dd.mm.yyyy hh:mm:ss)=08.10.2010 22:42:38
#Thanks to the dad (SSR) of Alexander .S.T. Ross (abushcrafter) (Again :).)

#ChangeLog ----------------------------------------------------------------------
#	 12.10.2010 Alexander .S.T. Ross (abushcrafter) Email: <http://www.google.com/recaptcha/mailhide/d?k=01uNeUuXxeNm9FA3Zciuoqzw==&c=nVfKeb7kjqZVVIQanqJwEC2DP5zrALkSERTopYvj_pU=>
#		* 0.0.5: Now corrects "-vcodec xvid" to "-vcodec libxvid". 


# Bash script to modify edit parameters in command line.
# Designed to cope with spaces in parameters .

prevparam="none"
count=1
args=("$@")

while [ $count -ne  $# ] ; do
if [ "$prevparam" = "-acodec" ] ; then
    args[$count]=$(echo ${args[$count]}| sed s/vorbis/libvorbis/g )
fi
if [ "$prevparam" = "-vcodec" ] ; then
    args[$count]=$(echo ${args[$count]}| sed s/xvid/libxvid/g )
fi
prevparam=${args[$count]}
#echo $count "  " ${args[$count]}  #Debugging: Comment out in final code.
count=$((count+1))
done
ffmpeg.bin "${args[@]}"

Last edited by abushcrafter on Tue 12 Oct 2010, 22:11, edited 3 times in total.
[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
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#15 Post by technosaurus »

the bitrate parameter has changed too - this causes some scripts to make really large or very poor quality output depending on the direction of the mismatch ... this should be somewhat stabilized since the 0.5.1 release ... anyone ever heard of a stable api?
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:

#16 Post by abushcrafter »

technosaurus wrote:the bitrate parameter has changed too - this causes some scripts to make really large or very poor quality output depending on the direction of the mismatch ... this should be somewhat stabilized since the 0.5.1 release ... anyone ever heard of a stable api?
Could you give a bit more info please.. because I can't see the difference. I compared the info from the "--help" parameter from the FFmpeg in puppy 4.3.1/ttuuxxx 4.3.2 v3 to the FFmpeg from this thread.
[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
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#17 Post by technosaurus »

in 2007 the ffmpeg bitrate flags (-b and -ab) were changed. They were kbits/sec, but are now bits/sec. Examples older than ~3 years or so will thus be way to low on current ffmpeg build, and newer examples will yield extremely large output on ffmpeg builds older than about 3 years.

Most people should have a newer version than this - so the large file size shouldn't be a problem, but if they google an old example it will sound like @$$ unless a "k" is added.

edit: maybe if the value is less than 999 or so and doesn't have a following b,k,m,etc...?
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:

#18 Post by abushcrafter »

Few :D, the version in Puppy Linux 4.3.0(Guessing.),4.3.1,4.3.2 v3 by ttuuxxx use this version:

Code: Select all

# ffmpeg -version
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --arch=i486 --enable-libmp3lame --enable-liba52 --enable-libfaac --enable-libfaad --enable-pthreads --enable-small --enable-libogg --enable-libvorbis --enable-gpl --enable-shared --enable-pp --disable-debug --prefix=/usr
  libavutil version: 49.5.0
  libavcodec version: 51.44.0
  libavformat version: 51.14.0
  built on Jul 12 2009 11:29:41, gcc: 4.2.2
FFmpeg SVN-rUNKNOWN
libavutil   3212544
libavcodec  3353600
libavformat 3345920
#
Which was after the change.
Thanks for you time.
[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
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#19 Post by edoc »

Still stuck trying get a avi conversion that will work in our daughter's weird Chinese mp4 player.

I am in dpup 009 at the moment and loaded ffconvert-1.0.pet and ffmpeg1-0-i686-Lucid.pet

The app refuses to recognize any video I load as source - just says no video or audio.

Did I make a mess using the Ludic codecs?

I read somewhere that the codecs cannot be backed-out of Puppy ... which seems a contradiction to one of the principles of Puppy ... everything can be changed.

What do I do now?

The dpup 009 save file is not important, I am just testing, if I delete that and reboot will that clean out the Lucid ffmpeg codecs in dpup and I can start clean?
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

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

#20 Post by abushcrafter »

I have made a new thread for FFmpeg Wrapper here: Puppy Linux Discussion Forum :: View topic - FFmpeg Wrapper 0.0.5.
[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/

Post Reply