lou at fakeoutdoorsman.com skrev:
tps wrote:
Dear All
I have compiled svn-version of ffmpeg. I only do configure and make. I do not do make install because I don't want this svn-version of ffmpeg to overwrite the 'official' Ubuntu version of ffpeg that is also on the host.
What path is the Ubuntu-installed version at? ('which ffmpeg' should tell you.)
Most likely, the Ubuntu-installed version will be at /usr/bin/ffmpeg or similar. By default, the SVN version should install to /usr/local/bin/ffmpeg; it should therefore not overwrite the official version.
Your are right on both issues!
Now I want to compile my own version of ffplay.c so I create a directory ffplay at the same level as the svn ffmpeg-directory.
I copy ffplay.c from ffmpeg to ffplay.
Now what gcc options should I use to compile ffplay.c?
As you've seen by looking at the output of make, it can get quite complicated. The most straightforward way to do it would be to just copy the entire FFmpeg source tree, make whatever changes you want to the source, and compile the result with 'make'.
-- The Wanderer
This Ubuntu specific compilation guide may be useful and installs to /usr/local/bin/ffmpeg as The Wanderer has already mentioned:
http://ubuntuforums.org/showthread.php?t=786095
Note that you will need libsdl1.2-dev as described under "Optional Dependencies". You will also need to alter the checkinstall line, changing the pkgname for example, or skip checkinstall, as this guide is configured to "replace" the repository FFmpeg to prevent package management issues. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Thanks - I followed the Ubuntu specific compilation guide including removing the 'official' Ubuntu ffmpeg package. Reading the guide I now believe it is ok only to have the SVN version of ffmpeg on my host. Now I am able to create a new directory and write my 'own' player, tps.c, in that directory. So far it is pretty simple. It only shows video. No timing issus, no audio, no seeking etc. Still I am able to compile with this gcc command: gcc -o tps tps.c -I/usr/local/include -L/usr/local/lib -lavformat -lavcodec -lavutil -lz `sdl-config --cflags --libs` -lmp3lame -ltheora -lxvidcore -lx264 -lfaac -lfaad -lbz2 I still wonder what all the gcc options on the 'official' SVN make do! I fear my simple gcc command line will produce a slow (not optimized) player - any comments? Again Thanks for all the help. Thomas S