Onto the day before yesterday’s Document Root Relative Folder Listing Links Video Tutorial, and it’s work with … “assemblies” … as an image media multiple selection (set of “widget”) ideas … as per list below … it’s time, today, to remember Document Root Relative Folder Listing Links Assemblies Tutorial‘s … To us, these are user driven (is it widgets) they create by selecting multiple media (today images, but down the line, other combinations) from the left hand table cell’s listing links. … and it’s invitation to broaden the scope … so that today we start down the road towards the concept of what we’ll call … “assembly media pairings” … where, so far, two, media selections get used to create another “widget” creation … so far … … trying … audio and video … ffmpeg helps add an audio soundtrack onto a video text and image … textarea element with image background audio and image … audio element with image background video and image … video element with image background … using the PHP … <?php if (isset($_GET[‘nonims’]) && isset($_GET[‘nonimsname’])) { $htmlassembly=”; $vis=”; $tis=”; $mis=”; $sis=”; $zis=”; $iis=”; $listis=str_replace(‘+’,’ ‘,urldecode($_GET[‘nonims’])); $hashis=”; if (strpos($listis, ‘#’) !== false) { if (strpos(str_replace(‘#audio/’,”,str_replace(‘#video/’,”,$listis)), ‘#’) === false) { // ffmpeg -i video.mp4 -i audio.aac -c:v copy -c:a copy output.mp4 $vis=$_SERVER[‘DOCUMENT_ROOT’] . explode(‘,’, explode(‘#video/’, $listis)[0])[-1 + sizeof( explode(‘,’, explode(‘#video/’, $listis)[0]))]; $ais=$_SERVER[‘DOCUMENT_ROOT’] . explode(‘,’, explode(‘#audio/’, $listis)[0])[-1 + sizeof( explode(‘,’, explode(‘#audio/’, $listis)[0]))]; //file_put_contents(‘xx.xx’,$fconvprefix . ‘ffmpeg -i ‘ . $vis . ‘ -i ‘ . $ais . ‘ -c:v copy -c:a copy ‘ . $_SERVER[‘DOCUMENT_ROOT’] . DIRECTORY_SEPARATOR . “tmp” . DIRECTORY_SEPARATOR . str_replace(‘.cba’,’.mp4′,basename(str_replace(‘+’,’ ‘,urldecode($_GET[‘nonimsname’]))))); //exec($fconvprefix . ‘ffmpeg -i ‘ . $vis . ‘ -i ‘ . $ais . ‘ -c:v copy -c:a copy ‘ . $_SERVER[‘DOCUMENT_ROOT’] . DIRECTORY_SEPARATOR . “tmp” . DIRECTORY_SEPARATOR . str_replace(‘.cba’,’.mp4′,basename(str_replace(‘+’,’ ‘,urldecode($_GET[‘nonimsname’])))) . ‘ 2> ‘ . $_SERVER[‘DOCUMENT_ROOT’] . DIRECTORY_SEPARATOR . “tmp” . DIRECTORY_SEPARATOR . “x.err” . ‘ > ‘ . $_SERVER[‘DOCUMENT_ROOT’] . DIRECTORY_SEPARATOR . “tmp” . DIRECTORY_SEPARATOR . “x.ok”); exec($fconvprefix . ‘ffmpeg -i ‘ . $vis . ‘ -i ‘ . $ais . ‘ -c:v copy -c:a copy ‘ . $_SERVER[‘DOCUMENT_ROOT’] . DIRECTORY_SEPARATOR . “tmp” . DIRECTORY_SEPARATOR . str_replace(‘.cba’,’.mp4′,basename(str_replace(‘+’,’ ‘,urldecode($_GET[‘nonimsname’]))))); } else if (strpos(str_replace(‘#text/’,”,str_replace(‘#image/’,”,$listis)), ‘#’) === false) { $mis=str_replace(‘jpg’,’jpeg’,explode(‘,’,explode(‘#image/’, $listis)[1])[0]); $tis=$_SERVER[‘DOCUMENT_ROOT’] . explode(‘,’, explode(‘#text/’, $listis)[0])[-1 + sizeof( explode(‘,’, explode(‘#text/’, $listis)[0]))]; $iis=$_SERVER[‘DOCUMENT_ROOT’] . explode(‘,’, explode(‘#image/’, $listis)[0])[-1 + sizeof( explode(‘,’, explode(‘#image/’, $listis)[0]))]; } else if (strpos(str_replace(‘#audio/’,”,str_replace(‘#image/’,”,$listis)), ‘#’) === false) { $mis=str_replace(‘jpg’,’jpeg’,explode(‘,’,explode(‘#image/’, $listis)[1])[0]); $ais=str_replace(‘jpg’,’jpeg’,explode(‘,’,explode(‘#audio/’, $listis)[1])[0]); $sis=$_SERVER[‘DOCUMENT_ROOT’] . explode(‘,’, explode(‘#audio/’, $listis)[0])[-1 + sizeof( explode(‘,’, explode(‘#audio/’, $listis)[0]))]; $iis=$_SERVER[‘DOCUMENT_ROOT’] . explode(‘,’, explode(‘#image/’, $listis)[0])[-1 + sizeof( explode(‘,’, explode(‘#image/’, $listis)[0]))]; } else if (strpos(str_replace(‘#video/’,”,str_replace(‘#image/’,”,$listis)), ‘#’) === false) { $mis=str_replace(‘jpg’,’jpeg’,explode(‘,’,explode(‘#image/’, $listis)[1])[0]); $ais=str_replace(‘jpg’,’jpeg’,explode(‘,’,explode(‘#video/’, $listis)[1])[0]); $zis=$_SERVER[‘DOCUMENT_ROOT’] . explode(‘,’, explode(‘#video/’, $listis)[0])[-1 + sizeof( explode(‘,’, explode(‘#video/’, $listis)[0]))]; $iis=$_SERVER[‘DOCUMENT_ROOT’] . explode(‘,’, explode(‘#image/’, $listis)[0])[-1 + sizeof( explode(‘,’, explode(‘#image/’, $listis)[0]))]; } } $origname=$_SERVER[‘DOCUMENT_ROOT’] . DIRECTORY_SEPARATOR . “tmp” . DIRECTORY_SEPARATOR . str_replace(‘+’,’ ‘,urldecode($_GET[‘nonimsname’])); //file_put_contents($_SERVER[‘DOCUMENT_ROOT’] . DIRECTORY_SEPARATOR . “tmp” . DIRECTORY_SEPARATOR . str_replace(‘+’,’ ‘,urldecode($_GET[‘nonimsname’])), $htmlassembly); //if (strpos((” . $origname . ‘~’), ‘.cba~’) !== … Continue reading →
Document Root Relative Folder Listing Assembly Complexity Tutorial
Further to yesterday’s Document Root Relative Folder Listing Assembly Sharing Tutorial‘s “sidestep for genericity” we’re back to nuances regarding assemblies and the media combinations users may select from that “:” dropdown. When it comes to designing an HTML widget, or assembly, to suit, we start thinking about “overlay” concepts, such as … position:absolute; top:0px; left:0px; z-index:9; opacity:0.6; // for any video or audio media selected, along with some image img background imagery … and which if text is involved as well … background-color:transparent; // for that textarea element … and sometimes, to get some opacity on image background imagery … background:linear-gradient(rgba(255,255,255,0.6),rgba(255,255,255,0.6)),url([imageURL]); … in amongst the “sixteenth draft” one_line_find.php Document Root Relative Folder Listing web application you can “crank up” below. Previous relevant Document Root Relative Folder Listing Assembly Sharing Tutorial is shown below. This “assembly” work of recent times involves “personalization”, in that what the user selects, and the order they select it in off that “:” dropdown determines the content. To us, that is the recipe for offering some email or SMS sharing capability so that … an originator (of contents) … can share to an email or SMS recipient a link reflecting the scenario whereby … if the recipient clicks that email or SMS link … the recipient sees what the originator sees … and that last point has us involving hashtagged arguments in order to not rock the existing PHP boat regarding it’s (existing functional) arrangements with $_GET[] and $_POST[] arguments, further to yesterday’s Document Root Relative Folder Listing Media Grouping Concatenation Tutorial in the “fifteenth draft” one_line_find.php Document Root Relative Folder Listing web application you can “crank up” below. Previous relevant Document Root Relative Folder Listing Media Grouping Concatenation Tutorial is shown below. Yesterday’s Document Root Relative Folder Listing Media Pairing Concatenation Tutorial honed in on … pairs of media and types that at most one of is an image … but today, nuancing that we allow for … some image(s) and pairs, or more, of another media type out of video or audio or text … where that image forms as a background image for your creations in the “fourteenth draft” one_line_find.php Document Root Relative Folder Listing web application you can “crank up” below. Previous relevant Document Root Relative Folder Listing Media Pairing Concatenation Tutorial is shown below. Onto yesterday’s Document Root Relative Folder Listing Media Pairings Tutorial … audio and video … ffmpeg helps add an audio soundtrack onto a video text and image … textarea element with image background audio and image … audio element with image background video and image … video element with image background … media pairings start, today, to get more sophistication with this, we start down the road towards video and audio ffmpeg inspired … concatenation … that you can see “starting to happen” in the “thirteenth draft” one_line_find.php Document Root Relative Folder Listing web application you can … Continue reading →