Streaming from a specific location within a file

Hi everybody,
I'm a newbie here so please be patient if this is a trivial
question.
What I need to know is the following: can I start streaming a
video/audio file from a specific location (like a timestamp) with
Flash Media Server?
More precisely, the idea is this: I want Flash Media Server
to establish a connection with another server (remote server) to
receive some information like a file name and a time stamp. After
this I want Flash Media Server to start streaming (to a simple
client, like always) that file from that specific moment indicated
in the "packet" it received from the other server. Can this be
done? Is it hard?
Thank you so much,
Francesco.

DarrylBurke wrote:
sabre150 wrote:
JosAH wrote:
And who's the slowest old sod again? ;-)
kind regards,
JosMe! I had not even got round to answering this!Humph. I only just read it.
dbPlease stand in the corner next to Sabre please.
kind regards,
Jos (<--- speedy ;-)

Similar Messages

  • Programmatically specify file location within ear file

    Hi guys,
    I am deploying an ear file under weblogic 6.1 and in part of the code I need to parse an xml file however, I can't figure out how to specify the path to the file. Whatever I try I always get an exception telling me the file cannot be found. The file itself resides within WEB-INF in the applications jar file which itself resides within the ear.
    I don't know how to specify the files location.
    Please help!
    Simon.

    Hi Simon,
    I'm not sure if this will help - but I have had similar problems and am happy to share my experiences with you and hope they help you. (my test were done on JRun 3.0 - but am sure the behavior under weblogic is similar)
    I am not sure what method you are using for accessing your xml file and what the package structure of you apps is but I assume that you are either doing a
    <code>
    String fileName = "myFile.xml";
    File f = new File(fileName);
    or
    URL u = this.getClass().getResource(fileName);
    </code>
    I found problems with both these methods when deploying as a web app. The first method places the file in
    <code> {JRunPath}\servers\default </code>
    directory (which it should as the spec by default creates the file in the users default directory)
    and the second creates a URL that does not correctly map to the location (see my post http://forum.java.sun.com/thread.jsp?forum=136&thread=184500)
    neither of these is suitable for deploying a webapp. The only way to locate the resource seems to be to use either
    <code>
    fileName = ServletContext.getRealPath(fileName);
    or
    URL url = ServletContext.getResource(fileName);
    </code>
    This does leave open this issue on how to pass the servlet context down to the specific class within your application that loads the xml - the uglier option is to pass the servlet context object right down to the class that loads the resource - the other option is to use some kind of a static initializer to make the servletcontext object globally available
    hope this helps

  • Batch File to look at specific location in txt files

    Is there a way to have at batch file look at a specific line and location from a text file and pull it for use in the batch file?  For example, line 1 of sample.txt position ~15,8.
    I'm currently using the Find command(FIND /C "" *.TXT) but would like to be more specific in search.

    From a command line prompt, type 'help set' and look at environment variable expansion. Read the part that says "May also specify substrings for an expansion." It shows an example that uses ~10,5 to start at offset 10 and get the next 5 characters. Of course,
    this means that you will need to you will need to loop through each line. Use the FOR command; type 'help for' and start reading from "Some examples might help." It shows how you can parse a text file:
    FOR /F %%i IN (myfile.txt) do @echo %%i
    In a batch file, use two percent signs. At the command line, use one percent sign. 
    After the 'do' in the FOR command, you can use a CALL :Someprocedurename %%i, which would pass the line from the file into a sub and you can use the SET command to parse it.
    The Help mentions Command Extensions. At command prompt, type 'help setlocal' and read about ENABLEEXTENSIONS. At the bottom of the Help, they give you an example of how to add this to a batch file. You will need this to use the SET command to parse lines
    from the file.
    If you want to save the output, use the redirects, > or >> (create output file or append to output, respectively). Use the same for HELP output: help for > for-help.txt. In your line parser, you would do something more like this:
    [code]
    :ParseLine
    @echo %1 >> outputfile.txt
    exit /b
    GoTo :Eof
    [end code]
    To exit a sub, use either exit /b or goto :eof. Exit will allow you to return a value or error code. Goto :eof simply goes to end of file and returns control to the caller (in our case the FOR command). Of course, you can type 'help exit' to learn more.
    Outside of a subroutine, exit will end the batch file script and return to command prompt. This can be useful when you call this batch file from another script, but if you are starting it from Windows you may want to keep the command prompt open to show user
    the results or simply tell them to look at the output file.
    You can find good samples on Rob Van Der Woude's website.
    http://www.robvanderwoude.com/batchstart.php
    A major geek...

  • Streaming from a network location in KDE?

    Whenever I try to play something (video or audio) located on a local server, my Arch Linux (using KDE) is trying to download it first and then plays it.
    How can I make it stream instead of downloading?
    When I was using Ubuntu (using Gnome) whenever I connected to a local server (using ssh) and then I try to play a video or audio, it would stream it and play.
    Is it some bug with KDE? Does anyone know?

    Sounds like your file manager can't find a default application. Are you using Dolphin? Of the top of my head I'm not sure but I guess there is a setting to choose an application for certain media types. If it can't find one then it probably downloads it locally like you said and use xdg-open to find an app.
    Just a theory. Hopefully gives you somewhere to start looking.

  • Newb - Loading an applet from a specific location (local) help please

    Hi guys,
    I am not familiar with java applets at all, we have a 3rd party solution, for which i need a ...... solution
    There is a website v4.globalmentoring.com/clientJava/clientlogin.asp
    on this site, if you click on a topic, and then select "Get Instructor help" link
    you will be taken to a new window (this is a chat window)
    if you "view source" of that code you will see it has some extensive java loading params etc..
    The deal is this, currently you have to go to the site to download the applet (install it on your machine) - and if you look into your Java Console
    you will see that the applet loaded and cached fine...
    The problem is this - some clients do not have rights to install Java Applets from websites, so i was thinking ... if i can give the necessary jar,cab,etc.. files to the client and the client places the files in a folder on a local network, then on the site i could point to a "local folder" to retrieve all the java information...
    here is what i'm thinking:
    //--------------------------- existing code start ------------------------------
    <applet id=appRemovable class="listappNoMargins" code="com.chatspace.v400321.Chat" archive="cfs40321.jar"
    mayscript
    width="100%" height="400" codebase="/ChatSpace/Java" name="cs">
    <param name="cabbase" value="cs3fu.cab">
    <param name="useslibrarycodebase" value="cfs40321.cab">
    <param name="useslibrary" value="ChatSpace Full Java Client 4.0.0.321">
    <param name="useslibraryversion" value="4,0,0,321">
    <param name="namespace" value="nav4">
    .// some parameters.. lots of em..
    <param name="vdir"               value="/clientJava/">
    </applet>
    //--------------------------------------------- END ------------------------------------
    What would i have to change above to make it point to a different location?
    such as lets say C:\myApplet\ ?
    thnx

    MORE INFO:
    put it this way , there are 100's of work stations that do not have rights to download/install applets - what needs to happen is for the network admin
    to set up a network directory where the applet (and all necessary files)
    will be stored, then on my website, i want to point to an applet on THEIR (the client's) network. so they can actually "download" as they have rights to run applications from local network.
    is this fairly clear?
    thnx

  • How to read from a certain location is a file?

    hi! i am new to programing and i have a problems abt reading from a file. i have write the following to a file using FmtFile :
    10 (a numbers)
    name,phone,product (some strings)
    9 (a numbers)
    when i user ScanFile to read the second number(9 in the above example), i got a wrong value. the command i use is:
    ScanFile (filehandle, "%d", &number1);
    ScanFile (filehandle, "%s[t44]%s[t44]%s",name, phone product);
    ScanFile (filehandle, "%d", &number2);
    number1 and number 2 are integers and name, phone and product are char arrays.
    can anyone tell me where have i gone wrong? or maybe someone can tell me how can i read the 2nd number without reading the 1st number
    and the strings.

    Let's look at your file: if I correctly interpret your question, one row in it should like like this:
    10,name,phone,product,9
    In this case you could use the following formatting string to read all data from the string:
    "%d[x]%s[xt44]%s[xt44]%s[xt44]%d"
    [x] means to discard terminator, in order to read from strings, for example, "name" and not "name,". It's important in this case to put ALL field separators.
    Maybe your problem is that in the file you don't have separators between strings and numbers: in this case the last "%s" should read the '9' inside the last string and the subsequent "%d" matches with incorrect area in the file (end-of-line or next row).
    Hope this help
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Reading an int from a particular location in a file

    Hi, I've seen other topics about reading ints from files/strings etc, but I don't think I've found one the same as this.
    I have an input file "maxSolution.sol" that contains an int that I need to use in my program
    c Parsing PB file...
    c Converting 0 PB-constraints to clauses...
    c -- Unit propagations: (none)
    c -- Detecting intervals from adjacent constraints: (none)
    c -- Clauses(.)/Splits(s): (none)
    c ==================================[MINISAT+]==================================
    c | Conflicts | Original | Learnt | Progress |
    c | | Clauses Literals | Max Clauses Literals LPC | |
    c ==============================================================================
    c | 0 | 0 0 | 0 0 0 nan | 0.000 % |
    c ==============================================================================
    c Found solution: -1
    c Optimal solution: -1
    s OPTIMUM FOUND
    v x0001 -x0101 -x0200 -x0201 -x0800
    c _______________________________________________________________________________
    c
    c restarts : 1
    c conflicts : 0 (nan /sec)
    c decisions : 2 (inf /sec)
    c propagations : 0 (nan /sec)
    c inspects : 0 (nan /sec)
    c CPU time : 0 s
    c _______________________________________________________________________________
    The int that I require is the one that appears after "Optimal Solution: ". I actually require the absolute value of this, so I have tried the following
    public int maxInputReader(String s) throws IOException
    String optimal = "Optimal Solution:";
    int mines = 0;
    File input = new File(s);
    Scanner filein = new Scanner(input);
    while(filein.hasNext())
    if(filein.next() == optimal)
    mines = Math.abs(Integer.parseInt(filein.next()));
    return mines;
    However, when I run this method, it returns 0, the initial value for the int mines, could anyone give me a hand as to what I am doing wrong?

    much better:
    import java.io.FileInputStream;
    import java.io.IOException;
    import java.nio.ByteBuffer;
    import java.nio.CharBuffer;
    import java.nio.channels.FileChannel;
    import java.nio.charset.Charset;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    public class RegExpTest {
         public RegExpTest(){
              try {
                 // Create matcher on file
                 Pattern pattern = Pattern.compile("Optimal solution:\\s*(\\-)\\d");
                 Matcher matcher = pattern.matcher(fromFile("your_file_path_here.txt"));
                 // Find all matches
                 while (matcher.find()) {
                     // Get the matching string
                     String match = matcher.group();
                     System.out.println("Line : "+match);
                     int i = Integer.parseInt(match.substring(match.indexOf(':')+1).trim());
                     System.out.println("Number: "+i);
             } catch (IOException e) {
                  e.printStackTrace();
         //Converts the contents of a file into a CharSequence
        // suitable for use by the regex package.
        public CharSequence fromFile(String filename) throws IOException {
            FileInputStream fis = new FileInputStream(filename);
            FileChannel fc = fis.getChannel();
            // Create a read-only CharBuffer on the file
            ByteBuffer bbuf = fc.map(FileChannel.MapMode.READ_ONLY, 0, (int)fc.size());
            CharBuffer cbuf = Charset.forName("8859_1").newDecoder().decode(bbuf);
            return cbuf;
        public static void main(String[] args) {
              new RegExpTest();
    }

  • Is there a way to play an mp4 file at the beginning of a published project only when the project is accessed from a specific site?

    Is there a way to play an mp4 file at the beginning of a published project only when the project is accessed from a specific site?
    A little background info. I use Captivate 7 and currently have over 100 projects that I maintain on a quarterly basis. I publish using the SWF format and upload the swf/htm files to a server where they are then accessed from a few locations (within our online documentation, in our software product, on two different websites). Many of the projects are linked so some will be viewed as a series and others viewed as a standalone video. Each video uses the same template and includes an intro and end slide. Now my organization wants to implement a new intro to all videos (those I publish and those from several groups across the organization). My current intros provide overview material for the specific video so the new intro, which is an animation with audio in mp4 format, would need to be placed at the start of each project. The issue is, the intro adds 9 seconds to every video and in many cases doesn’t add any value (say, if a user accesses the video from within our product or views the videos as a series). I’ve talked it over with my boss and we want to try to add the intro only to videos accessed from site X, not any other location. So now to my question. Is there a way to play an external mp4 file (intro) only when the published project is accessed from a specific site, therefore eliminating the need to update each project? Maybe there's a way to add a parameter or variable to the URL or the html code?
    Thanks in advance for your suggestions. Please let me know if you need additional information.

    AimeeLove,
    I have a solution for you.  You may have to modify the code a little bit based on how long the timeline animation is for your clock.  I based mine on 3 seconds to complete a minute hand sweep around the clock.
    Milliseconds for each point on the clock:
    12 = 0
    1 = 250
    2 = 500
    3 = 750
    4 = 1000
    5 = 1250
    6 = 1500
    7 = 1750
    8 = 2000
    9 = 2250
    10 = 2500
    11 = 2750
    In the mouseover section for 12 o' clock, put this code...
    myVar = setInterval(function(){
         var pos = sym.getPosition();
         if (pos > 0 && pos < 50){
              sym.stop(0);
              clearInterval(myVar);
    },10);
    When you point to the time, the setInterval method loops every 100th of a second and checks the current position of the timeline.  When the timeline reaches the range between 0 and 50 milliseconds (almost impossible to hit 1 specific point), the timeline will stop at 0.  Also, the clearInterval will be fired to stop the loop.
    In the mouseout section, put this...
    sym.play();
    clearInterval(myVar);
    It start the clock again, and it also clears the loop in case you mouseout before you reach the range.
    Make sure that myVar is a global variable so you can clear it from the mouseout section.
    Repeat this for each point on the clock.  To avoid potential conflicts, you may want to use my12, my1, my2, etc. instead of myVar.  I put the milliseconds at the top that you would use as the beginning of the range.  50 milliseconds should be enough to catch it.  So, for 5 o' clock, you would make your range between 1250 and 1300.
    Let me know if you have any questions.  Thanks!
    Fred

  • Reading Files from an FTP location based on Timestamp

    Hi,
    I have a requirement of reading files from an FTP location. The files should be read in the order they were saved in the folder. Can someone tell me how to solve this?
    Thanks,
    Ravi

    Hi Arik,
    Thanks for your reply. I tried doing what u said, but it isn't working. My requirement is to List the files in the folder using FTP adapter and get the file name with the least file stamp from the FTP adapter and pass the FileName dynamically to another FTP adapter which reads the file based on the FileName. When i tested after including the property (for listing the files) you mentioned, it is giving the following error (copied from flow trace):
    <messages>
    <input>
    <Invoke_getFileListFTP_FileListing_InputVariable>
    <part name="Empty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <empty xmlns="http://xmlns.oracle.com/pcbpel/adapter/ftp/APP_SequentialFileTransfer/PRJ_SequentialFileTransfer/WS_GetFileList_FTP"/>
    </part>
    </Invoke_getFileListFTP_FileListing_InputVariable>
    </input>
    <fault>
    <bpelFault>
    <faultType>0</faultType>
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured
    during invocation of JCA binding: "JCA Binding execute of
    Reference operation 'FileListing' failed due to: Exception
    occured when binding was invoked. Exception occured during
    invocation of JCA binding: "Could not instantiate
    InteractionSpec
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec due
    to: Cannot set JCA WSDL Property. Error while setting JCA
    WSDL Property. Property setListSorter is not defined for
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec Please
    verify the spelling of the property. ". The invoked JCA
    adapter raised a resource exception. Please examine the above
    error message carefully to determine a resolution. ". The
    invoked JCA adapter raised a resource exception. Please
    examine the above error message carefully to determine a
    resolution.</summary>
    </part>
    <part name="detail">
    <detail>Cannot set JCA WSDL Property. Error while setting JCA WSDL
    Property. Property setListSorter is not defined for
    oracle.tip.adapter.ftp.outbound.FTPListInteractionSpec Please
    verify the spelling of the property.</detail>
    </part>
    <part name="code">
    <code>null</code>
    </part>
    </bindingFault>
    </bpelFault>
    </fault>
    <faultType>
    <message>0</message>
    </faultType>
    </messages>
    Thanks,
    Ravi
    Edited by: Ravi Santosh on Apr 24, 2012 11:02 PM

  • Link to Specific Location in a Newly Opened file

    I set up a link that opens another file.  Is there a way to go to a specific location (i.e. bookmark) in the file automatically "on Open"?
    Thanks for the help!!!

    How do we open the file that contains the location we want the link to go
    to?  Sorry, but we are not that experienced with Acrobat!!  Our users want
    to be able to be in a pdf file and go to a specific location in another
    file by just clicking one button.
    Thanks for the help!!
    Ken K. - 2191
    George Johnson <[email protected]>
    11/02/2010 11:43 AM
    Please respond to
    [email protected]
    To
    Ken Krug <[email protected]>
    cc
    Subject
    Link to Specific Location in a Newly Opened file
    If the newly opened file is a PDF, you should use a "Go to page view" type
    link, not an "Open file" action.

  • Live Streaming from Video File

    Hi everyone,,, im newbie in programming streaming video with flash....ater reading documentations i tried the instructions on doc, i got a question that i've not been solved. How to make a "live streaming" from "video file". It likes a live streaming from camera but it uses video file  as the source.... many thanks

    Do you mean you have video file but you want to publish it as live stream , am i right? If yes following is the solution, but before that let me clarify you will need server to do it , i mean there is no way Flash client (i.e. .swf file running in Flash Player) can publish file from local disk.
    Now let me tell you how to do it from server:
    Place your video file under "streams" folder of your application i.e. say "myVideo.flv" under  <FMS root>/applications/myApp/streams/_definst_
    Now write following code in your main.asc file (this file would be under <FMS root>/applications/myApp )
    var mystream;
    application.onAppStart = function(){
         mystream = Stream.get("livestream");
         mystream.play("myVideo",0,-1,true);
    This will publish "myVideo" file as live stream under name of "livestream". Client would have to subscriber using NetStream and
    use ns.play("livestream",-1,-1)
    You might have to write some extra code if you want to loop same file else once play of recorded file gets over , live publish will automatically stop.
    let me know if this solves your problem

  • Error from libf4f.dll: failed to swap file

    We did a live stream last night using bitrates of 282 and 482, and the video was terrible, constant buffering on client players. Now looking back at the recorded video it looks corrupted audio and video out of place, video is pixelated and stuck. The encoder has over 2mb of upstream bandwidth for encoding so it's not the problem. The problem is FMS interactive server. We are using version 4.5.0, I've setup another instance usinf FMS 4.5.3 will this resolve the issue? According to the FMS 4.5.3 release notes this error is a known problem. How can we stream video like this?
    Our server logs in event viewer show a ton of FMS(Core) error msgs about
    "error from libf4f.dll: failed to swap file C:\FMS\applications\livepkgr\streams\_definst_\*****"
    How can we resolve this issue? The FMS is useless in this state.

    Client is streaming from a remote location (a hotel with PLENTY of bandwidth, 50MBs I think) back to the FMS on our VM server.  This is the only stream on the going thru the FMS box at that time.  The video output from the TriCaster goes to a canopas box through BNC. Then in the back there's a firewire that plugs into the "streaming" laptop. That laptop is streaming out with Flash Encoder and hardwired into a router.  That router is plugged into the internet provided at the hotel.  The stream averages anywhere from 200-250 viewers/connections.  We are delivering stream to viewers via RTMP/Flowplayer front-end for desktop users and using the HTTP streaming link for mobile users.  Client is publishing stream at 350 kpbs via Adobe Live Media Encoder.
    Does that help?

  • Hyperlinks to specific sheets within Excel doc - full path?

    Hi,
    I hope someone can help me, I've been pulling my hair out on this one...
    I'm trying to set up a hyperlink in Indesign, to link to a specific sheet in one Excel file. I don't want to import the excel file within indesign, I just want that file to open in Excel when the link is clicked on in the final exported PDF. Well I've managed to link to the general Excel file, but not to one of the specific sheets within that file...
    Also, the final pdf and the Excel doc will be sent out via email - when I create the hyperlink, Indesign wants the complete/absolute file path to the external doc, how will that work when I send it out by email. Will the link work for the third party?
    A huge thank you to anyone who can point me in the good direction....
    :-) Sarah.

    If the Excel file resides on the web, you can use:
    http://url-path/workbook.xls#sheetName!a1
    The default action in Excel is to open with the last active cell. So the a1 at the end positions the view to the top left. You can also open to named sections.
    Also, keep the filename.xls and sheet names without spaces. However, for a sheet name with a space, enclose it in single quote marks like 'Sheet Name'
    Take care, Mike

  • Can AirPort Extrem receive radio stream from iTunes?

    Hi,
    Can AirPort Express receive radio stream from iTunes? I know that files in iTunes can be played, but what about Internet radio?
    Can anyone help?
    Thanks,
    Rico

    If you want to be able to stream any audio source on your Mac or PC, you need an application like Airfoil.
    Rogue Amoeba | Airfoil | Select Your Operating System

  • Reading XML file from specific location&Storing xmldata into related tables

    I am new to xml.
    My requirement is,
    1) Get the xml file from specified location (C:\xmlfiles\ xmldata.xml)
    2)Convert xml data in clob data.
    3)store the data into related table.
    and vice-versa.
    What i did,
    a) I got the data from related tables and converted into xmlformat using SQLX
    b)converted this resultset into clob data and stored as xml file in specific location.
    It uses more then ten tables.
    All this help i got from AskTom site , thanks for that.
    Now i have to do vise-versa, i.e. i have to perform 1), 2), 3) steps........
    Please tell me proper steps to acheive it.
    Thanks in advance for giving your precious time to solve my issue.

    Have you read the"XMLDB FAQ" in this Forum?
    You could use stuff like:
    create or replace directory xmldir as C:\xmlfiles'
    declare
    xmldata xmltype;
    begin
    xmldata := xmltype(bfilename('XMLDIR','xmldata.xml'),nls_charset_id('AL32UTF8'));
      -- etc, etc your code --
      -- --> convert to clob by using for instance getclobval() function
      -- --> then insert the data in your relational table with CLOB column
      -- etc, etc your code --
    end;
    /

Maybe you are looking for

  • Row to Column

    Hi I have data in table like this Item_ID                  Vendor                       Price 1                             1                              10 1                             2                              20 1                           

  • Replacing a clip with a copied clip from the storyline?

    I am making a music video.  The chorus repeats itself 3 times.  I worked on a clip in the storyline at the first time the chorus appeared ("desired first clip")  and used placeholders in the storyline for the chorus for the next 2 times.  I then used

  • Lightroom 4 beta-Import?

    Why am I getting so many photo duplications when I want to import some of my photos into a new catalog in Lightroom 4 beta? On my first try, I tried to Import one of my old catalogs into Lightroom 4 beta's new catalog. My photo count increased from a

  • No service since recent update from EE, unable to make or receive calls

    received message from EE - We have updated some of your settings. To make sure you can continue using your phone and services, please restart your phone now. since restarting my phone I have had no service and cannot make or receive calls

  • Duplicate name found in Anayze File:

    Getting errors the last few days: Duplicate name found in Anayze File: MS10-060 2265906 983583 983588 983589 Security Update for .NET Framework 2.0 SP2 and 3.5 SP1 Is SR the only way to have it fixed ?