Counting number of frames played

Hi
i am interesting in counting the number of frames which are already received and played. I am not interesting in grabbing or editting the frames. Just count them. Any propositions will be greatly appreciated. I think i should use getSequenceNumber( ) but how? I mean should i first create a byte[ ] from my datasource? I am quite confused. Anyway, if anybody has any ideas please send them.....
Thankssss

Hi pn@voip,
first of all thanks for ur feedback. I wasn't really careful while reading the DataSourceReader :) i can finally count the sequence number.
As for ur problem, i came up with a probable solution (i don't know if it is the best one). I guess u r getting info (Sequence Number, Time Stamp, Length) about ur media from a Buffer. If not, check again DataSourceReader. So, after having calculated the random sequence number i propose using
buffer.setSequenceNumber(sequence_number)
then
buffer.getTimeStamp( )
and
buffer.getLength( ).
In this way u have the begin point (buffer.getTimeStamp( ))
and the end point also (buffer.getTimeStamp( )+buffer.getLength( ))
U have to be a bit careful with the formats (sometimes it is long, others int)
I think it will work :)
And a question: for transmitting the received data what do u propose? I don't want to save them so i just merge the datasources in order to be able to play the data from the beginning. However i am having some small problems.
Thanks

Similar Messages

  • Play count question.   I have about 500 songs in my library that I know have played at least once...probably just once.  Although there is a "last played" date listed there is no number in the play count column.   Any reason for this?  thx

    I have about 500 songs in my library that have played one time.   Although a "last date played" date is noted, there is no number in the play count column.  This only happens some times.   Any reason for this, and can it be corrected?  thx

    Thanks, but the play count is not incrementing only on the very first play.  All subsequent plays are fine.  Meaning the play counts for these particular tracks are always one play short.  I double-checked some of the tracks in question and I have not shortened, or stopped them early.

  • Counting No of Frames

    Hi All,
    I want to know if there is a way of counting the number of frames a particular media file has without going through and simply playing the whole clip and counting each frame as it is played. I am a newbie to JMF so go easy guys if I have missed something really obvious,
    Adam

    sure
    it is possible use Framepositioningcontrol on a stopped player
         fpc = (FramePositioningControl)player.getControl javax.media.control.FramePositioningControl");
         duration = player.getDuration();
         if (duration != Duration.DURATION_UNKNOWN)
    totalFrames = fpc.mapTimeToFrame(duration);
    greetings Sven

  • URGENT HELP NEEDED: counting number of particles from image

    this image on the left is showing particles
    hello i want to create a small VI that can count number of particles from a image that i load up. please see the attached image of particles and the VI printshot.
    I have used the tutorial "counting number of particles" but still the above VI does not work. it shows the number of particles = 1.. I do not know why it is doing so??
    I am not an expert in Labview so please can someone tell me where the problem is. sorry i could not attach the VI file itself but i have given an image of it..
    after anyone has solved this problem, i have to create a live system that will get live images from the camera - four frames every sec and the above VI has to count the
    number of particles for each frame and output to the user?? is this possible can anyone do it for me???
    p.s. in the above VI i read the image from file and count the number of particles. i do not do it to the binary image becuase the binary image is only a black screen
    when i run it
    thankyou

    Hi Farhan,
    Vision Assistant would be the best option to create some steps which you can then export to LabVIEW. You should try using the IMAQ Find Circles.vi. The attached image helps you find the number of circles of an image acquired from a camera. I have used the IMAQdx VIs in this example.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies
    Attachments:
    vision.vi ‏59 KB

  • Preloader that loads a percentage or specified number of frames, help please

    hi,
    i've googled and searched the forum here for a (simple) way
    to use a preloader that loads a percentage or specified number of
    frames. What i find is preloaders that load the total frames.
    here is the action script used:
    if (_framesloaded>=_totalframes) {
    gotoAndPlay("Scene 1",1);
    } else {
    gotoAndPlay("preload",1);
    is there a way to modify this simple script or do i need to
    use another script? i tried changing "totalframes" to "300frames".
    But it didn't work and i just shooting in the dark here.
    help please
    thanks
    gregory

    "why would you not want the whole file to load? "
    yes i want the whole file to load.
    What i'm asking is how to specify in the preloader how many
    frames will load before the file plays.
    "although you could start the file after a certain amount of
    frames are loaded, but I still do not see the point"
    the reason you would be to not have a long wait while the
    entire file loads. Flash will stream the rest of the file as the
    preloaded section of the file starts playing.

  • Number of Frames ?!

    Hi all,
    This forum has been great. But I encountered this problem that I cannot find a solution hint to here. It must be something simple... I did ask this question a couple of times, and got great responses but not quite what I asked. Maybe I wasn't clear on what I needed. However, I cannot believe that you gurus out there don't know how to count the number of repeating frames!
    I need to count total occurances of a repeating frame. This repeating frame represents a second level linked query say G_emp. The main query is G_dept for example. Output is as follows:
    Dept ID: 10
    ...Emp ID 100... Count 1 (Artificial)
    ..........101 Count 2
    ..........102 Count 3 <--
    Total of counts for DeptID#10: 3.
    The difficulty is the I don't have a physical column to sum it up or use "Last" function of the summation. Since the result comes from two linked queries (G_Dept and G_Emp), than I cannot use count function there either.
    I tried to use placeholder column to identify each frame's occurance. I have a problem when trying to sum it up for each G_Dept and output after G_emp information.
    Is there a way to do it?
    Or it's not possible in Oracle 9i?
    I do apologize for being so determined to get some help, but I don't have much experience with this stuff to back me up.
    Can anyone help? I appreciate it a lot!
    Thank you, Slava

    Hi Slava
    1. Create a summary column cs_1 within the detail group g_emp.
    A. Set the function to count.
    B. Source to a column that is not null, may be empno.
    C. Reset at master group g_dept.
    In the output
    Dept ID: 10
    ...Emp ID 100... Count 1 (Artificial)
    ..........101 Count 2
    ..........102 Count 3 <--
    IF you really want Count 1, Count 2 etc in each row,
    2. Default the layout.
    3. Double click on CS_1 -> General Layout -> Format Trigger Edit. Create a trigger.
    For example:
    function F_CS_1FormatTrigger return boolean is
    count number;
    begin
    count := :cs_1+1;
    return(TRUE);
    end;
    With this the output would look like:
    Dept ID: 10
    ...Emp ID 100... Count 1 (Artificial)
    ..........101 Count 2
    ..........102 Count 3 <--
    In case you need to sum up the count at every break of master group like
    Dept ID: 10
    ...Emp ID 100... Count 1 (Artificial)
    ..........101 Count 2
    ..........102 Count 3 <--
    Total of counts for DeptID#10: 3
    Add one more summary coumn to master group cs_2. Set the function as add and set the source column to cs_1. Generate the layout again. This would sum up the cs_1 of each rows at each break of master group.
    Let me know if it helps.
    Thanks
    Rohit

  • Playing a song through Music Match from iCloud on my iPhone does not update number of times played

    I noticed that when I play a song on my iPhone using Music Match / iCloud, the number of times played counter on in iTunes my Mac is not increased, nor is date last played etc. As this is still one user, using one music collection I had expected this to happen.
    Now my "good but forgotten" clever playlist (>=4 stars, date last played over a year ago) is not kept current anymore.
    Is this a bug or a "feature". Like most things iCloud it seems to work "sort of, but not quite there yet..."

    I am experiencing the same problem. I have uninstalled and re-installed ALL Apple software. Restored phone. Didn't work. Got a new phone and set up as a new phone. Same problem. Cannot play music. I select the song and the screen switches back to the previous screen and never plays. Artwork is all jacked up. Please help.

  • How to count number of sales orders generated in a month in SAP SD

    Hi SD Gurus,
    I have a very strange query from client. I have to count the number of sales order created in a month for a z report. For example 30 in Jan, 25 in Feb etc. Could anyone suggest me How to count number of sales orders generated in a month in SAP SD.
    Regards
    Vinod Kumar

    Hi,
    Goto the T.Code "SE16" or "SE16n" or "SE11".
    Enter the table name as VBAK
    Enter the created on date as the starting date of the period and to date as the end date.
    Enter.
    Click on "Number of Entries".It will tell you the number of entries created in a particular period.
    If you want a report,goto the T.Code "VA05n".
    Regards,
    Krishna.

  • How to Count Number of completed line items in past 6 months / 12 months ?

    How to Count Number of completed line items in past 6 months / 12 months ?
    Hi,
    I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
    Purchase Order document = ZEBELN
    Line Item = ZEBELP.
    I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
    I have "Delivery Completed" field, ELIKZ.
    So, based on this would I be able to calculate it in Query Designer?
    If so, Please let me know how

    Hello Deva
    If youe want to calculate the completed line item for last 6 or 12 month then i think u will be displaying the query data for these montrhs...create a customer exit to give you date range and restric it in filter area....
    Now Choose any of the below option
    1. I would suggest to implement an additional key figure "counter" in cube and fill values with one for which delivery is completed.
    Now use calculated key figure in Query Designer based on logic
    IF counter = 1 THEN counter ELSE 0
    OR
    2. create a formula variable based on ELIKZ and use replacement path variable, it will display you no. of docs for which delivery is completed....
    Award points if it solves your problem
    Revert back in case of further assistance...
    Thanks
    Tripple k

  • How to Count number of words in a file....

    Hi Experts,
    I have uploaded the text file, from the application server, like this: 
    call function 'GUI_UPLOAD'
      exporting
        filename = LV_ip_FILENAME
      tables
        data_tab = LT_FILETABLE.
    The text file contains some number character words....  like "sap labs india..... "
    Now, I wanted to count number of words in an internal table  LT_FILETABLE....  can anybody help me?

    Hi,
    Special Characters in Regular Expressions
    The following tables summarize the special characters in regular expressions:
    Escape character
    Special character Meaning
    Escape character for special characters
    Special character for single character strings
    Special character Meaning
    . Placeholder for any single character
    C Placeholder for any single character
    d Placeholder for any single digit
    D Placeholder for any character other than a digit
    l Placeholder for any lower-case letter
    L Placeholder for any character other than a lower-case letter
    s Placeholder for a blank character
    S Placeholder for any character other than a blank character
    u Placeholder for any upper-case letter
    U Placeholder for any character other than an upper-case letter
    w Placeholder for any alphanumeric character including _
    W Placeholder for any non-alphanumeric character except for _
    [ ] Definition of a value set for single characters
    [^ ] Negation of a value set for single characters
    [ - ] Definition of a range in a value set for single characters
    [ [:alnum:] ] Description of all alphanumeric characters in a value set
    [ [:alpha:] ] Description of all letters in a value set
    [ [:blank:] ] Description for blank characters and horizontal tabulators in a value set
    [ [:cntrl:] ] Description of all control characters in a value set
    [ [:digit:] ] Description of all digits in a value set
    [ [:graph:] ] Description of all graphic special characters in a value set
    [ [:lower:] ] Description of all lower-case letters in a value set
    [ [:print:] ] Description of all displayable characters in a value set
    [ [:punct:] ] Description of all punctuation characters in a value set
    [ [:space:] ] Description of all blank characters, tabulators, and carriage feeds in a value set
    [ [:unicode:] ] Description of all Unicode characters in a value set with a code larger than 255
    [ [:upper:] ] Description of all upper-case letters in a value set
    [ [:word:] ] Description of all alphanumeric characters in a value set, including _
    [ [:xdigit:] ] Description of all hexadecimal digits in a value set
    a f
          v Diverse platform-specific control characters
    [..] Reserved for later enhancements
    [==] Reserved for later enhancements
    u2192 More
    Special characters for character string patterns
    Special character Meaning
    Concatenation of n single characters
    {n,m} Concatenation of at least n and a maximum of m single characters
    {n,m}? Reserved for later enhancements
    ? One or no single characters
    Concatenation of any number of single characters including 'no characters'
    *? Reserved for later enhancements
    + Concatenation of any number of single characters excluding 'no characters'
    +? Reserved for later enhancements
    | Linking of two alternative expressions
    ( ) Definition of subgroups with registration
    (?: ) Definition of subgroups without registration
    1, 2, 3 ... Placeholder for the register of subgroups
    Q ... E Definition of a string of literal characters
    (? ... ) Reserved for later enhancements
    for more details please refer the following,
    [http://help.sap.com/abapdocu_70/en/ABENREGEX_SYNTAX_SIGNS.htm]
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/902ce392-dfce-2d10-4ba9-b4f777843182?QuickLink=index&overridelayout=true]
    Thanks,
    Renuka S.

  • How to count number of edges using PXIe-6363 Counters

    Hello,
    I am trying to count number of edges in a test signal in a 50 ms duration. I am using PXIe-6363 card and connecting the test signal to CTR 0 SRC (PFI 8). Is it a correct connection? What else do I need hardware-wise to make a correct set up for this application?
    Thanks
    Jeet
    Solved!
    Go to Solution.

    Hi Jeet,
    When you say interrupt signal, do you mean a pulse that will pause your counter task? If that is the case, and you want to pause your task with a digital pulse, you need to use the DAQmx Trigger Property Node and set that to Pause, Trigger Type. As you said, you can connect that signal coming from the chip to any PFI line and then set that line as the source of the property node.
    There is an example that you can use that does exactly what I just described. This example is called Count Digital Events-Pause Trig.vi, and you can find it by going to Help>Find Examples..., then on the NI Example Finder window go to the Browse tab and navigate in the folders to Hardware Input and Outpout\DAQmx\Counter Measurements\Count Digital Events.
    Regards.
    Jorge
    Applications Engineer
    National Instruments
    Certified LabVIEW Associate Developer (CLAD)

  • How to count number of raw & put result top of page?

    I try to count number of table raw it work fine  but when I wont to put result top of page it dose not work
    only count one table raw
    REPORT  ZTEST.
    DATA: it_sflight TYPE TABLE OF Sflight WITH HEADER LINE  .
    DATA counter TYPE i VALUE 0.
    start-of-SELECTION.
    SELECT-OPTIONS: carID for it_sflight-carrid.
    SELECT-OPTIONS: connID for it_sflight-connid.
    SELECT * FROM Sflight INTO CORRESPONDING FIELDS OF TABLE it_sflight 
    WHERE carrid IN carID and connID IN connid.
    loop at it_sflight .
      counter = counter + 1 .
      write: /5 it_sflight-carrid,sy-vline,
               30 it_sflight-connid,sy-vline,
                  45 it_sflight-fldate,sy-vline,
                    60 it_sflight-currency,sy-vline.
    ULINE.
    endloop.
    end-of-SELECTION.
    TOP-OF-PAGE .
    *START-OF-SELECTION.
    WRITE:  'Total Rows : ', counter.
    ULINE.
    WRITE: /5 'Carrid',sy-vline,
            30 'Connid',sy-vline,
            45 'Fldate',sy-vline,
              60 'Currency',sy-vline.
    ULINE.
    how can I solve this problem ?

    Hi
    Instead of using counter in a loop use describe statement.
    Describe it_sflight.
    the no of rows will get populated in the system variable sy-tfill.
    DATA: it_sflight TYPE TABLE OF Sflight WITH HEADER LINE  .
    DATA counter TYPE i VALUE 0.
    start-of-SELECTION.
    SELECT-OPTIONS: carID for it_sflight-carrid.
    SELECT-OPTIONS: connID for it_sflight-connid.
    SELECT * FROM Sflight INTO CORRESPONDING FIELDS OF TABLE it_sflight
    WHERE carrid IN carID and connID IN connid.
    DESCRIBE TABLE it_sflight.
    loop at it_sflight .
      counter = counter + 1 .
      write: /5 it_sflight-carrid,sy-vline,
               30 it_sflight-connid,sy-vline,
                  45 it_sflight-fldate,sy-vline,
                    60 it_sflight-currency,sy-vline.
    ULINE.
    endloop.
    end-of-SELECTION.
    TOP-OF-PAGE .
    *START-OF-SELECTION.
    WRITE:  'Total Rows : ', sy-tfill.
    ULINE.
    WRITE: /5 'Carrid',sy-vline,
            30 'Connid',sy-vline,
            45 'Fldate',sy-vline,
              60 'Currency',sy-vline.
    ULINE.
    Thanks
    Rahul jain
    Edited by: Rahuljn on Feb 2, 2011 10:58 AM

  • My iTunes doesn't keep track of my listening history anymore. It doesn't update play counts and default "Recently Played" playlist.

    My iTunes doesn't keep track of my listening history anymore. It doesn't update play counts and default "Recently Played" playlist. But it still tracking plays from my iPhone and syncing them.
    I've tried to repair it with setup file. Nothing's changed.
    Can you help me with that?
    NOTE: Now I tried disabling the crossfade feature and it worked, started to count again. But I like crossfade, I don't want to keep it off.

    I think I got this figured out. The playcount does update, but not how the previous iPod models update their playcount. Instead of immediately updating the playcount right after you finish the song like the older iPod models, iPod Touch keeps the updates in memory. The next time you connect to iTunes it'll sync those playcounts in memory to the actual songs itself, effectively updating the playcount of the songs only after connecting to iTunes. I have set my syncing manually. That's why after connecting to iTunes, my playcounts are updated. BUT it doesn't solve the mystery of my Smart Playlist. Even though in iTunes, the correct songs are listed, in the iPod Touch, it shows the old playlist.
    Don't you just hate that? It was working fine before on non-iPod touch models. Now we have to live with this new bug. I just hope when they release software 2.0 it fixes these bugs and that they *give it for free!* People shouldn't be charged on something they should have gotten as a support!

  • How to count number of ones in table

    Hello,
     i created one table 16x32 each cell is updating 1 byte of data,how to count number of one in all cell,and is it right way to calculate check sum??
    thank you

    The simplest way is to call GetTableCellRangeValues with VAL_ENTIRE_TABLE as the range, next summing array elements.
    But I don't understand your comment on checksum, so this may not be the more correct method for your actual needs: can you explain what do you mean?
    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?

  • What is a best practice for counting number of payments in Payroll Run?

    I'm trying to get a feel for what people are using as a means for counting number of payments being created during a payroll run.  I would like to get a total number of checks, direct deposits, wires and zero net checks.  My initial thought is to use the Pre-DME number "Selected and Evaluated Persons".  This number seems to always match the number of persons "Selected" and "Evaluated" in posting to FI/CO.
    Since many companies are restricting use of SE16 and access to many of the BT tables is locked down, I would like to use something that the end user has access to and can easily use.  I don't believe the spools from RFFOUS_C and T are appropriate since it would have overflow pages (2 page REM Statements) in that number and thus would not be an accurate reflection of total number of payments.
    I would appreciate your insight and thoughts on this topic.
    Thanks!

    Hello Jennie,
    This is what we do every payroll:
    1. After running live payroll and before exiting our users run wage type reporter /559 to get the payroll net pay. They also run Postings to FICO simulation run to check payroll net pay GL account. This match all the time. So this is the first pass.
    2. They finish all subsequent activities in PRD run upto RFFOUS_T.
    3. We have developed a custom report which almost looks like REGUH which gives the net pay details by every payment method and amount to be deposited or paid. We match this report from the output we received from step 1.
    4. Run postings to FICO live and check the payroll net pay GL account for final validation.
    The steps might sound tedious but of a great use.
    Arti

Maybe you are looking for

  • Webinterface on WRT54G V7.001 / V7.003

    I bought a new WRT54G Linksys router, V7.001 and is upgraded to V7.003. However, the webinterface is normal available via 192.168.1.1, no tabs or text is visible neither changes can be stored. The helpdesk is yet unknown with this problem, which can

  • New costing run within same period for relased cost estimate

    Hi All Once we have run the costing run. The price is marked and released. Then If we have to again runthe costing run, system says price for the priod has been released and doesnt allow to proceed. How to overcome this? Cant we run costing run as an

  • How to install Oracle Management Server Oracle9i

    Please tell me the steps one takes to properly install Oracle Management Server (Oracle9i) on a PC. Which of the diskettes to use for installation, and what are the cookbook steps from 1 - 10 for a beginner. I thought I had loaded the software on my

  • What is a DTU exactly?

    I know that a DTU "[...]represents the power of the database engine as a blended measure of CPU, memory, and read and write rates." But this means nothing to me. When planning my application development, how am I supposed to plan around such an arbit

  • ReportMigration Using LCM & Simple Import & Export.

    Hi, I just want to know the difference between these two.. migrating the reports using LCM or by a simple import & export. Will LCM even migrate the user security which is associated with the report?? Can anybody throw some light on this. Thanks Jaga