Re: [long][JMF] encoding only a part of a stream

Discussion in 'Java' started by Marco Parmeggiani, Apr 19, 2004.

  1. In data Thu, 25 Mar 2004 18:39:20 +0100, Marco Parmeggiani ha scritto:

    > the encoded stream is not made up of the pieces selected by the user
    > starting and stopping the ENCODER. Instead it has the lenght of the whole
    > session of "monitoring" and, between instants when the user presses "stop
    > encoding" and then again "start encoding", the final videoclip has a still
    > image of the "stop encoding" instant.


    ok, i've worked it out.
    the AVI writer is adding those frames.
    when i stop the encder processor the writer stops writing, and this is
    good.
    when i restart it, the avi writer sees Buffers with a greater timestamp of
    the last written so it fills the gap with blank frames.
    the solution is to keep track of timestamps passed to the writer in order
    to avoid gaps and feeding him a "continuos" flux of data qithout time
    jumps. it could be done with an Effect plugged into the encoder codec
    chain.

    very hard to find this feature. i had to dig out half of JMF source
    code....

    ciao
     
    Marco Parmeggiani, Apr 19, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    778
    Andrew Thompson
    Jul 20, 2006
  2. George Marsaglia

    Assigning unsigned long to unsigned long long

    George Marsaglia, Jul 8, 2003, in forum: C Programming
    Replies:
    1
    Views:
    752
    Eric Sosman
    Jul 8, 2003
  3. Daniel Rudy

    unsigned long long int to long double

    Daniel Rudy, Sep 19, 2005, in forum: C Programming
    Replies:
    5
    Views:
    1,248
    Peter Shaggy Haywood
    Sep 20, 2005
  4. Mathieu Dutour

    long long and long

    Mathieu Dutour, Jul 17, 2007, in forum: C Programming
    Replies:
    4
    Views:
    518
    santosh
    Jul 24, 2007
  5. Replies:
    0
    Views:
    2,405
Loading...

Share This Page