Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (VoroneTZ, vicknick), 802 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Problem with media_tune #456333
11/19/15 07:53
11/19/15 07:53
Joined: Dec 2010
Posts: 224
NRW, Germany
NeoJones Offline OP
Member
NeoJones  Offline OP
Member

Joined: Dec 2010
Posts: 224
NRW, Germany
Hi,
I play a .wmv file with media_play, but if I use media_tune, than my movie dont playing. It shows me the first frame of the movie and stopped.
Has anyone an idea?

Regards, NJ

Last edited by NeoJones; 11/19/15 07:54.

Errors are the engine of progress.

Version: A8 Commercial
OS: Win 7 64bit
Models: Cinema 4D
Re: Problem with media_tune [Re: NeoJones] #456335
11/19/15 08:09
11/19/15 08:09

M
Malice
Unregistered
Malice
Unregistered
M



http://www.conitec.net/beta/amedia_tune.htm
Quote:
rate the new playing speed or sound frequency in percent, or 0 for no change. For instance, give 100 for normal speed, 50 for slow motion or half frequency, or 200 for double speed or double frequency.


Make sure rate is rate is at 100 not 0.

Otherwise I'll do some testing to if I can repeat and solve this issue.

Mal

Re: Problem with media_tune [Re: ] #456337
11/19/15 08:25
11/19/15 08:25

M
Malice
Unregistered
Malice
Unregistered
M



Code:
function main()
{
  vec_set(screen_size,vector(800,400,0));
  vec_set(screen_color,vector(50,1,1)); // dark blue
  vec_set(sky_color,vector(50,1,1)); // dark blue
  video_window(NULL,NULL,0,"My New Game");


media_play("wildlife.wmv",NULL,25);
wait(-10);
media_tune(media_handle,100,150,0);
}



Works as expected. First I had expected it to be unable to change the video play speed - this tune feature is for audio only, is my assumption.
Second - Did adjust volume
Three - could not exceed the master volume - which when set at full was even louder

Mal

links -
http://www.conitec.net/beta/amaster_vol.htm
http://www.conitec.net/beta/amidi_vol.htm

Last edited by Malice; 11/19/15 08:32.
Re: Problem with media_tune [Re: ] #456357
11/19/15 19:35
11/19/15 19:35
Joined: Dec 2010
Posts: 224
NRW, Germany
NeoJones Offline OP
Member
NeoJones  Offline OP
Member

Joined: Dec 2010
Posts: 224
NRW, Germany
Thanks Malice, but thats my problem. I dont need media_tune for the volume or balance, I need it to set the speed (rate) of the movie...

I cant find a notice, that the rate is only for audio in the manual or I need a brille O.O, uhh sorry I need a second screen for google translator grin

"...rate the new playing speed OR sound frequency in percent..."

Regards, NJ

Last edited by NeoJones; 11/19/15 19:47.

Errors are the engine of progress.

Version: A8 Commercial
OS: Win 7 64bit
Models: Cinema 4D
Re: Problem with media_tune [Re: NeoJones] #456358
11/19/15 23:31
11/19/15 23:31

M
Malice
Unregistered
Malice
Unregistered
M



Quote:

I cant find a notice, that the rate is only for audio in the manual or I need

I'm sure it doesn't, but I've been doing this for 14 years with this engine. But I was wrong!
So if I recall, it doesn't change play speed of video, or it doesn't do it in full screen. Again Wrong!
I believe that functionality has never been a part of the engine, just like seeking within the video time_stamps. More Wrong!

But it's easy to test, use the top 4 video formats. Try to slow each one. If all fail, it is not a function of the engine to change play speeds of videos. If one format passes, it's is not possible with the other formats, it's a format/codec limit. -- And I did it for you!

It is a basic game engine with functions to play video, not a video player app or editor app. If I prove to be correct, then you should need a dll extension for the functionality you want or to do it directly with direct x 9 code. Shut up Mal

Quote:
"...rate the new playing speed OR sound frequency in percent..."
a media stream can be audio, video or still image, therefore not all features of the function apply to all media, you can not after all raise the volume of a still image or it's play speed/rate. Also your welcome to 'ask the developers' and 'blame the manual'
Even more WRONG!

If I get bored I'll run some test and even look for a dll that will give you this feature. If I get bored or time.
- And so I did, I except cash, gifts and sexual favors for my work .... lol jk
Mal

Last edited by Malice; 11/20/15 06:02.
Re: Problem with media_tune [Re: ] #456362
11/20/15 05:58
11/20/15 05:58

M
Malice
Unregistered
Malice
Unregistered
M



@Neo

I was able to use a tool - freemake(tool dl trigger AV like crazy!) - to convert wmv to avi - xvid_codec, and it did work. Rate changed the play speed. So I'm wrong! The media_tune can't adjust wmv, and mp4-h.264 will not play at all.

So you'll have to hunt for a format/container and codec that works best files_size/play quality.

An update to fix this is highly unlikely, however you could ask.

Mal

Re: Problem with media_tune [Re: ] #456365
11/20/15 11:30
11/20/15 11:30
Joined: Dec 2010
Posts: 224
NRW, Germany
NeoJones Offline OP
Member
NeoJones  Offline OP
Member

Joined: Dec 2010
Posts: 224
NRW, Germany
Yes, an update to fix for the wmv or a solution for mp4-h.264 would be really nice! Ok, with avi it works, but I think its a very bad format, to big file size. I test one file: wmv-> 22mb, avi->237mb grin

Iam not a friend of avi files. What do you mean with "ask"?

Best regards, NJ

Last edited by NeoJones; 11/20/15 11:44.

Errors are the engine of progress.

Version: A8 Commercial
OS: Win 7 64bit
Models: Cinema 4D
Re: Problem with media_tune [Re: NeoJones] #456374
11/20/15 19:01
11/20/15 19:01

M
Malice
Unregistered
Malice
Unregistered
M



Quote:
I test one file: wmv-> 22mb, avi->237mb
make sure you are compressing the avi this a codec like xvid... You should be able to get a better conversion size. My test was a wmv 2.13 mb to avi(xvid) 2.27 mb. Sounds like you made a uncompressed avi...!!!

Quote:
I am not a friend of avi files. What do you mean with "ask"?

The 'Ask the Developers ' thread on this forum allows you to directly talk to jcl about the engine, and because this could be called a bug , the "Bug Report" thread could be used to ASK for and update. LOL good luck!

Mal

Re: Problem with media_tune [Re: ] #456391
11/21/15 00:56
11/21/15 00:56
Joined: Dec 2010
Posts: 224
NRW, Germany
NeoJones Offline OP
Member
NeoJones  Offline OP
Member

Joined: Dec 2010
Posts: 224
NRW, Germany
Oh okay. Yes, thats better than my codec. I used cinepak codec.
>> Ask the Developers - Thanks Mal, good to know laugh


Regards, NJ


Errors are the engine of progress.

Version: A8 Commercial
OS: Win 7 64bit
Models: Cinema 4D
Re: Problem with media_tune [Re: NeoJones] #456475
11/24/15 10:28
11/24/15 10:28
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
As I recently found out, .avi is just a container, like .txt, but the content it contains can be in many forms...So, use a suitable codec (encode the video) and it'll be smaller.

It is possible to find snippets on the web and use them almost directly in a dll to encode or decode video files and play them (ffmpeg is a library...) (I suppose the play speed is up to you in this implementation...), but you'll need to somehow get the decoded picture in the engine, maybe in a bitmap and use it on a panel?

I hope this helps a little...


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Page 1 of 2 1 2

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1