Jump to content

westman

Members
  • Posts

    600
  • Joined

  • Last visited

Posts posted by westman

    ffmpeg

    hi all,i am trying to get an image and duration from a mp4 file and i found this from google ffmpeg -i Video.mpg Pictures%d.jpg what type of code is it? i tried it in php and html.how do i get my image and duration with ffmpeg?

  1. no am taking about having my own 1 page menu like....

    <table width="100%" border="0" cellspacing="5" cellpadding="0">  <tr>    <td><?php echo $vid1_pic ?></td>    <td><?php echo $vid2_pic ?></td>    <td><?php echo $vid3_pic ?></td>    <td><?php echo $vid4_pic ?></td>  </tr>  <tr>    <td><?php echo $vid1_duration ?></td>    <td><?php echo $vid2_duration ?></td>    <td><?php echo $vid3_duration ?></td>    <td><?php echo $vid4_duration ?></td>  </tr></table>

    now, how do i get an image ($vid4_pic) and duration ($vid4_duration) out of a mp4 video to display in my menu?

  2. <?phpif ($_GET['page'] != "") {if ($_GET['page'] == "home") {$page_div = $homepage;}  else if ($_GET['page'] == "login") {$page_div = $login_page;}else if ($_GET['page'] == "signup") {$page_div = $signup_page;} else if (($_GET['page'] == "account") && ($login_count == 1)) {$page_div = $account_page;}else{$page_div = $homepage;}}else{  $page_div = $homepage;}?> <?php echo $page_div ?>

  3. ok i got the video looking and feeling like it should the last and only question i have is.... how do i get an image and duration out of a mp4 video to display in a menu?

  4. mysite.com is an example when i load the page i can see ...

    poster="http://mysite.com/hdvideo/0/myvid.png"

    is working, so the paths are all goodbut it will not play the video

  5.     <video id="myvid1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264"      poster="http://mysite.com/hdvideo/0/myvid.png"      data-setup="{}">    <source src="http://mysite.com/hdvideo/0/myvid.mp4" type=\'video/mp4\' />    <source src="http://mysite.com/hdvideo/0/myvid.webm" type=\'video/webm\' />    <source src="http://mysite.com/hdvideo/0/myvid.ogv" type=\'video/ogg\' />  </video>

    its not playing

  6. i am having problems with this html5 tag....

    <video id="my_video_1" class="video-js vjs-default-skin" controls  preload="auto" width="640" height="264" poster="my_video_poster.png"  data-setup="{}">  <source src="my_video.mp4" type='video/mp4'>  <source src="my_video.webm" type='video/webm'></video>

    its not working for me i got the script from http://videojs.com/

  7. i like your script but i dose not work for my phpthe check box name has to be diffident for all check boxes like.... <inputtype="checkbox"name="1"value="yes"onclick="chkcontrol(this)"> <input type="checkbox" name="2" value="yes" onclick="chkcontrol(this)"> <input type="checkbox" name="3" value="yes" onclick="chkcontrol(this)">is there a way?

  8. i am trying to get no more than 6 check boxes checked at one timethis is what i have....

    function chkcontrol(j) {var total=0;for(var i=0; i < document.form1.number.length; i++){if(document.form1.number[i].checked){total =total +1;}if(total > 6){alert("maximum of 6")document.form1.number[j].checked = false ;return false;}}}

    <input type="checkbox" name="1" id="present" value="yes" onclick="chkcontrol(0)"><input type="checkbox" name="2" id="present" value="yes" onclick="chkcontrol(1)"><input type="checkbox" name="3" id="present" value="yes" onclick="chkcontrol(2)"> and so on.... its not working any help?

  9. hi all,i don't need any script help just yet but i do need help with a method.i am going to right script for users to upload there videos and other users can see them.i have never worked with videos before and need to know the best method to do this, i have some questions too. what is the best video format to save the uploads?can videos be seen without flash?how do i make the video player or where can i get a free one?how do i get an image and duration out of the video to display in a menu?

  10. got it working ;)the problem was my $i was using... readfile('images/$pics/3.jpg');and now i am using... readfile('images/' . $pics . '/3.jpg');and its all working fine thank you every one for your help ;)

×
×
  • Create New...