Home > Archive (Community help, from old helpdesk) > use Video Edit SDK 8.0 Convert to MP4. the AAC audio still very bad!

use Video Edit SDK 8.0 Convert to MP4. the AAC audio still very bad!

Avatar image
Aug 23, 2015
Archive Agent wrote
Long time ago when I use this I found it .And you recommend me use 320k mode AAC audio and encrypted video(or convert mp4). And I use Headset test it , I thought problem resolved. But today I go to my customer work place. and use Big sound box play some music.

And we all realise , The sound quality very bad. Bass is too low, very dry. Treble harsh music overall distortion.

So I hope you can fixed it as soon as possible. of course, I already found use Video Edit SDK convert or encrypted not a good solution, because the video quality(little stuck problem) and the audio just like I said before very bad. I before require you add new encrypted mode (use Video Edit SDK FFMPEG convert mp4 first and use fast encrypted api encrypted it). but looks like you very busy and I'm not money for pay you make it for me now(maybe Future).

So I just hope can you just fixed the aac sound will distorted problem when use Video Edit SDK convert mp4 or encrypted. I hope you can as soon as possible fixed it . I just hope I can use 128K aac just like other convert tool Sounds completely normal. At least 320K the sound is completly great. it's very important to me right now, or else I will lost my customer. Thanks.

qakmakqakmak on December 11, 2013 7:36 PM
Completed
0
Vote
Reply
131 Answers
Aug 23, 2015
Archive Agent agent wrote
qakmak

I use this set AAC

// Audio AAC settings
videoEdit.MP4_Audio_AAC_Bitrate = 320;

videoEdit.MP4_Audio_AAC_Version = VFAACVersion.MPEG4;
videoEdit.MP4_Audio_AAC_Output = VFAACOutput.RAW;
videoEdit.MP4_Audio_AAC_Object = VFAACObject.Main;

on December 11, 2013 9:21 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

I just listened to with headphones . original sound and that AAC when converted, different is really too much, especially not clear.

I'm use PSY-Gangnam Style MP4 convert to MP4 test it. I think you have this file for test.

on December 11, 2013 9:22 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

I hope you update MP4 H264 / AAC Directshow SDK 7.0 to 8.0 and fixed these problem. very thanks.

on December 11, 2013 9:27 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

and the encrypted api because these all use same MP4 + AAC format .

on December 11, 2013 9:27 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

I try use MP3 replace AAC.
videoEdit.MP4_Audio_Format = VFMP4AudioEncoder.MP3_LAME;

but result is same , sound not clean. I think this is not about AAC. that is about other thing. please find it and fixed. thank you.

on December 12, 2013 4:17 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

My feeling is after than the conversion , the original sound changed. sounds not like original sound.

on December 12, 2013 4:40 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

Today I use LAMP, only convert to mp3. not mp4(AAC). and audio quality still changed. So maybe looks like all sounds will be destroy if convert by Video Edit SDK.

I think it's a very serious bug. I hope you can find it.

on December 13, 2013 9:45 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

I made a Video Record for you listen. please download and see.

https://www.dropbox.com/s/yte0eb68038752q/SoundProblem.avi

on December 17, 2013 1:50 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

How much if requirement a new encrypted mode?
1.first can convert the media file to MP4 use ffmpeg(must support multiple audio stream, auto bitrate: really auto bitrate , I mean auto detect the original file, for example there is a 720p file, and auto set the destination MP4 bitrate to 1000-3000, 480p file auto set the destination MP4 to 500-1500 ....some thing like that)
2.More fast convert speet and best quality(not like current Video Edit SDK happening some little stuck and slow converting, bad quality)
3.Normal AAC audio quality(even use 128k, the audio very good. Not worse like that even use 250k still different with the original)
4.second when finish convert MP4, use your fast encrypted API encrypted the file.(because already converted it to MP4+AAC, I think it will very fast and stable)

I just one to know if requirement just like that 4 condition feature how much?

thanks....

on January 13, 2014 10:02 PM
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

This API is available already, so, you can use it. Any problems with FastCrypt API?

If yes please send used code and sample file.

You are correct, H264/AAC MP4 file required.

on January 14, 2014 10:11
Aug 23, 2015
Archive Agent agent wrote
qakmak

No. you are not understand what I mean.

I mean is use FFMPEG convert mp4 first, not use current Video Edit SDK. you know current Video Edit SDK MP4 or encrypted has some problem.(like video little stuck and AAC audio sounds not same with the original file audio)

on January 14, 2014 10:41
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Yes, I understood.

So, you got MP4 file after FFMPEG convertion.

Next step - use FastCrypt API of SDK to encrypt file. Correct?

on January 14, 2014 10:43
Aug 23, 2015
Archive Agent agent wrote
qakmak

you mean use Video Edit SDK FFMPEG first ?

that's good, but don't you combine Video Edit SDK and Video Edit SDK FFMPEG ?? If I'm use it i need to buy it alone.... just only for convert mp4

and another problem is :
1.looks like current Video Edis SDK FFMPEG not support auto set bit rate.
2.looks like current Video Edis SDK FFMPEG not support multiple audio stream....

on January 14, 2014 10:46
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

No, I mean you can get MP4 file using absolutely any way...

Please show me your code for FastCrypt API.

on January 14, 2014 10:58
Aug 23, 2015
Archive Agent agent wrote
qakmak

I'm still using Video Edit SDK encrypted the media file.(current not use FastCrypt API yet, I know it support MP4+AAC)
because I have a lot media file need convert, and all is multiple audio stream. now I'm not has other way to convert MP4 file.

So I ask question about new encrypted mode. even I'm use Video Edit SDK FFMPEG(MP4+AAC) +Video Edit SDK(fast encrypted) but because I need convert it to mp4 first. So I need create temp file, but It will by customer see, and maybe keep, I don't want this happening.

on January 14, 2014 11:05
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Well, FastCrypt uses files as input by design.

on January 14, 2014 11:33
Aug 23, 2015
Archive Agent agent wrote
qakmak

Yes. But current problem is aac audio quality and mp4 auto bitrate problem

So can you use video edit sdk+video edit sdk ffmpeg create a new encrypted mode?

Then FastCrypt I think can execute on memory.

on January 14, 2014 11:37
Aug 23, 2015
Archive Agent agent wrote
qakmak

by the way, Can you give me the Audio Effect ax file source code for debug problem:http://support.visioforge.com/forums/172855-developers-community-help/suggestions/4243811-about-media-player-sdk-let-the-all-application-cr

I write a lot message, but you're not see it....

on January 14, 2014 11:54
Aug 23, 2015
Archive Agent agent wrote
qakmak

By the way, class DSAudioEffects in Visioforge.MediaFramework

public bool InitIntf() method when execute FIntf.set_RemoveAllFilters(); My log display:

WpfApplication2.exe 0x09d1633a Maybe Has Error: 0xC0000005: When Write Position 0xc707c39f hapeening Access Violation

on January 15, 2014 13:14
Aug 23, 2015
Archive Agent agent wrote
qakmak

Hi Roman. How much need pay If required the New encrypted mode please? (just like I before said 4 condition to 1 feature)

on January 22, 2014 20:18
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

What you mean? Please describe full job.

on January 22, 2014 22:55
Aug 23, 2015
Archive Agent agent wrote
qakmak

1.first can convert the media file to MP4 use ffmpeg(must support multiple audio stream, auto bitrate: really auto bitrate , I mean auto detect the original file, for example there is a 720p file, and auto set the destination MP4 bitrate to 1000-3000, 480p file auto set the destination MP4 to 500-1500 ....some thing like that)
2.More fast convert speet and best quality(not like current Video Edit SDK happening some little stuck and slow converting, bad quality)
3.Normal AAC audio quality(even use 128k, the audio very good. Not worse like that even use 250k still different with the original)
4.second when finish convert MP4, use your fast encrypted API encrypted the file.(because already converted it to MP4+AAC, I think it will very fast and stable)

You said MP4 feature already finish. but DirectShow MP4 not good like FFMPEG mp4 feature. So I think for video and audio quality I need use FFMPEG convert and encrypted.

So How much and How long can finish it please.

on January 23, 2014 07:39
Aug 23, 2015
Archive Agent agent wrote
qakmak

Or you let current Video Edit SDK MP4/Encrypted more better. like AAC quality problem, little stuck and video quality problem. auto bitrate(real VBR), more fast convert speed and small volume. If that's still can't possible I hope you can add new encrypted mode. if can please tell me need how much too.....thanks.

on January 23, 2014 17:16
Aug 23, 2015
Archive Agent agent wrote
qakmak

Hi Roman, How about my payment requirement please?

on January 27, 2014 15:02
Aug 23, 2015
Archive Agent agent wrote
qakmak

If you don't have free time now, please just fixed Video Edit SDK mp4/encrypted(AAC audio quality problem) first. I can pay for this if you need.

on January 28, 2014 14:22
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

We unable to implement encryption in FFMPEG, but you can find alternative H264 and AAC encoders for DirectShow encryption (we'll add API to use them within several days). Our AAC encoder is FAAC based, H264 encoder is Intel Media SDK based.

on January 28, 2014 15:02
Aug 23, 2015
Archive Agent agent wrote
qakmak

Sure. but what about AAC ? Which encoder you used for AAC?

If you can't fixed it for pay. I hope you can share me the source code for AAC encoder, or payment fixed it to me, very thanks.....

Current AAC quality problem happening on when convert to MP4 or Encrypted(Video Edit SDK)

on January 28, 2014 15:08
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

https://www.dropbox.com/s/2wqz8bp3j24vejs/MP4Filters.zip

Change filter CLSID to prevent conflict with our original filter.

You can play with it in Graphedit for example.

on January 28, 2014 15:14
Aug 23, 2015
Archive Agent agent wrote
qakmak

Thanks I will download and analyze it now.

Please if you add API don't forget for Audio Effect. I'm change some code before, Maybe I can fix the crash problem.

on January 28, 2014 15:18
Aug 23, 2015
Archive Agent agent wrote
qakmak

Sorry, what library on the ThirdParty/BaseClasses folder? it can't found.

on January 28, 2014 15:58
Aug 23, 2015
Archive Agent agent wrote
qakmak

what version the Intel Media SDK you used?

on January 28, 2014 18:03
Aug 23, 2015
Archive Agent agent wrote
qakmak

I download Media Player Classic - Home Cinema and replace it.
Because you not give me H264Encoder and MP4Muxer. I remove it.
I also download Media SDK 2014 for Clients and link it.

but when I finish build and try to convert MP4. Video Edit SDK display Error:Unable to create filter:Visioforge MP4 muxer.....

Sorry. looks like you need to give me full encrypted code............

on January 28, 2014 19:32
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Baseclasses - DirectShow headers from Microsoft, available in Windows SDK.

Intel Media SDK, latest compatible with Windows XP, not sure about version.

If you are rebuilded filter without changing CLSID as I told it's registered itself and replaced original filter that have H264 encoder and MP4 muxer.

on January 29, 2014 11:11
Aug 23, 2015
Archive Agent agent wrote
qakmak

I just want test it before change CLSID(now even I'm change it , I dong't have api). SO I need rebuild it. but I don't have H264 encoder and MP4 muxer source. Is these source can download from Internet(if you use some open source)? or need me write these all code by own?

I just worry If all I need write myself, some api head not match with the Video Edit SDK.

I need test convert mp4 or encypted, and try to find the aac quality problem(if can possible find video little stuck problem too)

on January 29, 2014 11:20
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

It's not open source... And cost a lot for us. So, we can share but only for some money amount. You can use our H264 encoder and MP4 muxer, because you told a problems with AAC audio that much simpler for implementation and uses FAAC.

on January 29, 2014 11:44
Aug 23, 2015
Archive Agent agent wrote
qakmak

Sure. then please send the full version code to me : mmtj@oybab.net

when I found problem source, or can fixed it use some way. I will send back to you. because I also need encypted feature need to be fixed, you know I'm only use encypted feature . test mp4 code all for fixed encypted aac problem.

on January 29, 2014 11:49
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

I have shared AAC encoder code. That code do you need?

H264 encoder and MP4 mux will cost additional $ for you...

on January 29, 2014 11:52
Aug 23, 2015
Archive Agent agent wrote
qakmak

Of course, If you can fixed aac audio problem I can pay to you too. I just not sure the problem source is about AAC encoder or MP4 muxer. I go to FAAC website, not found any one has this problem. I remember I try convert MP4+MP3 but the audio still bad. so I'm not sure.....

on January 29, 2014 12:30
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Okay, we can sale it for EUR 900, with no right to publish it anywhere.

on January 29, 2014 12:39
Aug 23, 2015
Archive Agent agent wrote
qakmak

Little expansive to me . How about EUR 300?
You know I only use it to for my product, not will sale or use anything. and I also buy encrypted product(it's also used mp4 too).

on January 29, 2014 12:47
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

We agreed for EUR 500.

on January 29, 2014 12:50
Aug 23, 2015
Archive Agent agent wrote
qakmak

If you want EUR 500. then how about give me the encrypted and decrypted filter too for I can use it custom encrypted my media file ?

on January 29, 2014 12:54
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Encryption / Decryption filters cost is additional EUR 1000, without any discounts.

on January 29, 2014 12:55
Aug 23, 2015
Archive Agent agent wrote
qakmak

If I find the probem source . I need changed encrypted filter too? or only change the mp4 filter also can fixed the aac problem when encrypted?

Because I'm not like you a DirectShow master+MVP. I warry if I can't fixed mp4 problem it's some Risk for me(warry to waste)

on January 29, 2014 12:57
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Mmm, encryptor is a modified MP4 muxer, so, potentially yes. But if problem with encryptor and we can use original MP4 muxer to fix it we'll fix it on our side.

on January 29, 2014 13:06
Aug 23, 2015
Archive Agent agent wrote
qakmak

Ok......So can I pay to you EUR 200 let you take several days to fixed aac problem please?

Of course I'll buy the MP4/encrypted+decrypted filter source when I have a lot money on future. and used it only my company product.

on January 29, 2014 13:11
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

We unable to find AAC problems, and of course we'll fix it for free if it will be possible. We just use exisitng FAAC encoder.

on January 29, 2014 13:26
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

MP3 is not alternative?

on January 29, 2014 13:27
Aug 23, 2015
Archive Agent agent wrote
qakmak

I remember berore I try to use MP3 replace AAC. but the sound still not good. but today I don't know what's going on, I can't output MP4 with MP3 , always tell me Access violication exception.

on January 29, 2014 13:30
Aug 23, 2015
Archive Agent agent wrote
qakmak

Then give it to me EUR 300 please. I try to find it , I actually a lot worry about find it or not, Because even you don't know problem source.

on January 29, 2014 13:59
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Sorry, I have made giant discount already. EUR 500 is the final price.

on January 29, 2014 15:14
Aug 23, 2015
Archive Agent agent wrote
qakmak

Please understand. I worry can't find the problem, then......waste the money.

How about this? you add Video Edit SDK FFMPEG multiple audio stream feature. Then I can buy it when some day you Web side has some 50% Discounts day. and use video Edit SDK FFMPEG convert my media file to MP4 then encypted use Video Edit SDK fast encrypted api Temporarily. When I sale my product and has a lot money then I reconsider buy the MP4/Encrypted/Decrypted filter source code.

How do you think?

on January 29, 2014 15:27
Aug 23, 2015
Archive Agent agent wrote
qakmak

Can you consider it please. that's a only good way for now.

on January 29, 2014 17:38
Aug 23, 2015
Archive Agent agent wrote
qakmak

Please help me, you know I take a lot time for this......

on January 29, 2014 19:48
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

We agreed to sell MP4/H264 for EUR 400. Agreed?

on January 29, 2014 20:08
Aug 23, 2015
Archive Agent agent wrote
qakmak

Thanks a lot. How about this? I buy Video Edit SDK FFMPEG too. sale it too me Discounts 50%

400+200=600. Only I need to do is add multiple audio stream feature on it.

I think If I really can't find the aac code problem, I can use Video Edit SDK FFMPEG temporarily, Until we can find way to let MP4(encrypted) and AAC filter more better.

You'll not loss too many , I also has another choice.

I just want my product sale fast not problem. we'll keep cooperation. deal?

on January 29, 2014 20:39
Aug 23, 2015
Archive Agent agent wrote
qakmak

I think that feature can possible to make it.
MP4 multiple audio stream:
http://ffmpeg.gusari.org/viewtopic.php?f=12&t=828
http://ubuntuforums.org/showthread.php?p=11780621#post11780621

h264 and AAC set to VBR(Auto) looks like only need set max and min value

http://www.rosoo.net/a/201202/15764.html

on January 30, 2014 07:35
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

I think we agreed (no source code for FFMPEG SDK), but we must check multiple streams feature first. So, it's morning here, I'll check within several hours and reply.

on January 30, 2014 10:20
Aug 23, 2015
Archive Agent agent wrote
qakmak

Sure. FFMPEG SDK only Binary what I need now for convert to MP4+AAC. I really don't have any other money for buy source :-) for now.

another thing is, If possible(I mean if you Surely modify FFMPEG SDK) ,Can you add VBR feature too ? please check it together) I mean set the h264 mp4 media file and aac file min bitrate and max bitrate, then can convert to on VBR mode.

thanks you very much. I'll be waiting you reply.

on January 30, 2014 10:44
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

All sounds real.

on January 30, 2014 11:00 AM
Aug 23, 2015
Archive Agent agent wrote
qakmak

OK. Then how many days you need add this feature?
Can we still trade on the website? just like before I'm buy your other product.(More simple)

on January 30, 2014 11:11 AM
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Maybe simpler to use FFMPEG.exe directly instead our SDK? Looks like a job that takes a lot of time now...

on January 30, 2014 11:43 AM
Aug 23, 2015
Archive Agent agent wrote
qakmak

But It's not convenient to me. and I think if you add this feature will make you FFMPEG SDK more better. if now you're not add. maybe feature still need add it right? Can you try to add these please. very thanks.

on January 30, 2014 11:47 AM
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

OK, we'll play with it today. Maybe all real.

on January 30, 2014 11:54 AM
Aug 23, 2015
Archive Agent agent wrote
qakmak

Sorry, Is that finish?

on February 2, 2014 2:07 PM
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Not yet.

But have some optimistic results.

Will be ready today or tomorrow.

on February 3, 2014 11:11 AM
Aug 23, 2015
Archive Agent agent wrote
qakmak

Ok. thanks.

on February 3, 2014 11:21 AM
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Updated version - http://visioforge.com/files/regs/visioforge_sdks_installer_dotnet_setup_full2.zip

Video Edit FFMPEG SDK updated.

Just add file with 2 audio streams in demo app or in your code and you'll have file with 2 audio streams autoatically.
No API changes.

on February 3, 2014 12:30 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

Sure, I download now and test.

on February 3, 2014 12:32 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

You mean original file must be two audio stream file?

But some time need input the audio file from other audio file..... like from mp3 or WAV.

on February 3, 2014 3:38 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

I mean there is 3 file . 1 video file and 2 audio file. I need put it together and combine to a media file has multiple audio stream and video.

on February 3, 2014 3:41 PM
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

I think we need API changes to manage this but sounds real.

on February 3, 2014 3:43 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

Yes, Can you add a new API let input video and audio all let developer select please? I think Video Edit SDK input design is very humanity. Video and Audio all can select, even the audio Delay or early too.

Thanks for your help.

on February 3, 2014 3:47 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

another thing is how about the auto bitrate? I don't find and set max and min bitrate option for video and audio.

on February 3, 2014 3:58 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

I mean vbr

on February 3, 2014 3:58 PM
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

update for multiple streams API

http://visioforge.com/files/regs/visioforge_sdks_installer_dotnet_setup_full2.zip

Sample usage:

// add first stream (video) from file 1
VideoEdit1.Sources_AddFile("c:\\vf\\axe_matamor.avi", true, false, 0);

// add first stream (audio) fom file 2
VideoEdit1.Sources_AddFile("c:\\vf\\Sophie.mp3", false, true, 0);

To add all streams from file like before set new parameter streamIndex to -1.

on February 4, 2014 1:30 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

Thank you . I'll be download now.

on February 4, 2014 2:14 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

I try use this code
//Video
videoEditFFMPEG.Sources_AddFile("video file", true, false, 0);
//Audio1
videoEditFFMPEG.Sources_AddFile("Audio1 file", false, true, 0);
//Audio2
videoEditFFMPEG.Sources_AddFile("Audio2 file", false, true, 1);

but result Media file is 2 video stream, 1 audio stream.....what's going on?

on February 4, 2014 5:48 PM
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

VideoEdit1.Sources_AddFile("c:\\vf\\axe_matamor.avi", true, false, 0);
VideoEdit1.Sources_AddFile("c:\\vf\\Sophie.mp3", false, true, 0);
VideoEdit1.Sources_AddFile("c:\\vf\\Sophie2.mp3", false, true, 0);

All ok using this code. If second audio file is audio only stream index must be 0, not 1.

on February 4, 2014 6:04 PM
Aug 23, 2015
Archive Agent agent wrote
qakmak

I just try it .can converted, but there is some problem
1.Progressbar not display correctly. when converted finish 100%, only display on 50%.
2.when converted by FFMPEG SDK , and use Fast encrypted API encrypted can't play the file.
3.Bitrate alays not correct. I set 2000 to video. the final result is 2350. and I still don't find set max and min value option in API.

on February 04, 2014 19:29
Aug 23, 2015
Archive Agent agent wrote
qakmak

this is my setting when convert by FFMPEG SDK

videoEditFFMPEG.Profile = VFFFMPEGSDKProfile.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_Bitrate = 2000000;
videoEditFFMPEG.Output_Video_Encoder = VFFFMPEGSDKVideoEncoder.H264;
videoEditFFMPEG.Output_Video_FrameRate = VFFFMPEGSDKFrameRate.frOriginal;

videoEditFFMPEG.Output_Video_Width = 0;
videoEditFFMPEG.Output_Video_Height = 0;

on February 04, 2014 19:31
Aug 23, 2015
Archive Agent agent wrote
qakmak

I also use videoEditFFMPEG.Video_Effects_Add_Deinterlace();

I think maybe not it problem.

on February 04, 2014 19:32
Aug 23, 2015
Archive Agent agent wrote
qakmak

I found problem 2 source. because I use FFMPEG SDK convert the original file to .tmp extends file. and then use fast encrypted Encrypted the .tmp file to avi file. looks like if I rename .tmp to .mp4 then fast encrypted can normal encrypted it. but I don't know why.

on February 04, 2014 19:38
Aug 23, 2015
Archive Agent agent wrote
qakmak

I was wrong, same file, some time still can't play when use fast encrypted. and some time success, but lost second audio stream.......

on February 04, 2014 19:46
Aug 23, 2015
Archive Agent agent wrote
qakmak

some time file size not same.....

on February 04, 2014 19:47
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Mp4 file that you get after FFMPEG SDK is correct? Normal streams count and so on? (except bitrate).

on February 04, 2014 21:20
Aug 23, 2015
Archive Agent agent wrote
qakmak

Well, I confirm these problem, because I just make a lot test.
1.progress bar still not corrct when use multiple audio stream(from file) with FFMPEG SDK, maybe is a little BUG
2.If fast encrypted api finish encrypted, can't play it because I must close the application. I don't know why, maybe when finish fast encrypted not release all resource some thing....

more important is , fast encypted only 1 audio stream when close application open test. but FFMPEG SDK .tmp file has 2 audio stream.

3.When use FFMPEG SDK when I set:
videoEditFFMPEG.Profile = VFFFMPEGSDKProfile.MP4;

the bitrate alwas 2000, even I'm change it not working.
but if I'm set it to:
videoEditFFMPEG.Profile = VFFFMPEGSDKProfile.Custom;
videoEditFFMPEG.Output_Muxer = VFFFMPEGSDKMuxFormat.MP4;

then the bitrate will change to what I set. and I'm confuse the result is VBR, but I can't set min and max bitrate, So the converted video bitrate always big than the bitrate what I set.

YES , MP4 file stream count is correct when use FFMPEG SDK converted.

looks like now the only problem is :
1.progress bar(FFMPEG SDK)
2.fast encrypted api only 1 audio stream(Video Edit SDK)
3.bitrate problem. if there is can min and max value can set the video and audio bitrate, I think it's perfect.

not found other problem now. Thank you.

on February 04, 2014 22:22
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

correct.

quamak, update with all required features will be available today. progress event fixed, vbr max/min bitrate added, now adding multiple streams support for FastCrypt API.

on February 05, 2014 09:32
Aug 23, 2015
Archive Agent agent wrote
qakmak

Ok. I'll be waiting. Thanks.
MediaInfoNV Class ReadFileInfo Method Third param : allowLibMediaInfoUsage what's mean? I don't find the description on the Help chm file. what's different it with the old method?

When you told me new version available told me that together please.

on February 05, 2014 09:39
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Starting one of latest build we have added support for LibMediaInfo usage to extract information from media files as alternative to DirectShow, that depends from codecs installed on pc. So, this way more independent and stable. That LGPL library with C++ code available on sourceforge.

on February 05, 2014 09:45
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

CHM help is updated already, online not yet. Will be officially released in next minor update.

on February 05, 2014 09:47
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Please share your fastcrypt code with us.

We have used one file as source, 1 video stream + 2 audio streams, and all worked.

So, need your code to test.

on February 05, 2014 10:03
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

My file - https://www.dropbox.com/s/l7ngrhzprsfaz4x/%21%21multiaudio2.mp4

And code:

List<string> files = new List<string>();
files.Add("c:\\vf\\!!multiaudio2.mp4");
VideoEdit1.FastEncrypt_Start(files, "c:\\vf\\output.enc", "100");

on February 05, 2014 10:05
Aug 23, 2015
Archive Agent agent wrote
qakmak

sure. Hold on second please.

on February 05, 2014 10:16
Aug 23, 2015
Archive Agent agent wrote
qakmak

My code:

try
{
result = videoEdit.FastEncrypt_Start(new List<string>() { "c:\\test.tmp"}, "c:\\test.avi", "100");
}
catch (Exception ex)
{
ExceptionPro.ExpLog(ex, null, false, "Current File : c:\\test.tmp );
}

My file:https://www.dropbox.com/s/xw4oxmqfngard6k/1395.tmp

You can change the .tmp extends to .mp4 and play it use other player.

I download and try your file, but result still only 1 audio stream.

on February 05, 2014 10:33
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Problem is clear. Your MP4 demuxer have 1 output pin for both audio streams and a special interface to choose audio stream that now active. That's bad for us, because we need independent pin for an each audio stream. We'll use Haali Simple Media Splitter bad use independent pins for MP4 source file. So, solution is simple. Update soon. For AVI files at source audio streams is independent, all ok here.

on February 05, 2014 11:10
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Update - http://visioforge.com/files/regs/visioforge_sdks_installer_dotnet_setup_full2.zip . C# WinForms Main Demo have sample code to set bitrate and buffer size (required for min/max bitrate usage).

on February 05, 2014 12:20
Aug 23, 2015
Archive Agent agent wrote
qakmak

Sure I download it now.

on February 05, 2014 12:22
Aug 23, 2015
Archive Agent agent wrote
qakmak

1. The bitrate for Video or Audio? I check the media file info, but there is display the Audio:Maximum bit rate : 2 500 Kbps

2.I current use FFMPEG to convert media file. when it finish. on OnStop file, I use fast encrypted Encrypted the file. But problem is the converted file and encrypted file can't delete until I close the all application. I need delete the converted file when finish fast encrypted. So can you fixed it to me ? thanks

3.How I need to pay ? if use website , buy which products? can you add a new product for me temporary for buy. I mean you can add MP4 source E800 and FFMPEG E400. and give me 50% discount.(800/2) + (400/2) = E600

on February 05, 2014 17:04
Aug 23, 2015
Archive Agent agent wrote
qakmak

I mean in OnStop event

on February 05, 2014 17:04
Aug 23, 2015
Archive Agent agent wrote
qakmak

Or maybe the fast encrypted api add a new param.
fastEncrypted(original file, encrypted file, password, Is Delete original when finish?(bool));

on February 05, 2014 17:09
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

1. Video. I have not changed anything for audio. Remember, set custom present and MP4 muxer.
2. Problem is clear. I'll check.
3. https://secure.avangate.com/order/checkout.php?PRODS=1222219,4579010&QTY=1,1&PRICES1222219[EUR]=400&PRICES4579010[EUR]=200&PHASH=01d3705340569b02f14edfc9c96da3d7

on February 05, 2014 17:13
Aug 23, 2015
Archive Agent agent wrote
qakmak

I just success pay it. Thank you for these day helping me.
I also hope if you find the MP4 little stuck or AAC sound BUG and fixed first, can update my source code together. very thanks.

on February 05, 2014 17:27
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Thank you!

I'll send MP4/H264 source code soon.

Problem with file deletion is not present on my side... Difficult to told why. I've changed some code and added logging if one of filters is not cleared, I'll share updated SDK soon.

on February 05, 2014 17:35
Aug 23, 2015
Archive Agent agent wrote
qakmak

I just check the other media file , and looks like , max bitrate maybe you put it to audio...... because other media file max bitrate info is in Video, not Audio.

on February 05, 2014 17:37
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

We using maxrate and minrate FFMPEG options, it's for video, not audio.

on February 05, 2014 17:39
Aug 23, 2015
Archive Agent agent wrote
qakmak

Ok....you can check it if you have free time. I'm use Media Player check the media file info.
origial file: Video : Max bitrate:4000

converted file:Audio Max bitrate : 2500

on February 05, 2014 17:41
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

I'm checking using Media Player Classic, for both streams it's 128 Kbps, so, correct value.

Sample file - https://www.dropbox.com/s/6965ex43fh9clg1/output%20%282%29.mp4

Converted using default setttings in Main Demo, Custom profile, MP4 muxer.

on February 05, 2014 17:43
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Audio #1
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Muxing mode : ADTS
Codec ID : FF
Duration : 29s 973ms
Bit rate mode : Variable
Bit rate : 128 Kbps
Channel count : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy

on February 05, 2014 17:44
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

2500 sounds like PCM (Uncompressed) bitrate, compressed audio can't have so big bitrate.

on February 05, 2014 17:45
Aug 23, 2015
Archive Agent agent wrote
qakmak

Hold on a minute, I give you my sample

on February 05, 2014 17:46
Aug 23, 2015
Archive Agent agent wrote
qakmak

the dropbox upload speed very slow....

on February 05, 2014 18:38
Aug 23, 2015
Archive Agent agent wrote
Aug 23, 2015
Archive Agent agent wrote
qakmak

I think you and me converted file info not same....

on February 05, 2014 19:28
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Yes, max rate specified for audio stream too, difficult to told why. But FFMPEG maxrate option usage is correct - http://www.ffmpeg.org/ffmpeg-all.html . Maybe that's correct because it's looks like a flag for audio stream because real audio stream size is correct. So, we can check it but it's doesn't looks like a problem in real life. File is playable and so on, with normal audio stream size and average bitrate.

on February 05, 2014 22:45
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Output video stream bitrate mainly depends from average bitrate, not minimal/maximal bitrate.

on February 05, 2014 22:47
Aug 23, 2015
Archive Agent agent wrote
qakmak

Ok, when "fast encrypted finish can't delete source file" problem fixed, please tell me. thanks.

on February 06, 2014 08:37
Aug 23, 2015
Archive Agent agent wrote
qakmak

not only fast encrypted, FFMPEG SDK can't delete the file too...maybe not release it when finish converted.

if convert a file, and select another file convert, will throw exception:

Access violation at address 1083331 in module "VFFMPEG.dll". Read of address 00000000;
ERROR -, error: file "C: \ xx \ test \ result \ 0181.tmp" is being used by another process, so that the process can not access this file.

on February 06, 2014 08:49
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

please check that process uses this files using some tool, because on my pc all ok.

on February 06, 2014 11:12
Aug 23, 2015
Archive Agent agent wrote
qakmak

FFMPEG main demo has this problem too. you add some file, and set output file to :new.mp4

and converted. and finish. you add another file. output file don't change. and start. try several times.

and fast encrypted I don't find why can't delete too....
There is no any other process. maybe it's still said my application (sdk) process.

on February 06, 2014 11:21
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

http://visioforge.com/files/regs/visioforge_sdks_installer_dotnet_setup_full2.zip

Now problem with FFMPEG SDK must be fixed, we have found a problem.

Fast Encrypt - made some update but not sure, because unable to reproduce problem on our side.

on February 06, 2014 12:19
Aug 23, 2015
Archive Agent agent wrote
qakmak
Karma score: 7777
qakmak

Ok, I test it now. I'm use fast encrypted api in OnStop event(when FFMPEG SDK finish converted, trigger the OnStop event), Do you think that's a reason?

on February 06, 2014 12:34
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

Maybe... Try to test independently. But must work now, problem in FFMPEG SDK found and fixed.

on February 06, 2014 12:35
Aug 23, 2015
Archive Agent agent wrote
qakmak

Sorry, I download it twice, but it's always the version of yesterday. Are you 8.1.11
Are you forget replace the new version?

on February 06, 2014 13:39
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

yes. sorry. i'll upload soon

on February 06, 2014 13:48
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

available now

on February 06, 2014 13:59
Aug 23, 2015
Archive Agent agent wrote
qakmak

converted file can delete now. fast encrypted file can't , but not very necessary now.

Thank you for these all. you can lose the ticket now.

on February 06, 2014 15:59
Aug 23, 2015
Archive Agent agent wrote
qakmak

oh right. 1 more thing. Is any way can Improve the video quality except the bitrate? I mean FFMPEG SDK

on February 06, 2014 16:01
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

You can read more about FFMPEG encoder, most of options can be added to our SDK. But bitrate is the main way.

on February 06, 2014 16:12
Aug 23, 2015
Archive Agent agent wrote
qakmak

If DirectShow MP4 filter quality and AAC sound problem solved. don't forget tell me. thank you. you can close the ticket.

on February 06, 2014 16:30
Aug 23, 2015
Archive Agent agent wrote
Roman Minyaylov

yes, sure.

this ticket is giant. time to close it.

on February 06, 2014 16:32