예제 #1
0
        private void comboBoxAF_SelectedIndexChanged(object sender, EventArgs e)
        {
            M_AUD_PROPS audProps = new M_AUD_PROPS();
            string      strFormat;

            m_objFile.FormatAudioGetByIndex(eMFormatType.eMFT_Convert, comboBoxAF.SelectedIndex, out audProps, out strFormat);
            m_objFile.FormatAudioSet(eMFormatType.eMFT_Convert, ref audProps);
        }
예제 #2
0
        private void Start_btn_Click(object sender, EventArgs e)
        {
            //int nIndex = -1;
            //MItem pFile;
            //m_objPlaylist.PropsSet("loop", "false");
            //m_objPlaylist.PropsSet("active_frc", "false");
            //m_objPlaylist.PropsSet("preview.drop_frames", "true");
            //m_objPlaylist.PlaylistAdd(null, openFile_txb.Text, "external_process=false experimental.mfcodecs=true experimental.out_video_packets=true", ref nIndex, out pFile); //
            //m_objPlaylist.FilePlayStart();

            int         index;
            string      name;
            M_AUD_PROPS propsA;

            m_objFile.FormatAudioGet(eMFormatType.eMFT_Input, out propsA, out index, out name);

            propsA.nChannels = 8;

            m_objFile.PropsSet("active_frc", "false");
            m_objFile.PropsSet("preview.drop_frames", "true");
            m_objFile.FileNameSet(openFile_txb.Text, "");//"external_process=false experimental.mfcodecs=true experimental.out_video_packets=true");
            //m_objFile.FileNameSet(openFile_txb.Text, "");
            //(m_objFile as IMProps).PropsSet("object::audio_channels", "0,1,2,3,4,5,6,7");

            m_objFile.FormatAudioSet(eMFormatType.eMFT_Convert, ref propsA);
            m_objFile.FilePlayStart();

            m_objWriter.PropsSet("external_process", "false");
            m_objWriter.PropsSet("rate_control", "true");
            m_objWriter.PropsSet("pull_mode", "false");


            m_objWriter.FormatAudioSet(eMFormatType.eMFT_Convert, ref propsA);
            //m_objWriter.WriterNameSet(savePath_txb.Text, "format='mp4' video::codec='packets' audio::codec='audio_packets'");
            m_objWriter.WriterNameSet(savePath_txb.Text, "format='mp4' video::codec='n264' audio::codec='aac'");
            m_objWriter.ObjectStart(m_objFile);
        }