Changes between Version 2 and Version 3 of Ticket #460, comment 2


Ignore:
Timestamp:
Feb 8, 2013, 4:18:10 PM (11 years ago)
Author:
pythonsnake

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #460, comment 2

    v2 v3  
    11It seems that your videos' resolutions cannot be detected by gstreamer. I had this issue as well and fixed it by remux'ing all the videos uploaded with ffmpeg (all to mkv for simplicity). That's how I did it (process_video in ''mediagoblin/mediagoblin/media_types/video/processing.py''):
    22{{{
    3 from os import system, rename
     3from subprocess import call
     4from shutil import move
    45#...
    56    with tmp_dst:
     
    910        # Added that
    1011        temp_vid = '/tmp/{0}.mkv'.format(queued_filepath[1])
    11         system('ffmpeg -i {0} -vcodec copy -acodec copy -scodec copy -y {1}'.format(queued_filename, temp_vid))
    12         rename(temp_vid, queued_filename)
    13 }}}
     12        remux_cmd = 'ffmpeg -i {0} -vcodec copy -acodec copy -scodec copy -y {1}'.format(queued_filename, temp_vid)
     13        call(remux_cmd(" "))
     14        move(temp_vid, queued_filename)