Ticket #96 (closed task: fixed)

Opened 7 years ago

Last modified 5 years ago

plumi doesn't play flv files using vpip keyword

Reported by: yurj Owned by: andycat
Priority: major Milestone: 3.1
Component: ATEngageVideo Severity:
Keywords: vpip flv Cc:
Who will test this:



Change History

comment:1 Changed 7 years ago by and

  • Summary changed from plumi don't works with flv uploaded file and vpip keyword to plumi doesn't play flv files using vpip keyword
  • Milestone set to 0.3

hmm... was it ever working for FLVs? Probably would be useful to add/fix regardless.

comment:2 Changed 7 years ago by anonymous

yes, please, fix it.

Plone need a solution for .flv. Plone4artists don't works well in this area.

comment:3 Changed 7 years ago by and

  • Reporter changed from anonymous to yurj

There is a very long list of things to fix at the moment so it may take a while to get to. If you have coding skills or know people that do we encourage to participate and make this a collaborative effort.

comment:4 Changed 7 years ago by anonymous

ok, at least correct the wiki about this not working :)

Note: why not just "jump" the transcoding phase for flv files? They should play natively on inditube player...

Well, in the middle, I've hacked the video_view template to use flvplayer.swf *add to the skin, I've done it in custom* to play vpip tagged files.

At least, now I can play flv.


<html xmlns:tal=""

xmlns:metal="" metal:use-macro="here/main_template/macros/master" i18n:domain="ATVideo">

<metal:block fill-slot="top_slot" />


<div metal:fill-slot="main">

<div metal:use-macro="here/document_actions/macros/document_actions">

Document actions (print, sendto etc)


<h1 tal:content="title_string | here/title_or_id" class="documentFirstHeading" />

<div metal:use-macro="here/document_byline/macros/byline">

Get the byline - contains details about author and modification date.

</div> <div style="float:left; width: 70%">

<div class="videoitemtop"


<span style="font-weight: bold;">Produced by</span> <span tal:content="here/Producer">




<div class="videoitemtop"


<span style="font-weight: bold;">Directed by</span> <span tal:content="here/Director">




<div class="videoitemtop"


tal:define="vocab python: here.portal_vocabularies.getVocabularyByName('video_genre');

genre_id here/Genre">

<div tal:omit-tag="" tal:condition="python: genre_id != 'aaa_none'">

<span style="font-weight: bold;">Genre:</span> <!-- genre_id name for the specific genre folder is defined in Extension/AppInstall?.py -->

<a tal:attributes="href python: portal_url +'/'+here.getTopLevelFolder()+'/'+here.getGenreFolder()+'/'+genre_id">

<span tal:content="python: vocab[genre_id].Title()">genre</span></a>



<!-- links to categories -->

<div class="videoitemtop" tal:condition="here/Categories"

tal:define="vocab python: here.portal_vocabularies.getVocabularyByName('video_categories');

cat_ids here/Categories">

<span style="font-weight: bold;">Topic:</span> <metal:block tal:repeat="cat_id cat_ids">

<!-- cat_id name for the specific category folder is defined in Extension/AppInstall?.py -->

<a tal:attributes="href python: portal_url +'/'+here.getTopLevelFolder()+'/'+here.getCategoriesFolder()+'/'+cat_id"> <span tal:content="python: vocab[cat_id].Title()">category</span></a>




<!-- links to country -->

<div tal:condition="here/Country" class="videoitemtop"

tal:define="country_id here/Country;

countryobj python: here.portal_countryutils.getCountryByIsoCode(country_id);">

<span style="font-weight: bold;">Country:</span> <!-- country_id name for the specific country folder is defined in Extension/AppInstall?.py -->

<a tal:attributes="href python: portal_url +'/'+here.getTopLevelFolder()+'/'+here.getCountryFolder()+'/'+country_id">

<span tal:content="python:">countryname</span></a>


<!-- links to tags -->

<div tal:condition="here/Subject" class="videoitemtop"

tal:define="tags here/Subject; ">

<span style="font-weight: bold;">Tags:</span> <metal:block tal:repeat="tag tags">

<a tal:attributes="href python: portal_url +'/tag_cloud_explorer_results?subjects:list='+tag"> <span tal:content="tag">tag</span></a> &nbsp;


</div> </div> <div style="float:right;">

<div class="videoitemimage" style="float:right; text-align: center; clear:both;">

<div tal:define="item_wf_state here/review_state|python: here.portal_workflow.getInfoFor(here, 'review_state', );

keywords here/Subject; using_vpip python:here.playVPIP(keywords); " class="hvlog">


tal:attributes="href here/absolute_url; title here/title" tal:condition="using_vpip"

<object type="application/x-shockwave-flash" width="320" height="200"

wmode="transparent" tal:attributes="data string:flvplayer.swf?file=${here/absolute_url}" data="flvplayer.swf?file=20051210-w50s.flv&autoStart=true">

<param name="movie" tal:attributes="value string:flvplayer.swf?file=${here/absolute_url}" value="flvplayer.swf?file=20051210-w50s.flv&autoStart=true" />

<param name="wmode" value="transparent" />

</object> <!-- vedi il filmato: <a tal:attributes="href string:flvplayer.swf?file=${here/id}&width=400&height=350" href="flvplayer.swf?file=20051210-w50s.flv" target="_new" onclick=",,'top=0, left=0, width=400, height=300');return false;">qui</a> -->


<div tal:omit-tag="" tal:condition="not:using_vpip">

<a class="download" tal:condition="python: here.hasThumbnailImage() and here.getIndyTubeStatus() != 1"

tal:attributes="href string:${here/absolute_url}/thumbnailImage/image_view_fullscreen">

<img tal:replace="structure here/thumbnailImage_small" width="160" height="120" tal:attributes="alt here/ThumbnailImageDescription; style string:margin-bottom:5px;" /> <br /> <img tal:replace="structure here/search_icon.gif" /> <span i18n:translate="thumbnail_click_to_enlarge">

View larger image



<!-- include auto flv html snippet --> <div tal:content="structure python: here.getIndyTubeHTML() "> </div>




<a class="download"

tal:attributes="href string:${here/absolute_url}/download"

tal:define="enc here/getFileAttribs"

tal:condition="python: enc[1] > 0">

<img tal:replace="structure here/download.gif" />

Download video


<br />

<a class="download"

tal:attributes="href bt_url" tal:define="enc here/getFileAttribs ; bt_url here/getTorrentURL" tal:condition="python: enc[1] > 0 and ( here.portal_atmediafiletool.getEnable_bittorrent() or here.portal_atmediafiletool.getEnable_remote_bittorrent() ) and bt_url != ">

<img tal:replace="structure here/torrent.png" />

Download via BitTorrent


</div> </div>


<div tal:content="structure python: here.getMediaWidget()" />


<br />

<div class="documentDescriptionVideo"




<br />

<div tal:condition="here/ProducerEmailAddress"

tal:define="emailaddy here/ProducerEmailAddress">

<span style="font-weight: bold;">Contact:</span>

<a href="" tal:attributes="href python: 'mailto:' + emailaddy">

<span tal:content="here/ProducerEmailAddress">

email address

</span> </a>


<div tal:condition="here/websiteAddress">

<span style="font-weight: bold;">Home Page:</span>

<a href="" tal:attributes="href here/getWebsiteURL">

<span tal:define="url here/getWebsiteURL" tal:content="url">

web address

</span> </a>


<div tal:condition="here/Language"

tal:define="vocab python: here.portal_vocabularies.getVocabularyByName('video_language');

lang_id here/Language">

<span style="font-weight: bold;">Language:</span> <span tal:content="python: vocab[lang_id].Title()">




<div tal:define="dp here/DateProduced"

tal:condition="python: not dp is None">

<span style="font-weight: bold;">Produced:</span> <span tal:content="here/DateProduced">

date produced.



<div tal:condition="here/productionCompanyName">

<span style="font-weight: bold;">Production Company:</span> <span tal:content="here/productionCompanyName">

production company


</div> <div tal:condition="here/Distributor">

<span style="font-weight: bold;">Distributor:</span> <span tal:content="here/Distributor">




<div tal:condition="here/DurationOfVideo">

<span style="font-weight: bold;">Duration:</span>

<span tal:define="duration here/getFormattedDuration" tal:content="duration">




<!-- file size -->

<span style="font-weight: bold;">File Size:</span>

<span tal:define="fsiz here/getObjSize" tal:content="fsiz">



<br /> <p /> <div class="visualClear"><!-- --></div> <!-- full description - richtext --> <div class="videoitem-description-heading" tal:condition="here/FullDescription | nothing">

<span style="font-weight: bold;">Full description:</span>

</div> <div tal:condition="here/FullDescription | nothing">

<div tal:replace="structure here/FullDescription"/>


<p />

<div tal:condition="python: 'Manager' in container.portal_membership.getAuthenticatedMember().getRoles() or container.portal_membership.getAuthenticatedMember().getUserName() in here.users_with_local_role('Owner')">

<br/> <h2>Transcode Status</h2>

<div tal:define="status python: here.getIndyTubeStatus()">

<div tal:condition="python: status == -1"> The transcoding failed. </div> <div tal:condition="python: status == 0"> The transcoding has started , and not finished. </div> <div tal:condition="python: status == 1"> The transcoding has worked successfully. </div> <div tal:condition="python: status == 2"> The transcoding has not started. </div>

</div> <br/> You may like to try to <a tal:attributes="href string:${here/absolute_url}/reTranscode">re-start transcoding.</a> <br/> If the automatically transcoded movie is corrupted, or poor quality etc. , you may like to <a tal:attributes="href string:${here/absolute_url}/stopTranscode">turn off flowplayer and automatic transcoding.</a>


<div class="visualClear"><!-- --></div>

<!-- Content Licensing --> <div tal:replace="structure context/@@copyright_byline_view" />

<div tal:replace="structure context/@@citation_view" />

<div tal:replace="structure context/@@metadata_view" />




comment:5 Changed 7 years ago by and

I've removed the references to FLV files on until the fix is added.

If you come up with a fix that keeps the same template let us know. The aaronsfootball site doesn't seem to use plone, so I can't see where you have implemented it.

"Note: why not just "jump" the transcoding phase for flv files? They should play natively on inditube player..."

AFAIK (and I am not a coder) it's really not that simple. indytube is not a player, it's a transcoding application, flowplayer is the player.

comment:6 Changed 6 years ago by anonymous

yeah, I mean the flowplayer.

The solution is just to tell to the indytube transcoding application to not transcode flv, but just copy them where they belong. So we can stop to use the "vpip" tag.

comment:7 Changed 6 years ago by anonymous

FYI, seems to have fixed the vpip player:

comment:8 Changed 6 years ago by anonymous

Hi Yurj, making flash files call the flowplayer won't stop the need to tag things as indytube. You might want to have a deeper look through the code to understand how things are set up, there is no real relation between vpip and indytube at all. Also labournetjp have not fixed the flash playback, that is a wmv file.

comment:9 Changed 6 years ago by anonymous

yes, but it is converted in flv.

I mean, I don't understand why vPIP is needed at all. I'm goingo to add by hand those .inc files to use flowplayer, and upload my "already" flv files in plumi.

comment:14 Changed 6 years ago by yurj

dose vip works in plumi 0.2?

P.S. thanks for the including of cabtube in the list of sites running plumi, very proud of it :)

comment:15 Changed 5 years ago by andycat

We are going to add FLV files to indytube by default, so that uploaded FLV files will be transcoded down to the standard resolution etc , but still be in FLV codec, then they will be displayed in flowplayer.

comment:16 Changed 5 years ago by andycat

  • Status changed from new to closed
  • Resolution set to fixed

Latest version of Plumi 0.2.3-rc4 (about to release 0.2.3-final) has a default configuration that transcodes FLV files to our preview FLV version.

Making this ticket as done.

comment:17 Changed 5 years ago by anonymous


Thank you also for other ticket you've resolved, I'm going to test plumi 0.3 to see how it works :)


Add a comment

Modify Ticket

as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.