Opened 4 years ago

Closed 3 years ago

#5621 closed defect (no-action)

Video media type not working

Reported by: Özcan Oğuz Owned by:
Priority: critical Milestone:
Component: programming Keywords: video, mediatypes, error
Cc: Parent Tickets:


Hello everyone,

I have initialized a new instance on and want to serve our conference's ([]) videos and slides from it; but when I tried to upload videos, it's not working.

First of all, I just added video media type and uploaded a demo video, but it stuck on "Processing" step. Then, I changed my mediagoblin.ini like this:

available_resolutions = 144p,240p,360p,480p,720p,1080p
default_resolution = 1080p
mime_types = video/webm, video/ogg, video/mp4, audio/ogg, application/ogg, application/x-annodex
container_formats = Matroska, Ogg, ISO MP4/M4A 
video_codecs = VP8 video, VP9 video, Theora, H.264, H.264 / AVC, MPEG-4 video
audio_codecs = Vorbis, MPEG-4 AAC audio
dimensions_match = false

But nothing changed. But I wanted to add media via {{{bin/gmg addmedia}} because I want to add ~20 GB of video. If I use this tool, video will appear on the site, but Video.js is not working and <source> tag is not exist on <video> block.

If I tried to reprocess a video that I uploaded via web with {{{bin/gmg reprocess}} I got this error:

WARNING:mediagoblin.processing:No idea what happened here, but it failed: TypeError("main_task() got multiple values for argument 'medium_size'",)
Traceback (most recent call last):
  File "bin/gmg", line 11, in <module>
    load_entry_point('mediagoblin', 'console_scripts', 'gmg')()
  File "/srv/", line 149, in main_cli
  File "/srv/", line 293, in reprocess
  File "/srv/", line 205, in run
  File "/srv/", line 277, in run_process_media
  File "/srv/", line 1196, in __call__
    return self.apply_async((), {'body': body} if body else {}, **options)
  File "/srv/", line 1237, in apply_async
    body=body, task_id=task_id, **options)
  File "/srv/", line 1251, in apply
    args=(tasks.apply(args, kwargs).get(propagate=propagate),),
  File "/srv/", line 1011, in apply
    sig.apply(args=args, kwargs=kwargs, **options) for sig, _ in tasks
  File "/srv/", line 1011, in <listcomp>
    sig.apply(args=args, kwargs=kwargs, **options) for sig, _ in tasks
  File "/srv/", line 192, in apply
    return self.type.apply(args, kwargs, **options)
  File "/srv/", line 741, in apply
    ret = tracer(task_id, args, kwargs, request)
  File "/srv/", line 388, in trace_task
    I, R, state, retval = on_error(task_request, exc, uuid)
  File "/srv/", line 374, in trace_task
    R = retval = fun(*args, **kwargs)
TypeError: main_task() got multiple values for argument 'medium_size'

I need to serve this videos, what should I do?

Change History (3)

comment:1 by Özcan Oğuz, 4 years ago

I fixed it temporarily by changing {{{mediagoblin/templates/mediagoblin/media_displays/video.html}} file as :

    {# for each_media_path in all_media_path #}
    <source src="{{ }}"
            {% if media.media_data %}
              type="{{ media.media_data.source_type() }}"
            {% else %}
              type="{{ media.media_manager['default_webm_type'] }}"
            {% endif %}
            label="{{ all_media_path }}" res="{{ all_media_path }}" />
    {# endfor #}

comment:2 by Ben Sturmfels, 3 years ago

Hi Özcan, sorry for the slow response. If this issue is still relevant, can you tell us what operating system you're running on? More recently I've added some Docker-based testing of the installation process on common platforms to avoid issues like you're seeing. Was the system deployed based on our guide, or some other approach?


comment:3 by Ben Sturmfels, 3 years ago

Resolution: no-action-required
Status: newclosed

We haven't heard back from Özcan, so closing this ticket.

Note: See TracTickets for help on using tickets.