PDA

View Full Version : cut issues.


jbarros
06-20-2006, 04:41 PM
Hi, I'm using the PHP CLI sample which came with the code. it works fine except when I use the:

SimpleSet('editor_options_SetUseCut', on2true);
SimpleSet('editor_options_SetCutStartTime', $inpoint);
SimpleSet('editor_options_SetCutStopTime', $outpoint);

and inpoint > 0 (if inpoint = 0, it works fine)

in which case I ALWAYS get a file of 1234 bytes (Regardless of time) and if of course, does not run. When viewed, the created file is gibberish, which indicates that it's actualy trying to create a file and not just echoing to the file what should go to /dev/stderr

Suggestions?

Thanks.

-- James

jbarros
06-20-2006, 06:55 PM
ok, problem 1 solved. I thought I was giving it times in ms instead of seconds, so now that my inpoint and outpoint are within bounds, it creates the file, which runs for the apropriate amount of time, but it only shows me a badly blown out version of the first frame the whole time. no animation no motion, come to think of it, no sound.

my settings are as follows:

SimpleSet('Flix2_SetOutputFile', $temp);
SimpleSet('Flix2_SetOverwriteExistingFiles', on2true);

SimpleSet('audio_options_SetFlvAudioFormat', FlvAudioMp3);
SimpleSet('audio_options_SetSamplingrate', Hertz44100);
SimpleSet('audio_options_SetBitrate', Bitrate128kbps);

SimpleSet('video_options_SetVideoCodec', CODEC_VP6);

SimpleSet('video_options_SetRateControlType', VBR2PASSControl);
SimpleSet('video_options_SetCompressMode', COMPRESSMODE_BEST);

SimpleSet('video_options_SetImageWidth', 480);
SimpleSet('video_options_SetImageHeight', 360);

SimpleSet('video_options_SetKeyframeInterval', 50);
SimpleSet('video_options_SetKeyframeIntervalType', MAX_KEYFRAMES);
SimpleSet('video_options_SetMaximumBitrate', Bitrate768kbps);
SimpleSet('video_options_SetUseMaximumBitrate', on2true);

SimpleSet('editor_options_SetUseCut', on2true);
SimpleSet('editor_options_SetCutStartTime', $inpoint);
SimpleSet('editor_options_SetCutStopTime', $outpoint);

where inpoint and outpoints are in seconds, and $temp is a file path that works.

It creates the file, and the first frame is acurate, but then the movie runs (for aproximately the correct amount of time) and the scene doesnt change.

Please Advise.

Thanks.

-- James

jbarros
06-21-2006, 11:02 AM
ok, so maybe what I need is a semicolon check. :(

VBR2PASSControl should be VBR_2PASSControl however, that still doesnt work, as the videos do the same thing. runs for the appropriate amount of time, but does advance frames, it just sits on the first frame.

Suggetions?

Thanks.

-- James

jbarros
06-22-2006, 08:55 PM
ok, so, I don't know what changed, but it works now. :(

Sorry to bug you.

-- James