Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 ... 4 5 6 7 [8] 9 10 11   Go Down

Author Topic: FLV Player Integration MOD  (Read 338486 times)

0 Members and 1 Guest are viewing this topic.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: FLV Player Integration MOD
« Reply #140 on: February 10, 2009, 01:31:25 pm »

First: update your gallery to the latest version 1.4.20!

Hi,
 I did all the modifications from plugin instructions.
Unfortunately its not working. as you can see here 
http://www.caboz.com/aves/displayimage.php?album=8&pos=0
The flv files uploaded fine but i get a white square in sted the flv player
Please any help will be apreciated
thankx
Simple reason:
Code: [Select]
?autoStart=falsehas to be
Code: [Select]
&autoStart=false
This will work but won't result in the code as instructed.



Edit:
Hi, my name is caboz1 and i made a post here
[Hi,
 I did all the modifications from plugin instructions.
Unfortunately its not working. as you can see here 
 http://www.caboz.com/aves/displayimage.php?album=8&pos=0
The flv files uploaded fine but i get a white square in sted the flv player
Please any help will be apreciated
thankx]
If you think you can help me please anwser me or send me a e-mail will apreceat  Thankx
Gil cabozhttp://
Can't you read my signature? There is written
Quote
Post support questions to the proper board, not via PM!
Why do you send me a support question to a modification instruction of gwendolyn? >:(
Unfortunately I've read your PM after I made this post. Otherwise I had not made this post, that's sure!

Please respect the board rules you have accepted while registering on this board.
« Last Edit: February 10, 2009, 01:46:32 pm by eenemeenemuu »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: FLV Player Integration MOD
« Reply #141 on: February 26, 2009, 09:06:23 am »

I did all the modifications from plugin instructions.
It's not a plugin, but a mod. Behave, respect board rules!
Logged

queequeg

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: FLV Player Integration MOD
« Reply #142 on: March 31, 2009, 10:48:00 pm »

Greetings.  I followed this thread and got the .flv integration working perfectly.

The only issue is that now I have ">>?" showing up at the top left corner of all my pages.  (Except the question-mark is upside-down.  You can see it here: http://www.coolstucki.net.)

I've gone through my modified theme.php code a dozen times, and even re-did the cut/paste from this thread from scratch but don't really know what I'm looking for and it's still there.  If one of you code-gurus could scan this code and see if there is something screwy that pops out at you, it would be much appreciated.  It is the "rainy day" theme.

Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2009 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.
  
  ********************************************
  Coppermine version: 1.4.21
  $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.4.x/themes/rainy_day/theme.php $
  $Revision: 5728 $
  $Author: gaugau $
  $Date: 2009-03-02 09:25:17 +0100 (Mo, 02 Mär 2009) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has had all redundant CORE items removed                           //
// ------------------------------------------------------------------------- //

define('THEME_HAS_RATING_GRAPHICS'1);
define('THEME_IS_XHTML10_TRANSITIONAL',1);

// HTML template for sys_menu
$template_sys_menu = <<<EOT
  <div class="topmenu">
          <table border="0" cellpadding="0" cellspacing="0">
                  <tr>
  {BUTTONS}
                  </tr>
          </table>
  </div>
EOT;

// HTML template for template sys_menu buttons
$template_sys_menu_button = <<<EOT
<!-- BEGIN {BLOCK_ID} -->
  <td><img src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
  <td><img src="themes/rainy_day/images/button1_r1_c1.gif" width="5" height="25" border="0" alt="" /></td>
  <td style="background-image:url(themes/rainy_day/images/button1_r1_c2.gif)">
          <a href="{HREF_TGT}" title="{HREF_TITLE}">{HREF_LNK}</a>
  </td>
  <td><img src="themes/rainy_day/images/button1_r1_c3.gif" width="5" height="25" border="0" alt="" /></td>
<!-- END {BLOCK_ID} -->
EOT;

// Displays a picture
function theme_html_picture()
{
    global 
$CONFIG$CURRENT_PIC_DATA$CURRENT_ALBUM_DATA$USER;
    global 
$album$comment_date_fmt$template_display_media;
    global 
$lang_display_image_php$lang_picinfo;

    
$pid $CURRENT_PIC_DATA['pid'];
    
$pic_title '';

    if (!isset(
$USER['liv']) || !is_array($USER['liv'])) {
        
$USER['liv'] = array();
    }
    
// Add 1 to hit counter
    
if (!USER_IS_ADMIN && !in_array($pid$USER['liv']) && isset($_COOKIE[$CONFIG['cookie_name'] . '_data'])) {
        
add_hit($pid);
        if (
count($USER['liv']) > 4array_shift($USER['liv']);
        
array_push($USER['liv'], $pid);
    }

    if(
$CONFIG['thumb_use']=='ht' && $CURRENT_PIC_DATA['pheight'] > $CONFIG['picture_width'] ){ // The wierd comparision is because only picture_width is stored
      
$condition true;
    }elseif(
$CONFIG['thumb_use']=='wd' && $CURRENT_PIC_DATA['pwidth'] > $CONFIG['picture_width']){
      
$condition true;
    }elseif(
$CONFIG['thumb_use']=='any' && max($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']) > $CONFIG['picture_width']){
      
$condition true;
    }else{
     
$condition false;
    }

    if (
$CURRENT_PIC_DATA['title'] != '') {
        
$pic_title .= $CURRENT_PIC_DATA['title'] . "\n";
    }
    if (
$CURRENT_PIC_DATA['caption'] != '') {
        
$pic_title .= $CURRENT_PIC_DATA['caption'] . "\n";
    }
    if (
$CURRENT_PIC_DATA['keywords'] != '') {
        
$pic_title .= $lang_picinfo['Keywords'] . ": " $CURRENT_PIC_DATA['keywords'];
    }

    if (!
$CURRENT_PIC_DATA['title'] && !$CURRENT_PIC_DATA['caption']) {
        
template_extract_block($template_display_media'img_desc');
    } else {
        if (!
$CURRENT_PIC_DATA['title']) {
            
template_extract_block($template_display_media'title');
        }
        if (!
$CURRENT_PIC_DATA['caption']) {
            
template_extract_block($template_display_media'caption');
        }
    }

    
$CURRENT_PIC_DATA['menu'] = html_picture_menu(); //((USER_ADMIN_MODE && $CURRENT_ALBUM_DATA['category'] == FIRST_USER_CAT + USER_ID) || ($CONFIG['users_can_edit_pics'] && $CURRENT_PIC_DATA['owner_id'] == USER_ID && USER_ID != 0) || GALLERY_ADMIN_MODE) ? html_picture_menu($pid) : '';

    
if ($CONFIG['make_intermediate'] && $condition ) {
        
$picture_url get_pic_url($CURRENT_PIC_DATA'normal');
    } else {
        
$picture_url get_pic_url($CURRENT_PIC_DATA'fullsize');
    }

    
$image_size compute_img_size($CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight'], $CONFIG['picture_width']);

    
$pic_title '';
    
$mime_content cpg_get_type($CURRENT_PIC_DATA['filename']);


    if (
$mime_content['content']=='movie' || $mime_content['content']=='audio') {

        if (
$CURRENT_PIC_DATA['pwidth']==|| $CURRENT_PIC_DATA['pheight']==0) {
            
$CURRENT_PIC_DATA['pwidth']  = 320// Default width

            // Set default height; if file is a movie
            
if ($mime_content['content']=='movie') {
                
$CURRENT_PIC_DATA['pheight'] = 240// Default height
            
}
        }

        
$ctrl_offset['mov']=15;
        
$ctrl_offset['wmv']=45;
        
$ctrl_offset['swf']=0;
        
$ctrl_offset['rm']=0;
        
$ctrl_offset_default=45;
        
$ctrl_height = (isset($ctrl_offset[$mime_content['extension']]))?($ctrl_offset[$mime_content['extension']]):$ctrl_offset_default;
        
$image_size['whole']='width="'.$CURRENT_PIC_DATA['pwidth'].'" height="'.($CURRENT_PIC_DATA['pheight']+$ctrl_height).'"';
    }

    if (
$mime_content['content']=='image') {
        if (isset(
$image_size['reduced'])) {
            
$winsizeX $CURRENT_PIC_DATA['pwidth']+5;  //the +'s are the mysterious FF and IE paddings
            
$winsizeY $CURRENT_PIC_DATA['pheight']+3//the +'s are the mysterious FF and IE paddings
            
$pic_html "<a href=\"javascript:;\" onclick=\"MM_openBrWindow('displayimage.php?pid=$pid&amp;fullsize=1','" uniqid(rand()) . "','scrollbars=yes,toolbar=no,status=no,resizable=yes,width=$winsizeX,height=$winsizeY')\">";
            
$pic_title $lang_display_image_php['view_fs'] . "\n==============\n" $pic_title;
            
$pic_html .= "<img src=\"" $picture_url "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";
            
$pic_html .= "</a>\n";
        } else {
            
$pic_html "<img src=\"" $picture_url "\" {$image_size['geom']} class=\"image\" border=\"0\" alt=\"\" /><br />\n";
        }
    } elseif (
$mime_content['content']=='document') {
        
$pic_thumb_url get_pic_url($CURRENT_PIC_DATA,'thumb');
        
$pic_html "<a href=\"{$picture_url}\" target=\"_blank\" class=\"document_link\"><img src=\"".$pic_thumb_url."\" border=\"0\" class=\"image\" /></a>\n<br />";
    } else {
        
$autostart = ($CONFIG['media_autostart']) ? ('true'):('false');

        
$players['WMP'] = array('id' => 'MediaPlayer',
                                
'clsid' => 'classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" ',
                                
'codebase' => 'codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112" ',
                                
'mime' => 'type="application/x-mplayer2" ',
                               );
        
$players['RMP'] = array('id' => 'RealPlayer',
                                
'clsid' => 'classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" ',
                                
'codebase' => '',
                                
'mime' => 'type="audio/x-pn-realaudio-plugin" '
                               
);
        
$players['QT']  = array('id' => 'QuickTime',
                                
'clsid' => 'classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ',
                                
'codebase' => 'codebase="http://www.apple.com/qtactivex/qtplugin.cab" ',
                                
'mime' => 'type="video/x-quicktime" '
                               
);
        
$players['SWF'] = array('id' => 'SWFlash',
                                
'clsid' => ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ',
                                
'codebase' => 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ',
                                
'mime' => 'type="application/x-shockwave-flash" '
                               
);
        
$players['UNK'] = array('id' => 'DefaultPlayer',
                                
'clsid' => '',
                                
'codebase' => '',
                                
'mime' => ''
                               
);

        if (isset(
$_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'])) {
            
$user_player $_COOKIE[$CONFIG['cookie_name'].'_'.$mime_content['extension'].'player'];
        } else {
            
$user_player $mime_content['player'];
        }

// There isn't a player selected or user wants client-side control
        
if (!$user_player) {
            
$user_player 'UNK';
        }

        if (
$mime_content['content']=='movie' && $mime_content['extension']=='flv') {
    $flv =  $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'];
    $pic_html  "<embed src='flvplayer.swf' width='640' height='480' allowfullscreen='true' allowscriptaccess='always' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' 
flashvars='file=
$flv' />";
            
$pic_html .= "<br />\n";

        } else {

        
$player $players[$user_player];

        
$pic_html  '<object id="'.$player['id'].'" '.$player['classid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
        
$pic_html .= "<param name=\"autostart\" value=\"$autostart\" /><param name=\"src\" value=\""$picture_url "\" />";
        
$pic_html .= '<embed '.$image_size['whole'].' src="'$picture_url '" autostart="'.$autostart.'" '.$player['mime'].'></embed>';
        
$pic_html .= "</object><br />\n";

}
    }

    
$CURRENT_PIC_DATA['html'] = $pic_html;
    
$CURRENT_PIC_DATA['header'] = '';
    
$CURRENT_PIC_DATA['footer'] = '';

    
$CURRENT_PIC_DATA CPGPluginAPI::filter('file_data',$CURRENT_PIC_DATA);

    
$params = array('{CELL_HEIGHT}' => '100',
        
'{IMAGE}' => $CURRENT_PIC_DATA['header'].$CURRENT_PIC_DATA['html'].$CURRENT_PIC_DATA['footer'],
        
'{ADMIN_MENU}' => $CURRENT_PIC_DATA['menu'],
        
'{TITLE}' => bb_decode($CURRENT_PIC_DATA['title']),
        
'{CAPTION}' => bb_decode($CURRENT_PIC_DATA['caption']),
        );

    return 
template_eval($template_display_media$params);
}

?>


Thank you.
Logged

queequeg

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: FLV Player Integration MOD
« Reply #143 on: March 31, 2009, 10:55:13 pm »

Man, now I feel dumb.  Appearantly the text editor I was using inserted those weird >>? characters.  Re-saved in linux and it looks fine now.

Thanks anyway!
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: FLV Player Integration MOD
« Reply #144 on: March 31, 2009, 11:21:08 pm »

Thanks for coming back and resolving your problem. Many people do not bother so others then waste time looking into it. It also help when someone else comes along with the same issue.

As for text editors I too have made the mistake of copying text from Word and the like or using a dodgy text editor. Glad you sorted it.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: FLV Player Integration MOD
« Reply #145 on: April 02, 2009, 07:28:39 am »

The strange characters (usually the actual representation is ) are called Byte Order Mark (aka "BOM"). There are many threads on this board that contain a more detailed explanation how they creep in, how to get rid of them and what editors to use. I suggest using the board's search feature and use "Byte-Order-Mark" or similar as keyword.
You (queequeg) have changed the default encoding from utf-8 to iso8859-1: why on earth did you do that? Not a bright move - I suggested undoing that (you can not simply switch back to utf-8 (unicode) in coppermine's config though, as the textual content in your database that has been added from the moment you switched to iso8859-1 is in that encoding as well. Any non-lation characters will look distorted if you switch. If you have used special chars at all, you can savely switch. If you are using special chars (like German Umlauts ä ö ü Ä Ö Ü) or accented chars (à á è é È É etc.), they will break and need to be converted. If your last name is actually "Stucki" (as your URL suggests), your ancestors probably came from Switzerland or Germany, so maybe there are Umlauts on your site (haven't checked in detail, nor could I check fully).

Both issues (Byte Order Mark and improper use of encoding) are not related to this mod and should therefor not be discussed in detail on this announcement thread. If you have questions on those two subjects, please start a separate thread on the "regular" support board with a reference to this thread.
Logged

cl9m

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
Re: FLV Player Integration MOD
« Reply #146 on: April 18, 2009, 10:14:14 am »

Thanks for this MOD,

I read about jwplayer "mp4" format is supported too
I try to add this extention but that don't work
I add whit files type : mp4     video/mp4     movie     Flash player

but in my theme.php I've this code
Code: [Select]
if($mime_content['extension']!='flv') {
$flvcheck = fopen($flv,"r");
$flv=fgets($flvcheck);
fclose($flvcheck);
}

How can I do? for add mp4 extention?

thx
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: FLV Player Integration MOD
« Reply #147 on: April 18, 2009, 11:05:53 am »

How can I do? for add mp4 extention?

According to my solution, you have to:
Search in the unmodified function theme_html_picture:
Code: [Select]
        $player = $players[$user_player];

        $pic_html  = '<object id="'.$player['id'].'" '.$player['clsid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
        $pic_html .= "<param name=\"autostart\" value=\"$autostart\" /><param name=\"src\" value=\"". $picture_url . "\" />";
        $pic_html .= '<embed '.$image_size['whole'].' src="'. $picture_url . '" autostart="'.$autostart.'" '.$player['mime'].'></embed>';
        $pic_html .= "</object><br />\n";
and replace it with:
Code: [Select]
        $player = $players[$user_player];

        if ($mime_content['extension'] == "flv" || $mime_content['extension'] == "mp4" ) {
            $pheight = $CURRENT_PIC_DATA['pheight'] + 20;
            $thumb = get_pic_url($CURRENT_PIC_DATA, 'thumb');
            $pic_html = "<embed type=\"application/x-shockwave-flash\" width=\"{$CURRENT_PIC_DATA['pwidth']}\" height=\"$pheight\" allowfullscreen=\"true\" src=\"jw_player.swf\" flashvars=\"file=$picture_url&image=$thumb\" />";
        } else {
            $pic_html  = '<object id="'.$player['id'].'" '.$player['clsid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
            $pic_html .= "<param name=\"autostart\" value=\"$autostart\" /><param name=\"src\" value=\"". $picture_url . "\" />";
            $pic_html .= '<embed '.$image_size['whole'].' src="'. $picture_url . '" autostart="'.$autostart.'" '.$player['mime'].'></embed>';
            $pic_html .= "</object><br />\n";
        }
Logged

cl9m

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
Re: FLV Player Integration MOD
« Reply #148 on: April 19, 2009, 11:16:28 am »

Thanks !

that's work for mp4 extension

but now the flv files no playing, the jw player say "This playlist is not a valid XML file."  :-[
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: FLV Player Integration MOD
« Reply #149 on: April 19, 2009, 11:21:08 am »

This is not caused by my mod.
All I have done is changing
Code: [Select]
if ($mime_content['extension'] == "flv") {to
Code: [Select]
if ($mime_content['extension'] == "flv" || $mime_content['extension'] == "mp4") {which forces cpg to use jw-player to play mp4 files, nothing more. It doesn't changes the behavior of playing flv files.
Logged

cl9m

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
Re: FLV Player Integration MOD
« Reply #150 on: April 19, 2009, 11:42:12 am »

mp4 and flv work!!
Sorry it was me, I has an error code too much }
Thanks for your quickly answers and your code!
Logged

donsenilo

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • Bookmarks (Links), Grafik, Musik, Movies (Filme), DVD's, CD's, Amazon-Shop by Starmaker - Mark Tailor
Re: FLV Player Integration MOD
« Reply #151 on: May 29, 2009, 09:05:04 pm »

hello

i got the error "playlist is not a valid xml ..." too - but the file is a flv. i have to rename the name of the player-file, because it's new name is "player.swf".

this is the code - i think, it's correct:
          // There isn't a player selected or user wants client-side control
        if (!$user_player) {
            $user_player = 'UNK';
        }

      if ($mime_content['content']=='movie' && $mime_content['extension']=='flv') {
       $flv =  $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'];
       $pic_html  = "<object type=\"application/x-shockwave-flash\" width=\"320\" height=\"260\" wmode=\"transparent\" data=\"player.swf?file=$flv?autoStart=false\">";
       $pic_html .= "<param name=\"movie\" value=\"player.swf?file=$flv?autoStart=false\" />";
       $pic_html .= "<param name=\"wmode\" value=\"transparent\" />";
            $pic_html .= "</object><br />\n";

        } else {

        $player = $players[$user_player];

        $pic_html  = '<object id="'.$player['id'].'" '.$player['clsid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
        $pic_html .= "<param name=\"autostart\" value=\"$autostart\" /><param name=\"SendPlayStateChangeEvents\" value=\"True\" /><param name=\"enableContextMenu\" value=\"True\" /><param name=\"enabled\" value=\"true\" /><param name=\"Volume\" value=\"10\" /><param name=\"uiMode\" value=\"full\" /><param name=\"PlayCount\" value=\"1\" /><param name=\"ShowStatusBar\" value=\"true\" /><param name=\"ShowDisplay\" value=\"false\" /><param name=\"url\" value=\"". $picture_url . "\" />";
        $pic_html .= '<embed '.$image_size['whole'].' src="'. $picture_url . '" ShowControls="1" ShowStatusBar="1" ShowDisplay="0" volume="10" autostart="'.$autostart.'" '.$player['mime'].'></embed>';
        $pic_html .= "</object><br />\n";}
    }

can someone give me a hint please ?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: FLV Player Integration MOD
« Reply #152 on: May 29, 2009, 09:16:23 pm »

i have to rename the name of the player-file, because it's new name is "player.swf".
Why don't you just rename the swf file?

You can also try my code, maybe it works better for you.
Logged

donsenilo

  • Coppermine regular visitor
  • **
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 93
    • Bookmarks (Links), Grafik, Musik, Movies (Filme), DVD's, CD's, Amazon-Shop by Starmaker - Mark Tailor
Re: FLV Player Integration MOD
« Reply #153 on: May 29, 2009, 09:36:54 pm »

@eenemeenemuu

ok, your code works perfect  ;D (http://www.andmore.at/cpg14x/displayimage-15-0.html)

thank you for your help !!!
Logged

ff

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
Re: FLV Player Integration MOD
« Reply #154 on: June 20, 2009, 10:53:22 pm »

Is there a difference between .flv-files created with `mencoder' and those created with `Riva' under Windows?

I created a .mpg which is converted to .flv with `Riva'. Movie 20090216-stofzuigen.flv does play.
I created a .flv from 27 .jpgs with `mencoder'. Movie 2009-06-07_telefoon.flv doesn't play. The player states "MEDIA NOT FOUND".

The file is really there and added via 'Batch add'.

The command `file' gives:
20090216-stofzuigen.flv: Macromedia Flash Video
2009-06-07_telefoon.flv: Macromedia Flash Video

I created the .flv from the .jpgs with the command:
Code: [Select]
mencoder "mf://*.jpg" -mf type=jpeg:fps=2 -o output.flv -oac copy -of lavf -ovc lavc -lavcopts vcodec=flv:keyint=1
What am I doing wrong?
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: FLV Player Integration MOD
« Reply #155 on: June 20, 2009, 11:20:46 pm »

What am I doing wrong?

You are asking on a forum to support Coppermine, not media conversion issues.

Try Google and please stick to the subject of this thread.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

ff

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 108
Re: FLV Player Integration MOD
« Reply #156 on: June 20, 2009, 11:38:33 pm »

I thought it was an error with the player (can't handle other kind of .flv's).

But the error was a cache which wasn't cleared correctly. Apologies.
Logged

tarakan

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: FLV Player Integration MOD
« Reply #157 on: July 15, 2009, 04:09:27 pm »

i integrated the mod, it works great, thanks very much. BUT: i want the flash movies start automatically. how shall i edit my code below? (kindo newbie here)
Code: [Select]
// There isn't a player selected or user wants client-side control
        if (!$user_player) {
            $user_player = 'UNK';
        }

        if ($mime_content['content']=='movie' && $mime_content['extension']=='flv') {
    $flv =  $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'];
    $pic_html  = "<embed src='flvplayer.swf' width='320' height='260'
type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'
flashvars='file=$flv' />";
            $pic_html .= "<br />\n";

        } else {

        $player = $players[$user_player];

        $pic_html  = '<object id="'.$player['id'].'" '.$player['clsid'].$player['codebase'].$player['mime'].$image_size['whole'].'>';
        $pic_html .= "<param name=\"autostart\" value=\"$autostart\" /><param name=\"src\" value=\"". $picture_url . "\" />";
        $pic_html .= '<embed '.$image_size['whole'].' src="'. $picture_url . '" autostart="'.$autostart.'" '.$player['mime'].'></embed>';
        $pic_html .= "</object><br />\n";

}
    }
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: FLV Player Integration MOD
« Reply #158 on: July 15, 2009, 04:11:51 pm »

Use this solution.
Logged

tarakan

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: FLV Player Integration MOD
« Reply #159 on: July 15, 2009, 04:31:46 pm »

thanks for fast response but im not using fullscreen mode and i could not understand the solution at the link :(
Logged
Pages: 1 ... 4 5 6 7 [8] 9 10 11   Go Up
 

Page created in 0.034 seconds with 20 queries.