<div dir="ltr">Oh sorry, <span style="font-family:arial,sans-serif;font-size:13px">&#39;AA/V&#39; is handled correctly after your resent fix. :-)</span></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-16 16:56 GMT+01:00 Tintwotin tintwotin <span dir="ltr">&lt;<a href="mailto:tintwotin@gmail.com" target="_blank">tintwotin@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yet another thought on the EditModes. Apparently CMX 3600 is either 2 or 4 audio channels. So most of the EditMode variations is caused by defining on what channels the audio should be placed. <div><br></div><div>Since the Blender EDL importer script seems to fill up the clips from bellow and up/audio tracks from track 6 and up and do not distinguish between stereo/mono, maybe the main thing to parse is if video, audio or both should be added from an imported clip. In other words it might be simpler to just search for either &#39;v&#39;, &#39;a&#39; or &#39;v&#39;+&#39;a&#39; in the editmode string and add video, audio or both accordingly? The alternative is to add all the variations to the dict...</div><div>(A python script to parse native Lightworks files ed5 to edl or mlt (for Shotcut): <a href="http://users.mur.at/ms/projects/lightworks_re/ed5decode.py" target="_blank">http://users.mur.at/ms/projects/lightworks_re/ed5decode.py</a> - Some more audio editmodes can be seen here - but only for two channels).</div><div><br></div><div>For me, right now, is the most crucial &#39;AA/V&#39;, because then I would only need to make one type of output from my script, if the resulting EDL should be parsed by both Blender and Lightworks (would like to research a bit at some point on the EDLs used by Resolve, but I hope they&#39;re similar to Lwks).   </div><div><br></div><div>Btw. I found out that Lightworks is very picky on the number of characters for each column ex. number (3 chr)+2 space+reel name (8 chr)+ 1 space+ etc. I guess that is a way to read reel names containing spaces. Odd thing is that if BL is used then there are 4 spaces between the number and the BL.       </div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2014-11-16 0:48 GMT+01:00 Tintwotin tintwotin <span dir="ltr">&lt;<a href="mailto:tintwotin@gmail.com" target="_blank">tintwotin@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Oh, great! Thanks for pushing the fix.<br><br>The trouble with the EDL format is that it was invented for the analog age. I mean for cutting negatives in the film lab or onlining tapes. And ever since films where edited on computers the format has been altered to fit that purpose instead making a mess of things...<br><br>I found a bit more on the format (and the format differences) here (but still old 1995!): <a href="http://www.edlmax.com/edlmaxhelp/edl/maxguide.html" target="_blank">http://www.edlmax.com/edlmaxhelp/edl/maxguide.html</a><br>And another EDL specification here: <a href="http://edl2aaf.sourceforge.net/" target="_blank">http://edl2aaf.sourceforge.net/</a><br>This one includes even more EditModes: {NONE, A, B, V, A2, A2\V, AA, AA\V}<br><br>On a different note - using clip/file names specified in comments instead of using reel name: <br>In order to solve the problems with file name vs. reel name and the length limitation of the reel name a workaround has been added to the EDL comments as described here (FCP7 manual): <a href="https://documentation.apple.com/en/finalcutpro/usermanual/index.html#chapter=96%26section=3%26tasks=true" target="_blank">https://documentation.apple.com/en/finalcutpro/usermanual/index.html#chapter=96%26section=3%26tasks=true</a><br><br>&quot;How Clips from an EDL Are Named:<br>Clips imported from an EDL are named in one of two ways. If the EDL was exported from a nonlinear system, the name is exported like this:<br>* FROM CLIP NAME: CLIP NAME HERE<br>where CLIP NAME HERE is the name of your clip. Final Cut Pro can recognize clip names exported from the following nonlinear editing systems: Final Cut Pro, Media 100, and Avid. In all other cases, Final Cut Pro uses the reel name as the clip name.&quot;<br><br>Using comments to specify file names has become a standard, however I&#39;ve seen edl files where the clip name had a file extension and even some with the full file path specified too. I&#39;ve also seen some with the clip name specified in a comment line but saying * COMMENT: instead of * FROM CLIP NAME:<div><br></div><div>Anyway, thanks for pushing that fix. <div><div><br><br><br><br>2014-11-15 23:38 GMT+01:00 Campbell Barton &lt;<a href="mailto:ideasman42@gmail.com" target="_blank">ideasman42@gmail.com</a>&gt;:<br>&gt;<br>&gt; Your right, this was a bug in the importer,<br>&gt; pushed fix <a href="https://developer.blender.org/rBA0a853ec83c64764d3d14cc0bdface353420934aa" target="_blank">https://developer.blender.org/rBA0a853ec83c64764d3d14cc0bdface353420934aa</a><br>&gt;<br>&gt; The other changes you mention may be OK, but not sure which EDL spec<br>&gt; they&#39;re from.<br>&gt; the CMX spec doesn&#39;t seem to contain them (though its scanned images<br>&gt; so I couldn&#39;t search)<br>&gt; <a href="http://xmil.biz/EDL-X/CMX3600.pdf" target="_blank">http://xmil.biz/EDL-X/CMX3600.pdf</a><br>&gt;<br>&gt; While writing the importer it became clear this format is very loosely<br>&gt; defined, it maybe OK to extend support, but like to include a<br>&gt; reference to the spec in the commit, and that its compatible with<br>&gt; existing CMX EDL files.<br>&gt;<br>&gt; On Sat, Nov 15, 2014 at 11:32 PM, Tintwotin tintwotin<br>&gt; &lt;<a href="mailto:tintwotin@gmail.com" target="_blank">tintwotin@gmail.com</a>&gt; wrote:<br>&gt; &gt; Another thing, but still related, I found some missing &lt;EditMode&gt; settings<br>&gt; &gt; in the Blender EDL import script used by ex. Lightworks, Sony Vegas a. o.<br>&gt; &gt;<br>&gt; &gt; Ex. edl from Lightworks:<br>&gt; &gt; 001  IBM      AA/V C         00:00:05:02 00:00:12:17 00:00:05:01 00:00:12:16<br>&gt; &gt;<br>&gt; &gt; It&#39;s the &#39;AA/V&#39; setting which is currently not supported by the Blender edl<br>&gt; &gt; import script. In this link a few more settings not used by the Blender edl<br>&gt; &gt; import script can be found:<a href="http://www.niwa.nu/2013/05/how-to-read-an-edl/" target="_blank">http://www.niwa.nu/2013/05/how-to-read-an-edl/</a><br>&gt; &gt;<br>&gt; &gt; Info from that page:<br>&gt; &gt; AA/V – Video and audio on channel 1 and 2<br>&gt; &gt; VA1A2 – Video and audio on channel 1 and 2<br>&gt; &gt; A12V – Video and audio on channel 1 and 2<br>&gt; &gt; AUD3 – Audio only on channel 3<br>&gt; &gt; A3 – Audio only on channel 3<br>&gt; &gt;<br>&gt; &gt; In line 225 of  io_sequencer_edl/parse_edl.py they can be easily be added:<br>&gt; &gt; EDIT_DICT = {<br>&gt; &gt;     &quot;none&quot;: 0,  # TODO, investigate this more.<br>&gt; &gt;     &quot;v&quot;: EDIT_VIDEO,<br>&gt; &gt;     &quot;a&quot;: EDIT_AUDIO,<br>&gt; &gt;     &quot;aud3&quot;: EDIT_AUDIO,<br>&gt; &gt;     &quot;a3&quot;: EDIT_AUDIO,<br>&gt; &gt;     &quot;aa&quot;: EDIT_AUDIO_STEREO,<br>&gt; &gt;     &quot;va&quot;: EDIT_VIDEO_AUDIO,<br>&gt; &gt;     &quot;aa/v&quot;: EDIT_VIDEO_AUDIO,<br>&gt; &gt;     &quot;va1a2&quot;: EDIT_VIDEO_AUDIO,<br>&gt; &gt;     &quot;a12v&quot;: EDIT_VIDEO_AUDIO,<br>&gt; &gt;     &quot;b&quot;: EDIT_VIDEO_AUDIO,<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt; And just to clarify where the fix from previous post could be added:<br>&gt; &gt; When the VA/va/B/b settings are used, adding a video clip too can be done<br>&gt; &gt; very simple with the stuff added in here in line 173 of<br>&gt; &gt; io_sequencer_edl/import_edl.py:<br>&gt; &gt; if edit.edit_type &amp; (parse_edl.EDIT_VIDEO | parse_edl.EDIT_VIDEO_AUDIO):<br>&gt; &gt;<br>&gt; &gt; BTW. the reason I&#39;ve come across these things is because I&#39;m working on a<br>&gt; &gt; mlt to blender friendly edl script:<br>&gt; &gt; <a href="http://eyeframeconverter.wordpress.com/mlt2edl/" target="_blank">http://eyeframeconverter.wordpress.com/mlt2edl/</a><br>&gt; &gt;<br>&gt; &gt; 2014-11-14 19:46 GMT+01:00 Tintwotin tintwotin &lt;<a href="mailto:tintwotin@gmail.com" target="_blank">tintwotin@gmail.com</a>&gt;:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; ideasman42 suggested that I posted here about this:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Background:<br>&gt; &gt;&gt; I&#39;m using the EDL notes from the Blender import_edl.py script in order to<br>&gt; &gt;&gt; code a python script to convert ShotCut.org MLT files into Blender friendly<br>&gt; &gt;&gt; EDLs:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; The Blender EDL notes:<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; * &lt;EditMode&gt;: &#39;V&#39; | &#39;A&#39; | &#39;VA&#39; | &#39;B&#39; | &#39;v&#39; | &#39;a&#39; | &#39;va&#39; | &#39;b&#39; which<br>&gt; &gt;&gt;&gt; equals Video, Audio, Video_Audio edits (note B or b can be used in place of<br>&gt; &gt;&gt;&gt; VA or va).<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Bug?<br>&gt; &gt;&gt; That&#39;s how I noticed that when VA/va/B/b settings (which equals<br>&gt; &gt;&gt; Video+Audio) are used, only an audio clip is added to the time line, and no<br>&gt; &gt;&gt; video. With va I suppose that both a video and an audio clip should be<br>&gt; &gt;&gt; inserted?<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; How to reproduce:<br>&gt; &gt;&gt; Open this EDL example, and assign a video clip with audio. It must be<br>&gt; &gt;&gt; longer than 30 sec.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;&gt; * EDL example:<br>&gt; &gt;&gt;&gt; 1 test va C 00:00:00:00 00:00:30:00 00:00:00:00 00:00:30:00<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; How to fix:<br>&gt; &gt;&gt; When the VA/va/B/b settings are used, adding a video clip too, can be done<br>&gt; &gt;&gt; very simple with the stuff I added in bold here in line 173:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;&gt; Code:<br>&gt; &gt;&gt;&gt; if edit.edit_type &amp; (parse_edl.EDIT_VIDEO | parse_edl.EDIT_VIDEO_AUDIO):<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; This way a video clip is added too, when va/b setting is used.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Is it a bug or expected behavior?<br>&gt; &gt;&gt; So the question is if using the va/b setting should add both a video clip<br>&gt; &gt;&gt; and an audio clip, or is the current behavior what is to be expected?<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Bf-vfx mailing list<br>&gt; &gt; <a href="mailto:Bf-vfx@blender.org" target="_blank">Bf-vfx@blender.org</a><br>&gt; &gt; <a href="http://lists.blender.org/mailman/listinfo/bf-vfx" target="_blank">http://lists.blender.org/mailman/listinfo/bf-vfx</a><br>&gt; &gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; - Campbell<br>&gt; _______________________________________________<br>&gt; Bf-vfx mailing list<br>&gt; <a href="mailto:Bf-vfx@blender.org" target="_blank">Bf-vfx@blender.org</a><br>&gt; <a href="http://lists.blender.org/mailman/listinfo/bf-vfx" target="_blank">http://lists.blender.org/mailman/listinfo/bf-vfx</a><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>