private void button1_Click(object sender, EventArgs e) { //string test_file = @"\\MLDiskStation\MLFiles\MediaTest\MP4\!1080p 60fpsOri and the Will of the Wisps.mp4"; int index = -1; m_objMPlaylist.PlaylistAdd(null, test_file, "", ref index, out item1); m_objMPlaylist.PlaylistAdd(null, @"M:\TEST_VIDEOS\!1080p 60fpsOri and the Will of the Wisps.mp4", "", ref index, out MItem item2); m_objMPlaylist.OnEventSafe += File_OnEventSafe; m_objMPlaylist.FilePlayStart(); }
private void OpenFile_btn_Click(object sender, EventArgs e) { OpenFileDialog a = new OpenFileDialog(); if (a.ShowDialog() == DialogResult.OK) { string file = a.FileName; MItem Item; int index = -1; m_objPlaylist.PlaylistAdd(null, file, "", ref index, out Item); m_objPlaylist.FilePlayStart(); int countRen; m_objRenderer.DeviceGetCount(0, "video", out countRen); listRen.Items.Clear(); string nameRen; string xmlRen; for (int i = 0; i < countRen; i++) { m_objRenderer.DeviceGetByIndex(0, "video", i, out nameRen, out xmlRen); listRen.Items.Add(nameRen); } Marshal.ReleaseComObject(Item); } }
private void Form1_Load(object sender, EventArgs e) { m_objPlaylistPub = new MPlaylistClass(); m_objPlaylistPub.PreviewWindowSet("", panelPub.Handle.ToInt32()); m_objPlaylistPub.PreviewEnable("", 0, 1); m_objPlaylistRec = new MPlaylistClass(); m_objPlaylistRec.PreviewWindowSet("", panelRec.Handle.ToInt32()); m_objPlaylistRec.PreviewEnable("", 0, 1); int index = -1; m_objPlaylistPub.PlaylistAdd(null, @"\\MLDiskStation\MLFiles\MediaTest\MP4\!1080p 60fpsOri and the Will of the Wisps.mp4", "", ref index, out MItem item); m_objPlaylistPub.FilePlayStart(); Thread.Sleep(100); MSendersClass senderMP = new MSendersClass(); int count; senderMP.SendersGetCount(out count); for (int i = 0; i < count; i++) { senderMP.SendersGetByIndex(i, out string name, out M_VID_PROPS propsV, out M_AUD_PROPS propsA); senders_lsb.Items.Add(name); } }
private void playlist_btn_Click(object sender, EventArgs e) { int index = -1; MItem item; m_objMPlaylist.PlaylistAdd("", playlist_txb.Text, "network.reconnect = true", ref index, out item); m_objMPlaylist.FilePlayStart(); }
private void Play_btn_Click(object sender, EventArgs e) { //m_objMFile.FileNameSet(path, "loop=true"); int index = -1; m_objMPlaylist.PlaylistAdd(null, path, "", ref index, out MItem item); m_objMPlaylist.FilePlayStart(); //m_objMFile.FilePlayStart(); }
private void StartTest_btn_Click(object sender, EventArgs e) { int index = -1; m_objMPLaylist.PlaylistAdd(null, filePath, "loop=true", ref index, out MItem item); SetAudioChannels(); m_objMPLaylist.FilePlayStart(); m_objMWriter.WriterNameSet(@"M:\TempVideo\EncTest.mp4", writerEncodConfig); m_objMWriter.ObjectStart(m_objMPLaylist); }
/// <summary> /// Adds new file to playlist /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonAdd_Click(object sender, EventArgs e) { if (openMediaFile.ShowDialog() == DialogResult.OK && openMediaFile.FileNames.Length != 0) { for (int i = 0; i < openMediaFile.FileNames.Length; i++) { int nIndex = -1; MItem pFile; m_objPlaylist.PlaylistAdd(null, openMediaFile.FileNames[i], "", ref nIndex, out pFile); if (pFile == null) { continue; } System.Runtime.InteropServices.Marshal.ReleaseComObject(pFile); GC.Collect(); } updateList(); } }
public void Open(string fileName) { this.Close(); if (_mplaylist == null) { _mplaylist = new MPlaylistClass(); if (_mplaylistSettings.VideoFormat != null) { SetVideoFormat(_mplaylist, _mplaylistSettings.VideoFormat); } if (_mplaylistSettings.AudioFormat != null) { SetAudioFormat(_mplaylist, _mplaylistSettings.AudioFormat); } _mplaylist.PropsSet("loop", "true"); _mplaylist.OnEvent += MFile_OnEvent; } //if (_mitem != null) //{ // _mplaylist.FilePlayStop(0.0); // _mplaylist.PlaylistRemove(_mitem); // Marshal.ReleaseComObject(_mitem); // ? // _mitem = null; //} _fileName = fileName; int index = -1; _mplaylist.PlaylistAdd(null, _fileName, "", ref index, out _mitem); _mplaylist.ObjectStart(null); double dblIn = 0.0, dblOut = 0.0, dblDuration = 0.0; _mplaylist.FileInOutGet(out dblIn, out dblOut, out dblDuration); //_mitem.FileInOutGet(out dblIn, out dblOut, out dblDuration); this.Duration = dblDuration; string name = null; _mplaylist.ObjectNameGet(out name); this.Name = name; this.Status = PlayerStatus.Stopped; OnOpened(); }
public void Open(IPlayableItem playableItem) { this.Close(); if (_mplaylist == null) { _mplaylist = new MPlaylistClass(); if (_mplaylistSettings.VideoFormat != null) { SetVideoFormat(_mplaylist, _mplaylistSettings.VideoFormat); } if (_mplaylistSettings.AudioFormat != null) { SetAudioFormat(_mplaylist, _mplaylistSettings.AudioFormat); } _mplaylist.PropsSet("loop", "true"); _mplaylist.OnEvent += MFile_OnEvent; _cgManager = new CGManager(_mplaylist); //_mplaylist.FileRateSet(_rate); } //_fileName = fileName; _playableItem = playableItem; //_fileName = _playableItem.FilePath; int index = -1; _mplaylist.PlaylistAdd(null, _playableItem.FilePath, "", ref index, out _mitem); _mplaylist.ObjectStart(null); _mplaylist.FileRateSet(_rate); SetAudioGain((MItemClass)_mitem, _playableItem.AudioGain); double dblIn = 0.0, dblOut = 0.0, dblDuration = 0.0; _mplaylist.FileInOutGet(out dblIn, out dblOut, out dblDuration); //_mitem.FileInOutGet(out dblIn, out dblOut, out dblDuration); this.Duration = dblDuration; string name = null; _mplaylist.ObjectNameGet(out name); this.Name = name; this.Status = PreviewPlayerStatus.Stopped; OnOpened(); }
private void Open_btn_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() == DialogResult.OK && openFileDialog1.FileNames.Length != 0) { int index = -1; string name = openFileDialog1.FileNames[0].ToString(); m_objPlaylist.PlaylistAdd(null, name, "", ref index, out item); Play_btn.BackColor = Color.Green; } }
private void Form1_Load(object sender, EventArgs e) { m_objPlaylist = new MPlaylistClass(); m_objPlaylist.PreviewWindowSet("", panel1.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 0, 1); int index = -1; MItem item; m_objPlaylist.PlaylistAdd(null, @"M:\MEDIA_TEST\!LG Jazz 1080-30p.mp4", "", ref index, out item); m_objPlaylist.FilePlayStart(); }
private void Form1_Load(object sender, EventArgs e) { m_objPlaylist = new MPlaylistClass(); m_objMixer = new MMixerClass(); m_objPlaylist.PreviewWindowSet("", panelPr.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 1, 1); int nIndex = -1; MItem pFile; m_objPlaylist.PlaylistAdd(null, @"M:\MEDIA_TEST\!PATAGONIA 1080p.mp4", "", ref nIndex, out pFile); m_objPlaylist.FilePlayStart(); }
private void button1_Click(object sender, EventArgs e) { openFileDialog1.Multiselect = true; if (openFileDialog1.ShowDialog() == DialogResult.OK && openFileDialog1.FileNames.Length != 0) { foreach (string t in openFileDialog1.FileNames) { int nIndex = -1; MItem pFile; myPlaylist.PlaylistAdd(null, t, "", ref nIndex, out pFile); } updateList(); // this method allows to keep listBox1 in actual state. } }
private void Senders_lsb_SelectedIndexChanged(object sender, EventArgs e) { ListBox comboBox = (ListBox)sender; string selected = (string)comboBox.SelectedItem; int index = -1; m_objPlaylistRec.PlaylistAdd(null, "mp://" + selected, "", ref index, out item); m_objPlaylistRec.FilePlayStart(); aTimer = new System.Timers.Timer(500); aTimer.Elapsed += OnTimedEvent; aTimer.AutoReset = true; aTimer.Enabled = true; }
private void Form1_Load(object sender, EventArgs e) { m_objPlaylist = new MPlaylistClass(); m_objWriter = new MWriterClass(); m_objPlaylist.PreviewWindowSet("", panel1.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 1, 1); //m_objPlaylist.PropsSet("loop", "false"); //m_objPlaylist.PropsSet("active_frc", "false"); //m_objPlaylist.PropsSet("preview.drop_frames", "true"); int index = -1; MItem item; //m_objPlaylist.PlaylistAdd(null, @"M:\MEDIA_TEST\A QUALCUNO PIACE CALDO.mkv", "external_process=false", ref index, out item); m_objPlaylist.PlaylistAdd(null, @"M:\MEDIA_TEST\A QUALCUNO PIACE CALDO.mkv", "", ref index, out item); }
private void Form1_Load(object sender, EventArgs e) { m_objMFile = new MFileClass(); m_objPlaylist = new MPlaylistClass(); m_objMFile.PreviewWindowSet("", panelPr.Handle.ToInt32()); m_objMFile.PreviewEnable("", 0, 1); m_objMFile.FileNameSet(@"\\192.168.0.100\MLFiles\Trash\Roman\WorkFiles\FilesFromCostumer\2019.03.06Etere31735\MEM001M-20190306Z143546.mp4", "loop=true"); m_objMFile.FilePlayStart(); m_objPlaylist.PreviewWindowSet("", panelPrPl.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 0, 1); int index = -1; m_objPlaylist.PlaylistAdd(null, @"\\192.168.0.100\MLFiles\Trash\Roman\WorkFiles\FilesFromCostumer\2019.03.06Etere31735\MEM001M-20190306Z143546.mp4", "loop=true", index, out item); m_objPlaylist.FilePlayStart(); }
private void Button1_Click(object sender, EventArgs e) { int index = -1; m_objMPLaylistSource.PlaylistAdd(null, pathOpen, "", ref index, out MItem item); m_objMPLaylistSource.FilePlayStart(); m_objWriter.WriterNameSet(pathSave, "format='mp4' video::codec='n264' audio::codec='aac'"); m_objWriter.ObjectStart(m_objMPLaylistSource); Thread.Sleep(1000); int index2 = -1; m_objMPLaylistRecordFile.PlaylistAdd(null, pathSave, "", ref index, out MItem item2); m_objMPLaylistRecordFile.FilePlayStart(); }
private void OpenFile_btn_Click(object sender, EventArgs e) { m_objPlaylist = new MPlaylistClass(); m_objPlaylist.OnFrameSafe += M_objPlaylist_OnFrameSafe; m_objPlaylist.PreviewWindowSet("", panelPrev.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 0, 1); if (openFileDialog1.ShowDialog() == DialogResult.OK && openFileDialog1.FileNames.Length != 0) { int index = -1; MItem item; string name = openFileDialog1.FileNames[0].ToString(); m_objPlaylist.PlaylistAdd(null, name, "", ref index, out item); } m_objPlaylist.FilePlayStart(); }
private void OpenFileMPlaylist_btn_Click(object sender, EventArgs e) { MarshalAll(); m_objMPlaylist = new MPlaylistClass(); if (openFileDialog1.ShowDialog() == DialogResult.OK && openFileDialog1.FileNames.Length != 0) { filePath = openFileDialog1.FileNames[0].ToString(); int index = -1; startTime = DateTime.Now; m_objMPlaylist.PlaylistAdd(null, filePath, addParams.Text, ref index, out MItem MItem); endTime = DateTime.Now; CalcTimeSpan(); SendMes("MPlaylist takes: " + duration.TotalMilliseconds.ToString() + " TotalMilliseconds"); SendMes("With this Params : " + addParams.Text); Marshal.ReleaseComObject(MItem); ReInitPr("MPlaylist"); m_objMPlaylist.FilePlayStart(); } }
private void Form1_Load(object sender, EventArgs e) { m_objFile = new MFileClass(); m_objPlaylist = new MPlaylistClass(); m_objFile.PreviewWindowSet("", panelPrFile.Handle.ToInt32()); m_objFile.PreviewEnable("", 1, 1); m_objPlaylist.PreviewWindowSet("", panelPrPlaylist.Handle.ToInt32()); m_objPlaylist.PreviewEnable("", 1, 1); int index = -1; m_objPlaylist.PlaylistAdd(null, path, "", ref index, out item); m_objPlaylist.FilePlayStart(); m_objFile.FileNameSet(path, ""); m_objFile.FilePlayStart(); }
void AddFiles() { try { MItem item; int index = -1; string[] files = new string[] { "M:\\MEDIA_TEST\\AppleProRes\\3F_v01 (Konverteret) — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\3F_v01 (Konverteret) — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\3F_v01 (Konverteret) — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\3F_v01 (Konverteret) — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\3F_v01 (Konverteret) — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\3F_v01 (Konverteret) — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\3F_v01 (Konverteret) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\3F_v01 (Konverteret).mov", "M:\\MEDIA_TEST\\AppleProRes\\BlueWaterShipping_v01 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\BlueWaterShipping_v01 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\BlueWaterShipping_v01 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\BlueWaterShipping_v01 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\BlueWaterShipping_v01 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\BlueWaterShipping_v01 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\BlueWaterShipping_v01 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\BlueWaterShipping_v01.mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_ejendomme_v01 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_ejendomme_v01 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_ejendomme_v01 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_ejendomme_v01 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_ejendomme_v01 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_ejendomme_v01 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_ejendomme_v01 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_ejendomme_v01.mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_varmthjerte_v02 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_varmthjerte_v02 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_varmthjerte_v02 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_varmthjerte_v02 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_varmthjerte_v02 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_varmthjerte_v02 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_varmthjerte_v02 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ClausS�rensen_varmthjerte_v02.mov", "M:\\MEDIA_TEST\\AppleProRes\\Coast_v04 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Coast_v04 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\Coast_v04 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Coast_v04 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Coast_v04 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\Coast_v04 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\Coast_v04 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Coast_v04.mov", "M:\\MEDIA_TEST\\AppleProRes\\Contea_v01 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Contea_v01 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\Contea_v01 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Contea_v01 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Contea_v01 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\Contea_v01 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\Contea_v01 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Contea_v01.mov", "M:\\MEDIA_TEST\\AppleProRes\\EfB_EfBCafeen_v03 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\EfB_EfBCafeen_v03 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\EfB_EfBCafeen_v03 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\EfB_EfBCafeen_v03 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\EfB_EfBCafeen_v03 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\EfB_EfBCafeen_v03 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\EfB_EfBCafeen_v03 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\EfB_EfBCafeen_v03.mov", "M:\\MEDIA_TEST\\AppleProRes\\EsbjergKommune_v02 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\EsbjergKommune_v02 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\EsbjergKommune_v02 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\EsbjergKommune_v02 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\EsbjergKommune_v02 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\EsbjergKommune_v02 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\EsbjergKommune_v02 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\EsbjergKommune_v02.mov", "M:\\MEDIA_TEST\\AppleProRes\\Fr�s_EtGodtSted_v01 (Konverteret) — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Fr�s_EtGodtSted_v01 (Konverteret) — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\Fr�s_EtGodtSted_v01 (Konverteret) — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Fr�s_EtGodtSted_v01 (Konverteret) — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Fr�s_EtGodtSted_v01 (Konverteret) — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\Fr�s_EtGodtSted_v01 (Konverteret) — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\Fr�s_EtGodtSted_v01 (Konverteret) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Fr�s_EtGodtSted_v01 (Konverteret).mov", "M:\\MEDIA_TEST\\AppleProRes\\GranlyGruppen_St�tterSportenIEsbjerg_v01 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\GranlyGruppen_St�tterSportenIEsbjerg_v01 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\GranlyGruppen_St�tterSportenIEsbjerg_v01 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\GranlyGruppen_St�tterSportenIEsbjerg_v01 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\GranlyGruppen_St�tterSportenIEsbjerg_v01 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\GranlyGruppen_St�tterSportenIEsbjerg_v01 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\GranlyGruppen_St�tterSportenIEsbjerg_v01 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\GranlyGruppen_St�tterSportenIEsbjerg_v01.mov", "M:\\MEDIA_TEST\\AppleProRes\\SparekassenKronjylland_v01 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\SparekassenKronjylland_v01 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\SparekassenKronjylland_v01 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\SparekassenKronjylland_v01 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\SparekassenKronjylland_v01 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\SparekassenKronjylland_v01 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\SparekassenKronjylland_v01 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\SparekassenKronjylland_v01.mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�_kning_v01 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�_kning_v01 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�_kning_v01 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�_kning_v01 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�_kning_v01 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�_kning_v01 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�_kning_v01 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�_kning_v01.mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�\u007fkning_v01 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�\u007fkning_v01 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�\u007fkning_v01 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�\u007fkning_v01 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�\u007fkning_v01 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�\u007fkning_v01 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�\u007fkning_v01 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\ST_Tagd�\u007fkning_v01.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_BMW_v01 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_BMW_v01 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_BMW_v01 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_BMW_v01 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_BMW_v01 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_BMW_v01 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_BMW_v01 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_BMW_v01.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Hyundai_01 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Hyundai_01 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Hyundai_01 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Hyundai_01 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Hyundai_01 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Hyundai_01 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Hyundai_01 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Hyundai_01.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Nissan_v01 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Nissan_v01 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Nissan_v01 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Nissan_v01 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Nissan_v01 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Nissan_v01 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Nissan_v01 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TerminalenEsbjerg_Nissan_v01.mov", "M:\\MEDIA_TEST\\AppleProRes\\TSTech_v02 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TSTech_v02 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\TSTech_v02 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TSTech_v02 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TSTech_v02 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\TSTech_v02 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\TSTech_v02 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\TSTech_v02.mov", "M:\\MEDIA_TEST\\AppleProRes\\Vestfrost_YourCoolingExpert_v03 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Vestfrost_YourCoolingExpert_v03 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\Vestfrost_YourCoolingExpert_v03 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Vestfrost_YourCoolingExpert_v03 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Vestfrost_YourCoolingExpert_v03 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\Vestfrost_YourCoolingExpert_v03 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\Vestfrost_YourCoolingExpert_v03 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\Vestfrost_YourCoolingExpert_v03.mov", "M:\\MEDIA_TEST\\AppleProRes\\VestjyskKunstgalleri_VoigFineArt_v01 — копия — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\VestjyskKunstgalleri_VoigFineArt_v01 — копия — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\VestjyskKunstgalleri_VoigFineArt_v01 — копия — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\VestjyskKunstgalleri_VoigFineArt_v01 — копия (2) — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\VestjyskKunstgalleri_VoigFineArt_v01 — копия (2).mov", "M:\\MEDIA_TEST\\AppleProRes\\VestjyskKunstgalleri_VoigFineArt_v01 — копия (3).mov", "M:\\MEDIA_TEST\\AppleProRes\\VestjyskKunstgalleri_VoigFineArt_v01 — копия.mov", "M:\\MEDIA_TEST\\AppleProRes\\VestjyskKunstgalleri_VoigFineArt_v01.mov" }; for (int i = 0; i < files.Length; i++) { m_objMPlaylist.PlaylistAdd(null, files[i], "", ref index, out item); label2.Text = i + "/" + files.Length; Marshal.ReleaseComObject(item); if (i % 100 == 0) { GC.Collect(); } } finish = true; checkBox1.Checked = finish; } catch (Exception e) { MessageBox.Show(e.ToString()); } }
private void M_Load(PlayerToken playToken) { Debug.Assert(_mplaylist != null); IFileMediaSource fileSource = (IFileMediaSource)playToken.MediaSource; // as IFileMediaSource; int index; MItem mitem = null; index = -1; _mplaylist.PlaylistAdd(null, _filePathResolver.Resolve(fileSource.FileName), string.Empty, ref index, out mitem); var adjustedRange = fileSource.Adjust(playToken.PlayRange); var loadRange = GetInOut(mitem); if (adjustedRange != null) { if (adjustedRange.Value.StartPosition != loadRange.StartPosition || adjustedRange.Value.StopPosition != loadRange.StopPosition) { loadRange = SetInOut(mitem, adjustedRange.Value); } } playToken.LoadRange = loadRange; int audioTracks = -1; ((MItemClass)mitem).AudioTracksGetCount(out audioTracks); playToken.HasAudio = (audioTracks > 0); playToken.MItem = mitem; ApplyParameters(playToken); }
void AddFiles() { try { MItem item; int index = -1; for (int i = 0; i < files.Length; i++) { m_objMPlaylist.PlaylistAdd(null, files[i], "", ref index, out item); label1.Text = i.ToString() + "//" + (files.Length - 1).ToString(); Marshal.ReleaseComObject(item); if (i % 100 == 0) { GC.Collect(); } } finish = true; checkBox1.Checked = finish; } catch (Exception e) { MessageBox.Show(e.ToString()); } }
void StartBug() { // playlist initialization M_VID_PROPS vidProps = new M_VID_PROPS(); vidProps.eVideoFormat = eMVideoFormat.eMVF_Custom; MPlaylist.FormatVideoSet(eMFormatType.eMFT_Convert, ref vidProps); M_AUD_PROPS audioProp = new M_AUD_PROPS(); audioProp.nChannels = 0; //because some writer codecs (such as mp3) do not support 16 audio channels. MPlaylist.FormatAudioSet(eMFormatType.eMFT_Convert, audioProp); // playlist cue //set empty background. In this case playlist doesn't output anything until playback isn't started. MItem myBack; MPlaylist.PlaylistBackgroundSet(null, "", "", out myBack); if (myBack != null) { System.Runtime.InteropServices.Marshal.ReleaseComObject(myBack); GC.Collect(); } // set convert format M_VID_PROPS mvid; M_AUD_PROPS maud; int fmtind; string fmtname; MPlaylist.FormatVideoGet(eMFormatType.eMFT_Output, out mvid, out fmtind, out fmtname); MPlaylist.FormatAudioGet(eMFormatType.eMFT_Output, out maud, out fmtind, out fmtname); MPlaylist.FormatVideoSet(eMFormatType.eMFT_Convert, ref mvid); MPlaylist.FormatAudioSet(eMFormatType.eMFT_Convert, ref maud); // set properties MPlaylist.PropsSet("loop", "false"); MPlaylist.PropsSet("active_frc", "false"); MPlaylist.PropsSet("preview.drop_frames", "true"); vidProps.eVideoFormat = eMVideoFormat.eMVF_Custom; MPlaylist.FormatVideoSet(eMFormatType.eMFT_Convert, ref vidProps); int index = -1; MItem item; MPlaylist.PlaylistAdd(null, @"\\192.168.0.100\MLFiles\Trash\Roman\WorkFiles\FilesFromCostumer\2019.05.27 Etere31929\kom_mult_kosmik_007sh_s.mpg", "", ref index, out item); // writer properties MWriter.PropsSet("rate_control", "true"); MWriter.PropsSet("pull_mode", "false"); MWriter.PropsSet("external_process", "false"); //set audio mapping on first 2 channels only string desc; IMAudioTrack audioTrack; MPlaylist.AudioTrackGetByIndex(0, out desc, out audioTrack); int nChIn; int nChOutIdx; int nChOut; audioTrack.TrackChannelsGet(out nChIn, out nChOutIdx, out nChOut); for (int i = 0; i < nChOut; i++) { int mute; if (i < 2) { // switch on the required audio channels mute = 0; } else { // set mute all other audio channels mute = 1; } audioTrack.TrackMuteSet(i, mute, 0.0); } string encodeConfig = @"format='mp4' start_timecode='00:00:00:00' video::codec='q264sw' video::size='640x360' video::b='1M' video::minrate='1M' video::maxrate='1M' video::ar='' video::ref_frames='3' video::profile='Baseline' video::level='4.1' video::rc_type='cbr' audio::codec='aac' audio::ar='48000'"; MWriter.WriterNameSet(@"\\192.168.0.100\MLFiles\Trash\Roman\WorkFiles\FilesFromCostumer\2019.05.27 Etere31929\test\" + count.ToString() + ".mp4", encodeConfig); MWriter.ObjectStart(MPlaylist); MPlaylist.FilePlayStart(); Marshal.ReleaseComObject(item); //Marshal.ReleaseComObject(myBack); GC.Collect(); }