qakmak
Hi Roman, today I find 2 problems.
1.Why MPEG-2 file convert to h264 use FFMPEG SDK So slow ..... I feel that slow than Video Edit SDK encrypt(you know Video Edit SDK encrypt will use h264). Is that normal? or there is some option not enable? I try all code. even my server i7 cpu convert will use 3-5 minute(but funny thing is my laptop computer core 2.0Ghz only use about 6 minute.......Why the i7 only fast 3 minute??? and I found i7 will use 100% cpu, and some time even the progress bar will stuck...
2.MPEG-2 file use FFMPEG SDK convert to H264, that's fine. but if encrypted that H264 file, then the encrypted file will very stuck and the video slow than audio. video not smooth. I give you the sample file for test and sample code.
videoEditFFMPEG.Output_Video_Bitrate = 2000 * 1000;
videoEditFFMPEG.Output_Video_BufferSize = 1000 * 1000;
videoEditFFMPEG.Output_Video_Bitrate_Min = 1000* 1000;
videoEditFFMPEG.Output_Video_Bitrate_Max = 3000 * 1000;
videoEditFFMPEG.Profile = VFFFMPEGSDKProfile.Custom;
videoEditFFMPEG.Output_Muxer = VFFFMPEGSDKMuxFormat.MP4;
videoEditFFMPEG.Output_Audio_Channels = VFFFMPEGSDKAudioChannels.Stereo;
videoEditFFMPEG.Output_Audio_SampleRate = 48000;
videoEditFFMPEG.Output_Audio_Bitrate = 128000;
videoEditFFMPEG.Output_Audio_Encoder = VFFFMPEGSDKAudioEncoder.AAC;
videoEditFFMPEG.Output_Video_AspectRatio = VFFFMPEGSDKAspectRatio.AR_None;
videoEditFFMPEG.Output_Video_Encoder = VFFFMPEGSDKVideoEncoder.H264;
videoEditFFMPEG.Output_Video_FrameRate = VFFFMPEGSDKFrameRate.frOriginal;
videoEditFFMPEG.Video_Effects_Add_Deinterlace();
videoEditFFMPEG.Sources_AddFile(video path, true, false, 0);
videoEditFFMPEG.Sources_AddFile(wav1 path, false, true, 1);
videoEditFFMPEG.Sources_AddFile(wav2 path, false, true, 2);
last time I give you the sample code is h264, this time it's a MPEG-2
https://www.dropbox.com/s/jx7m18pxzj0y2as/wav32.rar
on February 12, 2014 23:46