Playing videos in reverse. Possible ?

Posted By: lucidman

Playing videos in reverse. Possible ? - 05/05/07 23:36

Can videos played using media_play or media_loop be played backward?

I have tried to do this with media_tune by setting the "rate" parameter to -100. The video will mostly play forward, but will jerk into reverse for a very short blip every few seconds.

Any suggestions?

Thanks
Posted By: Anonymous

Re: Playing videos in reverse. Possible ? - 05/06/07 06:14

I believe it's impossible but it's possible to flip the video with a rendering too l (adobe primiere).
If it's just one file pm me a download-link of the movie and I'll do this for you...

mercuryus
Posted By: lucidman

Re: Playing videos in reverse. Possible ? - 05/06/07 19:51

mercuryus:

Thanks for the offer. Actually I need to be able to play the video forward or backward depending on real-time conditions.

To clarify the question, does the engine allow controlling the video this way (forward then backward) with media_tune?

Thanks
Posted By: ventilator

Re: Playing videos in reverse. Possible ? - 05/06/07 19:58

i don't know if the media commands of the engine allow it but for sure this also depends on the used video codec.

most codecs don't encode every frame as full image but only the differences to the previous frame(s) so smooth backward playback is tricky. i think you would have to use a codec which encodes every frame as full image like motion jpeg or dv (which actually is motion jpeg too).
Posted By: lucidman

Re: Playing videos in reverse. Possible ? - 05/07/07 00:29


ventilator said:
Quote:

i don't know if the media commands of the engine allow it but for sure this also depends on the used video codec.

most codecs don't encode every frame as full image but only the differences to the previous frame(s) so smooth backward playback is tricky. i think you would have to use a codec which encodes every frame as full image like motion jpeg or dv (which actually is motion jpeg too).




Thanks for responding Ventilator.

The videos in question are actually AVI files. Is there a codec involved in playing an AVI file?

Thanks.
Posted By: lostclimate

Re: Playing videos in reverse. Possible ? - 05/07/07 05:52

you can probably look for some c++ video playing libraries, and make a dll, but that might be a bit more difficult than the worth, if you do it tho, i'd put a few more features into the dll and sell it as a plugin, im sure it'd sell to some people.
Posted By: jcl

Re: Playing videos in reverse. Possible ? - 05/07/07 06:26

I don't think that videos can be easily played in reverse - codecs usually only store the difference of the current frame to the previous one.
Posted By: lucidman

Re: Playing videos in reverse. Possible ? - 05/07/07 15:05

Thanks all.

These are all good answers.

lucidman
© 2024 lite-C Forums