Page MenuHomePhabricator

Transcodes in formats removed from $wgEnabledTranscodeSet and $wgEnabledAudioTranscodeSet not automatically removed
Closed, DeclinedPublic

Description

Steps to Reproduce

  • Download and install timedmediahandler and mwembed

Actual Results

  • When you go to a video on your wiki and you change the setting in TimedMediaHandler.php it dosent change anything you can still view the video in that format.

Expected Results

  • Go to TimedMediaHandler.php file then go to setting $wgEnabledTranscodeSet then remove all off OGV_X settings.

Then go to a video for example File:FEZ trial gameplay HD.webm on your wiki then try using internet explorer.

ogv format should not show but it does.

Please fix this.

This may be a reason why in extension.json it wont work if over written in localsettings.php or wont turn it off.

There also needs support to change the default by doing false or true for that specific format.

**

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

Paladox raised the priority of this task from to Needs Triage.
Paladox updated the task description. (Show Details)
Paladox added a project: TimedMediaHandler.
Paladox subscribed.

Even removing public static $derivativeSettings stuff in it and the stuff still shows. Meaning that something isent being controlled properly meaning it is doing it anys ways without the settings overriding it.

Please fix this.

Can I set this as high priority since the settings is broken making it use less so the setting needs fixing.

Maybe caching could be the problem. Since I try removing the messages from en.json but they still shows on the video even when refreshing.

brion triaged this task as Lowest priority.Jan 18 2016, 7:19 PM
brion subscribed.

Old transcodes aren't automatically removed. You can re-run them to remove.

brion renamed this task from $wgEnabledTranscodeSet and $wgEnabledAudioTranscodeSet settings do not work to Transcodes in formats removed from $wgEnabledTranscodeSet and $wgEnabledAudioTranscodeSet not automatically removed.Jan 18 2016, 7:20 PM

@brion I use it on my local site that uses the transcodes from commons and when I remove them they should not show as an option when playing the video in that format.

Meaning the transcodes can stay there they just carnt be played in the player.

@TheDJ this config is broken since all transcodes work no matter what. What we could convert it to also support strings so like an if statement with || so that way we can use either way to get that transcode to work but config still blocks everything.

@TheDJ and @brion ive found the problem. It is in mw.PlayerControlBuilder.js file.

The function is getSwitchSourceMenu: function(){

and problem code is var icon = ( source.getSrc() == embedPlayer.mediaElement.selectedSource.getSrc() ) ? 'bullet' : 'radio-on';

So regardless of our config that var will alway overide it since it is finding the source of the file and displaying it. It isent going through a setup when only the sources specified in the config are shown.

Actually it is not that function it is getHtmlMediaTagOutput in TimedMediaTransformOutput.php.

Change 284368 had a related patch set uploaded (by TheDJ):
Remove transcodes that are no longer enabled

https://gerrit.wikimedia.org/r/284368

@TheDJ Would this https://gerrit.wikimedia.org/r/284368 also work for example if you are watching a commons videos on another wiki such as your own wiki would that work or would it show the videos that are not even specified in your config unless changed Wikimedia side.

And thanks for working on this.

Change 284368 abandoned by TheDJ:
Remove transcodes that are no longer enabled

https://gerrit.wikimedia.org/r/284368

I recommend using cleanupTranscodes.php to remove old files rather than trying to auto-remove them, as there may be race conditions, or a need to revert a change, etc.

Closing as declined, though now there's a way to clean them up manually. :)