> Hi
> 
> I would like to embed ffmpeg into a python stand alone application. does 
> somebody knows how to do that. i would like to call ffmpeg and mencoder using 
> shell commands from a python script (which is converted into executables- 
> .app).
> I don't know how to ship ffmpeg within an application.
> 
> dominik

Hi,

AFAIK, you have three ways to use ffmpeg in your application:

1) Require it to already be installed (use autoconf)
2) Link to it statically, i.e. the libav*.a files. This will
dramatically increase the size of your executable.
3) Link to it dynamically, i.e. the libav*.so files. This will keep the
size of your executable small but will require you to add the .so files
to the distribution package. Furthermore, if you update your application
at a later date, without changing the ffmpeg version, you won't have to
redistribute as much.

Personally, I prefer linking dynamically.

Sincerely,
Ola



> Brian Oberholtzer <[EMAIL PROTECTED]> a écrit : Brian Oberholtzer 
>  writes:
> 
> > 
> > Hi,
> > 
> > I'm just getting started using the ffmpeg libraries and am seeing a 
> > problem when demuxing/decoding an FLV file.  I'm attaching the sample 
> > program which is basically just Martin Böhme's overview.  My code was 
> > originally somewhat more complicated so I've reverted to the attached 
> > code.  I understand that the code is not clean but it serves to show 
> > what I'm seeing.  If I run the code against an .flv file on the local 
> > file system, the code runs fine to completion.  If I access the same 
> > file placed on a web server, I receive a series of "skipping flv packet" 
> > errors toward the end of the decode.  These seem to continue on 
> > indefinitely.   Here are the two outputs, from a good run (with a local 
> > file) and an problem run pulling the file from a web server (The file is 
> 
> 
> I just went back and tried this with ffmpeg itself, both a version that 
> I've built and a recently downloaded binary.  Both showed the same kinds of
> issue.  The issue is with pulling an .flv file using http.  I'm going to post
> this to the more general list.  Here's an example output...
> 
> C:\dev\ffmpegbin>ffmpeg -i
> http://int1.fp.sandpiper.net/reuters/t_assets/20080429/WAO1209466735323.flv 
> -an -vcodec mpeg2video -r
>  29.75 c:\temp\out.m2v
> FFmpeg version SVN-r12665, Copyright (c) 2000-2008 Fabrice Bellard, et al.
>   configuration: --enable-gpl --enable-postproc --enable-swscale
> --enable-avfilter-lavf --enable-pthreads --enable-liba52 --enab
> le-avisynth --enable-libfaac --enable-libfaad --enable-libgsm
> --enable-memalign-hack --enable-libmp3lame --enable-libnut --enabl
> e-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --cpu=i686
> --extra-ldflags=-static
>   libavutil version: 49.6.0
>   libavcodec version: 51.54.0
>   libavformat version: 52.13.0
>   libavdevice version: 52.0.0
>   built on Apr  2 2008 22:35:11, gcc: 4.2.3
> 
> Seems stream 0 codec frame rate differs from container frame rate: 1000.00
> (1000/1) -> 30.00 (30/1)
> Input #0, flv, from
> 'http://int1.fp.sandpiper.net/reuters/t_assets/20080429/WAO1209466735323.flv':
>   Duration: 00:02:35.7, start: 0.000000, bitrate: 48 kb/s
>     Stream #0.0: Video: flv, yuv420p, 320x240, 30.00 tb(r)
>     Stream #0.1: Audio: mp3, 44100 Hz, mono, 48 kb/s
> File 'c:\temp\out.m2v' already exists. Overwrite ? [y/N] y
> Output #0, mpeg2video, to 'c:\temp\out.m2v':
>     Stream #0.0: Video: mpeg2video, yuv420p, 320x240, q=2-31, 200 kb/s, 29.97 
> tb(c)
> Stream mapping:
>   Stream #0.0 -> #0.0
> Press [q] to stop encoding
> [flv @ 00AA6C70]skipping flv packet: type 83, size 6648438, flags 08kbits/s
> [flv @ 00AA6C70]skipping flv packet: type 83, size 6648438, flags 0
> [flv @ 00AA6C70]skipping flv packet: type 83, size 6648438, flags 0
> [flv @ 00AA6C70]skipping flv packet: type 83, size 6648438, flags 0
> [flv @ 00AA6C70]skipping flv packet: type 83, size 6648438, flags 0
> 
> 
> 
> 
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
> 
> 
>  __________________________________________________
> Do You Yahoo!?
> En finir avec le spam? Yahoo! Mail vous offre la meilleure protection 
> possible contre les messages non sollicités 
> http://mail.yahoo.fr Yahoo! Mail 
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to