10 Lis 2017

Odczyt atrybutów elementu w obsłudze zdarzena w javascript

<select name="banner_url" onchange="var idx=this.selectedIndex; 
var value=this.options[idx].getAttribute('banner_url'); 
var element = document.getElementById('img_banner_url'); 
element.setAttribute('src', value); element.style.display='block'">

!{section name=ii loop=$data}!
	!{capture assign=banner_url}!http://kody.wig.pl/!{/capture}!
	<option value="!{$banner_url}!" banner_url="!{$banner_url}!">
	!{$data[ii].name}! ---> !{$banner_url}!</option>
!{/section}!

</select>
<br><br>

<img src="" id="img_banner_url" style="display:none">
27 Maj 2008

ffmpeg - polecenie wygenerowania pojedynczej klatki obrazu

ffmpeg -i flv_filename.flv -y -f singlejpeg -ss 00:00:02 -vframes 1 -an jpg_filename.jpg
ffmpeg -i in\test.flv -y -f singlejpeg -ss 00:00:02 -vframes 1 -an out\jpg_filename.jpg
 
ffmpeg -i in\test.flv -an -ss 00:00:03 -an -r 1 -vframes 1 -y out\test.jpg
 
ffmpeg -i test.flv -vcodec png -vframes 1 -an -f rawvideo -s 106x106 pathToImage.png