Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 26 Nov 2014, 11:07
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
ffmpeg-svn-r7400
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Mon 09 Oct 2006, 14:21    Post_subject:  ffmpeg-svn-r7400
Sub_title: updated April 3rd 2007
 

I compiled a new ffmpeg with these options:

--prefix=/usr --libdir=/usr/lib --mandir=/usr/man --disable-debug --enable-mp3lame --enable-a52 --enable-gpl --enable-shared --enable-pp --enable-amr_nb --enable-amr_nb-fixed --enable-amr_wb --enable-pthreads --enable-dts --enable-faac --enable-faad --enable-libogg --disable-audio-beos

I used the source code that I posted over in this thread:

http://www.murga-linux.com/puppy/viewtopic.php?search_id=1410126898&t=14213

which is the svn source from Janruary 2nd 2007. I compiled the svn from today and a day last week but both versions seem to be corrupt. They wouldn't allow me to use any specified audio bitrates with the -ab parameter (tried mp3, mp2, and ac3). It would just default to the worst possible quality for some reason. I'll have to submit a bug to the ffmpeg guys. The package extracted is 6.47 mb's.

You will need libfaac:
http://www.murga-linux.com/puppy/viewtopic.php?t=16947

You will need libfaad:
http://www.murga-linux.com/puppy/viewtopic.php?t=16948

You will need libdts:
http://www.murga-linux.com/puppy/viewtopic.php?t=16946

Here's the link to the ffmpeg package:
http://puppyfiles.org/dotpupsde/dotpups/Multimedia/ffmpeg-svn-r7400/ffmpeg-svn-r7400.pet

I included the following binary executables:

ffmpeg
ffplay
ffserver

Edited_times_total
Back to top
View user's profile Send_private_message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Mon 30 Oct 2006, 19:36    Post_subject: AAC support  

Im trying to convert some videos for my website to flash video (.FLV) format from 3gp taken with my phone, what would I have to add to this to enable it to be done?

I found this post but dont understand most of it (Im new to this)

http://flixforums.com/archive/index.php/t-240.html

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send_private_message Visit_website MSNM 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Mon 30 Oct 2006, 20:54    Post_subject:  

I haven't used either of those formats but if ffmpeg supports them you could type ffmpeg -i whatever.3gp whatever.flv
Back to top
View user's profile Send_private_message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Mon 30 Oct 2006, 21:39    Post_subject: Hi  

Have tried this, and while the video converted ok, the sound was absent (I have tried converting between other formats with a lot of success though). I have the idea that mplayer and ffmpeg are somehow linked? I cant hear any sound in mplayer (or gxine) even on other videos I have downloaded from the web.

I know the sound is on the 3gp because I have been uploading samples of it from my phone to video sharing sites (such as youtube, eyespot etc) and I can hear the sound on there.

Apparently 3gp uses some strange audio format? Heres a link to the open source player I want to use on my site, and it describes something to do with the audio.

btw plinej, I have been admiring your program for creating dvd's. ffmpeg is the only free tool I have come across for converting video on windows or Linux (google for "convert flash video" you will see what I mean!, and seems amazingly powerful if you have an understanding of the various codecs and formats. It would be great to have an open source graphical converter that would simply take in some parameters and convert the video. With the explosion of web 2.0 and videophones then I am sure that it would be an extremely popular addition to open source. could your converter be extended?

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send_private_message Visit_website MSNM 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Tue 31 Oct 2006, 05:04    Post_subject:  

Yeah, I have thought about adding more in Pupdvdtool but just have been sidetracked with some other projects lately. Once I look at that program again I'll probably want to re-write some of it since I've been learning quite a bit lately. I'm thinking adding on to the ffmpeg gui is a good idea but I've got to do some studying up on these formats since I don't use them. I see on the link you provided the page says to compile ffmpeg with these options:

./configure --enable-amr_nb --enable-amr_nb-fixed --enable-amr_wb --enable-mp3lame

I don't remember if or what extras I may have enabled but I doubt if I did all of those. If I've got time on Tuesday afternoon I'll re-compile ffmpeg like that and see if it will work for you.
Back to top
View user's profile Send_private_message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Tue 31 Oct 2006, 11:20    Post_subject:  

It won't configure with amr support for some reason. I get this error:

AMR WB FLOAT NOTICE ! Make sure you have downloaded TS26.204
V5.1.0 from
http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
and extracted the source to libavcodec/amrwb_float

AMR NB FIXED POINT NOTICE! Make sure you have downloaded TS26.073
REL-5 version 5.1.0 from
http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-510.zip
and extracted src to libavcodec/amr
You must also add -DMMS_IO and remove -pedantic-errors to/from CFLAGS in libavcodec/amr/makefile.
i.e. CFLAGS = -Wall -I. $(CFLAGS_$(MODE)) -D$(VAD) -DMMS_IO
config.h is unchanged

------------------------------------------------------------------------------------------

even though I did exactly those things. I'll try messing with it some more.
Back to top
View user's profile Send_private_message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Tue 31 Oct 2006, 14:08    Post_subject:  

I've messed with it for a while and am just not sure why it won't compile. I've followed the instructions but no luck. If anyone wants to give it a shot you can download the ffmpeg svn version at:

svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

Of course you'll need subversion installed. It is available as an alien package that works in pupget.

http://www.murga.org/~puppy/download.php?id=2310

And of course you'll need the appropriate devx_xxx.sfs to compile in puppy.

http://www.puppyos.net/test/

When configuring use these commands:

./configure --enable-amr_nb --enable-amr_nb-fixed --enable-amr_wb --enable-mp3lame --enable-shared

The enable shared will give you seperate libs as opposed to packing everything in the ffmpeg executable.
Back to top
View user's profile Send_private_message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Sat 04 Nov 2006, 10:08    Post_subject: Thanks plinej  

Thanks for that plinej. I dont understand a lot of what you put ( I *will* get round to understanding how to compile!!!), but I did notice that one of the downloads that you need to do it was different to one that was reported in a forum link an earlier post.

Quote:
It has been my experience that only this code from 3gpp actually works.

http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip

Once you've pulled those down you need to unzip the top level to get to the actual code.

mkdir working
cd working
unzip -q 26104-510.zip
unzip -q 26204-510.zip

Now add into MPlayer

cd MPlayer
mkdir libavcodec/amr_float
mkdir libavcodec/amrwb_float
cd libavcodec/amr_float
unzip -q /working/26104-510_ANSI_C_source_code.zip
cd libavcodev/amrwb_float
unzip -q /working/26204-510_ANSI-C_source_code.zip

When you compile mplayer it should figure out that AMR is now enabled and add it in.

kashani


I think the links in the top two lines re the ones that work with mplayer, perhaps they are the ones that work in ffmpeg too?

http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip

Hope you will try it again Smile

Ecomoney systems

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send_private_message Visit_website MSNM 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Tue 07 Nov 2006, 11:34    Post_subject:  

I tried it this way too with the same results. ffmpeg must be looking for something else but I'm not sure what.
Edited_time_total
Back to top
View user's profile Send_private_message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Tue 07 Nov 2006, 11:56    Post_subject:  

Between the 2 examples it seems to be compiling now. I'll post when it's done.
Back to top
View user's profile Send_private_message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Tue 07 Nov 2006, 12:07    Post_subject:  

For future reference it seems you need to make 3 directories in the libavcodec directory of the ffmpeg source code before compiling ffmpeg with amr support.

amr
amr_float
amrwb_float

download and extract
http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
to amrwb_float

download and extract
http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-510.zip
to amr

download and extract
http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
to amr_float

You also need to change a line in libavcodec/amr/makefile
from:
CFLAGS = -Wall -pedantic-errors -I. $(CFLAGS_$(MODE)) -D$(VAD)
to
CFLAGS = -Wall -I. $(CFLAGS_$(MODE)) -D$(VAD) -DMMS_IO

and then go back to the ffmpeg directory and configure with these options:
./configure --enable-amr_nb --enable-amr_nb-fixed --enable-amr_wb --enable-mp3lame --enable-shared --enable-a52 --enable-gpl

then:
make

Edited_times_total
Back to top
View user's profile Send_private_message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Tue 07 Nov 2006, 12:26    Post_subject:  

Okay, you can download the new dotpup in the first post. Let me know if it works out okay.
Back to top
View user's profile Send_private_message 
ecomoney


Joined: 25 Nov 2005
Posts: 2183
Location: Lincolnshire, England

PostPosted: Wed 08 Nov 2006, 05:02    Post_subject: WORKS!!!!!! Hurrraaaarrrrrrr!!!!!  

Hiya Plinej

Works Beautifully!!!

Here is a quick video (beware I had just woken up!) that I 'translated' directly from 3gp format into flash video (.flv) with the command:-

Code:
ffmpeg -i thanksplinej.3gp -s 176x144 -ar 44100 -r 12 thanksplinej.flv


I literally just pulled the thanksplinej.3gp file from my w300i videophone using MUT, converted it with this command and uploaded it to my servage webspace (now I know what all that bandwidth is for!). I put it in the same directory as a copy of the open source flash player swf flowplayer along with a quick html file like this

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>FlowPlayer</title>
</head>
<body bgcolor="#CCCCCC">
   <!--
        Flashvars are used to configure the player. All configuration settings
      can be specified here in HTML object tag using the 'flashvars' parameter.

      Alternatively an external configuration file can be used. In this case
      the name of the configuration file must be specified here in flashvars.

      Please refer to flowPlayer.js for documentation of the different configuration
      parameters that are available also to be used as flashvars.

   -->
<object type="application/x-shockwave-flash" data="FlowPlayer.swf"
   width="640" height="480" id="FlowPlayer">
   <param name="allowScriptAccess" value="sameDomain" />
   <param name="movie" value="FlowPlayer.swf" />
   <param name="quality" value="high" />
   <param name="scale" value="noScale" />
   <param name="wmode" value="transparent" />
   <param name="flashvars" value="videoFile=thanksplinej.flv" />
</object>
</body>
</html>


Viola instant opensource youtube!!!

This is going to make a big difference to Ecomoney's community projects at www.ecomoney.co.uk and www.scunnymoney.com. We will be able to post video introductions of volunteers and community groups and make the site a lot more attractive.

This is the crux of it done, but just a few other questions (I would like to write a tutorial for this).

1. When converting to other formats

Code:
ffmpeg -i thanksplinej.3gp -s 176x144 -ar 44100 -r 12 thanksplinej.avi


then I get no picture only sound, (notice the .avi on the end, Im converting from 3gp to avi), while

Code:
ffmpeg -i thanksplinej.3gp -s 176x144 -ar 44100 -r 12 thanksplinej.wmv


works flawlessly?

2. When playing .flv files in gxine or mplayer, I cant seem to control the bar at the bottom to select where I am in the video, though it plays from start to finish without a problem.

Thanks again for your great work and persistance Very Happy

Ecomoney

_________________
Puppy Linux's Mission

Sorry, my server is down atm!
Back to top
View user's profile Send_private_message Visit_website MSNM 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Wed 06 Dec 2006, 00:21    Post_subject:  

updated, see first post
Back to top
View user's profile Send_private_message 
plinej

Joined: 13 Aug 2006
Posts: 1522

PostPosted: Tue 03 Apr 2007, 17:09    Post_subject:  

I compiled a new ffmpeg with these options:

--prefix=/usr --libdir=/usr/lib --mandir=/usr/man --disable-debug --enable-mp3lame --enable-a52 --enable-gpl --enable-shared --enable-pp --enable-amr_nb --enable-amr_nb-fixed --enable-amr_wb --enable-pthreads --enable-dts --enable-faac --enable-faad --enable-libogg --disable-audio-beos

The dotpet is just about 2 mb's so it's too big to post in this forum. I need an alternate place to post it and then I will provide a link. I used the source code that I posted over in this thread:

http://www.murga-linux.com/puppy/viewtopic.php?search_id=1410126898&t=14213

which is the svn source from Janruary 2nd 2007. I compiled the svn from today and a day last week but both versions seem to be corrupt. They wouldn't allow me to use any specified audio bitrates with the -ab parameter (tried mp3, mp2, and ac3). It would just default to the worst possible quality for some reason. I'll have to submit a bug to the ffmpeg guys. The full package extracted is 6.47 mb's. I'll post a link at the top of this thread when I find a place to host the dotpet.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1077s ][ Queries: 11 (0.0172s) ][ GZIP on ]