How to embed ffmpeg encoder lib with flascc

Hello,
I'm trying to embed ffmpeg encoder in a swf.
How to proceed? I have download the ffmpeg shared lib from http://ffmpeg.zeranoe.com/builds/
Should I create Cmakelist file in each directory like in the Box2D flascc default example, or is there any other way to compile the encoder without have to listed all source file?
What is the best practice?
Thanks for help

In the case of ffmpeg, I have to build and install.
I launch
$ PATH=/cygdrive/d/flascc/sdk/usr/bin:$PATH ./configure --prefix=/cygdrive/d/flascc/sdk/usr --disable-ffserver --disable-network --disable-debug --disable-yasm --disable-asm --disable-stripping --enable-memalign-hack
then
$ make
$ make install
Everything works (it's very long, but it works).
Libs are present in flassc/sdk/usr/lib directory (libavcodec.a, libavdevice.a etc), but when in ffmpeg/docs/example I try to use the Makefile like this:
$ PATH=/cygdrive/d/flascc/sdk/usr/bin:$PATH make
cygwin fire me
Package libavdevice was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavdevice.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavdevice' found
Package libavformat was not found in the pkg-config search path.
Perhaps you should add the directory containing `libavformat.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libavformat' found
I don't know why. There is libavdevice.pc, libavformat.pc etc in my flascc/sdk/usr/lib/pkgconfig directory...
how should I configure pkg-config, CFLAGS and LDLIBS?
Here is the ffmpeg doc example's Makefile
# use pkg-config for getting CFLAGS and LDLIBS
FFMPEG_LIBS=    libavdevice                        \
                libavformat                        \
                libavfilter                        \
                libavcodec                         \
                libswresample                      \
                libswscale                         \
                libavutil                          \
CFLAGS += -Wall -O2 -g
CFLAGS := $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS)
LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) $(LDLIBS)
EXAMPLES=       decoding_encoding                  \
                demuxing                           \
                filtering_video                    \
                filtering_audio                    \
                metadata                           \
                muxing                             \
                scaling_video                      \
OBJS=$(addsuffix .o,$(EXAMPLES))
# the following examples make explicit use of the math library
decoding_encoding: LDLIBS += -lm
muxing:            LDLIBS += -lm
.phony: all clean-test clean
all: $(OBJS) $(EXAMPLES)
clean-test:
          $(RM) test*.pgm test.h264 test.mp2 test.sw test.mpg
clean: clean-test
          $(RM) $(EXAMPLES) $(OBJS)
Thanks for help and guidance

Similar Messages

  • How to embed a link image with pop up windows?

    Does anyone have any suggestions on how to embed a link
    within flash movie? Once you click on it, it will pop up a new
    window, but I want to disable the toolbars, status bar ..., and
    only show the jpg image for this window.
    Does anyone have any suggestions on how to do it in flash?
    Thanks in advance for any suggestions
    Eric

    If the Oracle Web Application you are talking about uses OAFramework then you can use personalization to add a link to the Ebiz suite page. But in order to fetch the userId and append it to the URL of the link you need to extend the controller in that page and set the destination of the link you had added in the controller. You have APIs on pageContext when you override the processRequest of the extended controller to fetch the userId. You can then create the URL by appending the userId and set it on the linkBean.
    If you are new to OAF then you should read the devguide and personalization guide to get yourself familiarised with extending OAF application.

  • How to use an AS3 library with FlasCC?

    I found an interesting library for analytics tracking (https://code.google.com/p/gaforflash/).
    I'd like to use that (or something better, if you know any) for a game I'm creating with FlasCC. The problem is that I can't seem to integrate the library into the code.
    flascc compiler returns
    Error: Type was not found or was not a compile-time constant: AnalyticsTracker.
    import com.google.analytics.GATracker;import com.google.analytics.AnalyticsTracker;public var tracker:AnalyticsTracker;
    in my make file I have defined flags like
    -static-link-runtime-shared-libraries -library-path+=analytics.swc
    in my c++ file I have this at the beginning of file
    package_as3(
              "import com.google.analytics.GATracker;"
              "import com.google.analytics.AnalyticsTracker;"           
              "public var tracker:AnalyticsTracker;"
    then I construct the tracker here
    inline_as3(
                                  "tracker = new GATracker( this, \"UA-1384830-17\", \"AS3\", true );"
    and I use it here
    inline_as3(
                                  "tracker.trackEvent( \"%0\", \"%1\", \"%2\");"
                                  : :"r"(param1) , "r"(param2) , "r"(param3)

    I have been told that storing an iPhoto library on a network HD is not recommended by Apple, but it seems to work for many users, according to forums.
    Hmm, well you experience rather contradicts the forums, no? iPhoto is not designed for network access, end of story. If you try use it that way then things fail.
    See this article
    http://support.apple.com/kb/TS5168
    for more. Note the comment:
    “Additionally, storing the iPhoto library on a network rather than locally on your computer can also lead to poor performance or data loss.”

  • How to embed mplayer in Linux with JNI

    Hello All,
    I was wondering if anyone here knows to get a Linux based video player to draw on the awt Canvas. I am trying to play the streaming video in ASX / WMV format on Linux. And MPlayer is one such player that can play almost anything.
    For windows, there are a few options to embed the native media player and I am thinking of going with jawin as it hides most of the native implementation. But I have not much idea about how to do it in Linux. Couldn't find many examples / guides either.
    If someone has an idea / links and would like to share it, it'll be highly appreciated.
    Thanks in advance,
    Rex

    I could advance a little more and got the JNI library to draw on the awt Canvas. But still can't get another native program like gedit to draw on the Canvas.
    This is what I am doing to draw the rectangles (from Sun's example) -
    gc = XCreateGC(dsi_x11->display, dsi_x11->drawable, 0, 0);
    XSetBackground(dsi_x11->display, gc, 0);
    for (i=0; i<36;i++)
    XSetForeground(dsi_x11->display, gc, 10*i);
    XFillRectangle(dsi_x11->display, dsi_x11->drawable, gc,
    10*i, 5, 90, 90);
    XSetForeground(dsi_x11->display, gc, 155);
    XDrawImageString(dsi_x11->display, dsi_x11->drawable, gc,
    100, 110, testString, strlen(testString));
    But how do I pass the handle 'gc' to another program like gedit to draw on this surface instead of opening it's own window ? It'll be a great help if someone could share an idea on this.
    Thanks,
    Rex

  • How I read the encoded metadata with OSMF as with the as3 onMetaData?

    Hi All:
    I have a Video Element, loading a clip. In As3 i can use the onMetadata() function to read the embedded metadata properties. I tried
    videoElement.client.addHandler(NetStreamCodes.ON_META_DATA, onMetaData);
    and I'm using the sprint 7. But it throws me an error:
    at org.osmf.video::VideoElement/get client()[C:\Dev\osmf\public\trunk\framework\MediaFramework\org\osmf\video\VideoElement.as:164]
    So I guess my code is older than sprint 7.
    Any idea someone?
    Thanks,
    Chaim

    Hi Chaim,
    You didn't give us all of the error message there.  The netStream.client gets set by the framework after the netConnection has succeeded, which translated into OSMF speak means the media is "loaded". Here is a sample code snippet that works with the current sprint (8).
             (videoElement.getTrait(MediaTraitType.LOAD) as LoadTrait).addEventListener(LoadEvent.LOAD_STATE_CHANGE, onLoaded);               
            private function onLoaded(event:LoadEvent):void
                if (event.loadState == LoadState.READY)
                    videoElement.client.addHandler(NetStreamCodes.ON_META_DATA, onMetadata);
            private function onMetadata(info:Object):void
    Hope that helps,
    - charles

  • How to embed a signature in the PDF file with Java?

    Hello All!
    There is no problem to sign a PDF with Java for me. But how to embed this signature in the PDF. I really don't know. I've found the PdfSignature class in the iText lib. But it is poor.
    I've read on the another forum: "If you want to do server-based signatures, there is only one option - SecurSign http://www.appligent.com)."

    How to sign a PDF using iText

  • IF_IXML : How can i add encoding with value UTF-8 to the document object??

    Hi
    i want to create a xml file with the following content:
    <?xml version="1.0" encoding="UTF-8"?>
    <OpenSearchDescription xmlns="http://...."> 
    </OpenSearchDescription>
    i did this with the if_ixml interface and rendered the content in a file 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml
    <?xml version="1.0"?>
    <OpenSearchDescription xmlns="http://...."> 
    </OpenSearchDescription>
    BUT the document attribut(?) encoding="UTF-8"?> is missing!
    How can i add encoding with value UTF-8 to the document object?? it should look like:
    <?xml version="1.0" encoding="UTF-8"?>
    *here is my coding.
    TYPE-POOLS: ixml.
    CLASS cl_ixml DEFINITION LOAD.
    DATA: lo_ixml           TYPE REF TO if_ixml,
          lo_streamfactory  TYPE REF TO if_ixml_stream_factory,
          lo_document       TYPE REF TO if_ixml_document,
          lo_parent         TYPE REF TO if_ixml_element,
          lo_ostream        TYPE REF TO if_ixml_ostream,
          lo_renderer       TYPE REF TO if_ixml_renderer,
         lv_rc           TYPE i.
    lo_ixml = cl_ixml=>create( ).
    lo_streamfactory = lo_ixml->create_stream_factory( ).
    lo_document = lo_ixml->create_document( ).
    lo_parent = lo_document->create_simple_element( name   = 'OpenSearchDescription'  "root node
                                                    parent = lo_document ).
    lo_parent->set_attribute_ns( name   =  'xmlns'
                                 value  = 'http://....' ).
    *rausrendern in file
    lo_ostream = lo_streamfactory->create_ostream_uri( system_id = 'D:\usr\sap\IFD\DVEBMGS01\log\TEST_out.xml' ).
    lo_renderer = lo_ixml->create_renderer( ostream  = lo_ostream
                                            document = lo_document ).
    lv_rc = lo_renderer->render( ).
    Thanks for help
    Britta

    Use the following code:
    set an document encoding
      l_encoding = l_ixml->create_encoding( character_set = 'UTF-8'
                                            byte_order = if_ixml_encoding=>co_none ).
      l_success  = l_ostream->set_encoding( encoding = l_encoding ).
    create a xml renderer
      l_renderer = l_ixml->create_renderer( document = l_doc ostream  = l_ostream ).

  • HELP!!!! I have spent hours trying to find out how to embed an image with a link or a Microsoft Word document with a hyperlink built within the document -- not as an attachment! Does ANYONE know the secret? Can it be done, or not! My PC clients do it.

    HELP!!!! I have spent hours trying to find out how to embed an image with a link, or embed a Microsoft Word document with a hyperlink built within the document -- not as an attachment into my email -- but where it shows as the email content when opened! Does ANYONE know the secret? Can it be done, or not? My PC clients do it all the time easily. Then I want to be able to send the embedded image/document (not as an attachment, but visable within the email when opened) to many email contacts at once, BUT the individuals receiveing them DO NOT SEE the other email contacts. Cannot seem to be able to find anything on being able to do these 2 tasks.PLEASE, SOMEONE, HELP!!!

    Don't know if this applies to Lion, but read here:
    http://www.makeuseof.com/tag/create-html-announcement-mail-iweb-mac/

  • How does adobe encoder work with windows 8?  I can't get it to work.

    How does adobe encoder work with windows 8?  I cant get it to work.

    Flash Media Live Encoder doesn't work with Windows 8.
    The best it gets is Windows 7 64 bit.

  • How to use Outline Load Utility with local encoding names of dimensions?

    Hi,
    I'd like to load metadata (dimensions members) to Planning classic application via Outline Load Utility.
    Target dimension name has been set in local encoding (cyrillic).
    After execution my batch file I get error that unable to find specified load dimension "????" in target application.
    Batch file has been created to start OutlineLoad in ANSI encoding:
    cd C:\Hyperion\products\Planning\bin
    OutlineLoad /A:testapp /U:admin /M /N /I:C:\Hyperion\TempOtlLoad\otl_tmc_alterna.csv /D:{dimNameInCiryllicEncoding} /L:C:/Hyperion/TempOtlLoad/outlineLoad.log /X:C:/Hyperion/TempOtlLoad/outlineLoad.exc
    TIMEOUT 10
    How to use Outline Load Utility with local encoding names of dimensions?

    Has somebody any idea about my question below ?
    Regards,
    Ed

  • How to embed fonts in a textbox in adobe acrobat 9

    Hi all,
    The forms has beed designed in adobe acrobat 9.It has the text in the textboxes with a fontstyle of DejaVu Sans Mono.The client or the user generates the form by clicking on the appropriate link and the textboxes are populated accordingly.The problem is they dont have the fontstyle used in the textbox installed on their system.So whenever they generate the pdf the font in the textbox doesn't print in properly.Is there anyway we could force it to use the font which we have originally set up.Thanks in advance

    Bernd Alheit wrote:
    Read this:
    http://www.ehow.com/how_6566713_embed-fonts-pdf.html
    I have the somthing like the following in Ctrl-D Fonts. They can not be embedded using the method above. I guess it is because the fonts in the original pdf are not available in the system. But how to embed the substitutes in the pdf file.
    Helvetica
        Type: Type 1
        Encoding: Custom
        Actual Font: Helvetica
        Actual Font Type: TrueType

  • How to embed information in an image

    im trying to add text to an image without it displaying on the image. basically i need to know how to embed text in a jpeg. currently im trying to send information by adding data to the least significant bit but to no avail.
    any help will be much appreciated. thanks.

    heres how it went kevin
    i loaded an image. the image data is a cluster. by using unbundle by name i can separate it to components. the rgb info on the data is located in "image" in the unbundle. send this to a decimate...extracting 3 values. these three values are the rg and b components of the image. the rest is as i mentioned above. take either r,g or b value (doesnt matter which color you encode the data to) do a string to byte array. send through an empty for loop with the string length wired to the count...making the loop run as many times as the number of characters ur embedding. the result is sent to replace array subset (with index 0) and then interleaved with the remaining 2 channels to form back the composite rgb...send back to a bundle by name with the characteristics coming from the original image data. draw flattened pixmap and output (this displayed pic with encoded data...no difference!!). extraction is a reverse process but inside the forloop place index array with index zero. loop count once again wired to original string length. output from the for loop goes to a byte to string and string indicator! let me know if it works for you
    dee.

  • How to embed Flash .flv video?

    Hello guys,
    I am wondering, is there any way how to embed Flash video onto my web page?
    And regarding QT video template on iWeb's Movie page, can I drag any kind of QT ? Like H.264 QT for example, or is it just for Mpeg2 QT?
    Thank you so much for any advise.

    What is your video codec you are working with? NTSC (and PAL) DV is about 13 gigs/hr uncompressed. When you export your QT movie from your editing application and convert the file to flv you are compressing the video at that time with a determined bit rate and video dimension. quality and file size comes down to math. File size = bit rate x movie length. Quality is bit rate in relation to dimension. Surprisingly enough the recommended video encoder for flv is Flash Video Encoder application that comes with Flash. Sorenson Squeeze is arguably the best flv video encoder. Visual Hub is not recommended if quality and efficiency is desired. Flash Player is a browser plug-in that that allows web visitors to view Flash videos on your website from their web browse. Most already have Flash player installed and you can insert a script that checks to see if the visitor has Flash player installed and if it doesn't a window will appear informing the visitor that they are required to instal the Flash Player in order to view Flash content on your website. A URL is also provided to direct the visitor to the Flash Player download page. Insert this script into the <head></head> of your site:
    <script type="text/javascript">
    function MM_CheckFlashVersion(reqVerStr,msg){
    with(navigator){
    var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){
    var flashVer = -1;
    if (plugins && plugins.length > 0){
    var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
    desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
    if (desc == "") flashVer = -1;
    else{
    var descArr = desc.split(" ");
    var tempArrMajor = descArr[2].split(".");
    var verMajor = tempArrMajor[0];
    var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
    var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
    flashVer = parseFloat(verMajor + "." + verMinor);
    // WebTV has Flash Player 4 or lower -- too low for video
    else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
    var verArr = reqVerStr.split(",");
    var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
    if (flashVer < reqVer){
    if (confirm(msg))
    window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash";
    </script>
    Then replace <body> with this:
    <body onload="MM_CheckFlashVersion('9,0,0,0','Content on this site requires the latest version of Adobe Flash Player. Do you want to download it now?');">
    Beginning with Flash Player 9 h.264 QT movies are now supported for playback. Simply change the file extension from .m4v to .flv to convert the h.264 video to Flash video that can be viewed from Flash Player 9+ on a web browser.
    hope that helps!

  • Compile a new lib for FLASCC

    Hi,
    I would like to compile a new lib (PortAudio) for link it in a flascc project. (for Mac and Windows)
    When I use the lib make, flascc tell me :  (Mac in the first time)
    error: ./libportaudio.a:1:1: invalid character
    and lib doesn't contain the same header than a lib provided by crossBridge (libOgg for example).
    Do you know if there is some flag to add during the PortAudio compilation to be flasc compatible ?
    I try lib in 32 bits, 64 bits, both, full but always the "invalid character" error.
    Do you have an idea ?
    Best regards,
    Philippe

    Hi,
    thanks to answer.
    I work on OSX, so I don't use cygwin.
    Portaudio was compiled using gcc on OSX too.
    But :
    PortAudio lib, generated by is own makefile, generate a lib with this signature (file command)
    libportaudio.a: Mach-O universal binary with 4 architectures
    libportaudio.a (for architecture i386):    current ar archive random library
    libportaudio.a (for architecture ppc):    current ar archive random library
    libportaudio.a (for architecture x86_64):    current ar archive random library
    libportaudio.a (for architecture ppc64):    current ar archive random library
    And if I look for a lib provided in CrossBridge :
    libffi.a: current ar archive
    There is a difference, but how make the good signature library ?
    Best regards,
    Philippe

  • How to embed audio to my website using quicktime when I get "file not found

    hi,
    i've been trying to embed audio into my website all night and I get a file not found message even though I;ve checked 100 times and all files are where links say they should be..
    but even just linking to audio (mp4) files won't work...
    everything is o.k. with non-audio links on my website - only the mp4 audio can't be found.
    can anyone help me? or post the correct code?
    I've tried using these formats..
    <EMBED SRC="anymovie.mov" HEIGHT=176 WIDTH=136>
    <embed
    src="http://www.crossandthrone.com/.samples/qt/sample-reference2.mov"
    width="242" height="199" autoplay="false" loop="false"
    controller="true" bgcolor="#666666"
    pluginspage="http://www.apple.com/quicktime/"></embed>
    the pages that should play audio just have a quicktime file with a question mark on them
    help would be much appreciated!

    Start here:
    http://www.mediacollege.com/video/streaming/
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "subdued2u" <[email protected]> wrote in
    message
    news:gbg2th$r13$[email protected]..
    > Hello ,guys, i have a website,, and i would like to add
    upload vidoes on
    my
    > website i have tried but did not work can anyone please
    tell me how to
    embed my
    > videos in my website using dreamwever ?
    > thank so much
    >

Maybe you are looking for

  • When you restore from back up will you get your photos back

    i just want to know because my brother did that for his phone and got his photos back,so if i back up my ipod and then restore it from back up will the photos come back on the ipod?

  • HT201250 I use Snow Leopard and tried restore my Macbook pro using Time Machine.

    After waiting a considerable time for Time Machine to restore my whole system, applications and files I had problems in that my Macbook Pro would not restart. The Apple logo appeared but then the screen scrolled down and a lot of letters, numbers and

  • TCP socket I/O from the kernel

    We've been working on extending our filesystem support from UDP to TCP, and have run into an apparent roadblock. We'd like to know whether Sun is aware of the problem that we're seeing, and if so, if there is something else we should be doing to avoi

  • How to maintain GR/IR clearing account

    Dear all, Can anyone tell me how the GR/IR clearing account maintained manually - i.e., prevent or stop system from auto posting. Is there any possibility - if yes can you tell me the steps and t.code where this has to be maintained. Regards, M.M

  • HELP Lightroom 5.6 Spontaneously Reboots Computer

    Lightroom 5.6 is installed on a new computer running Windows 8.1 and all drivers and software are up to date.  All other software is running fine including InDesign which has been used heavily for 5-6 hours without problems.  I imported my existing p