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


Ignore:
Timestamp:
Jan 9, 2013, 12:02:00 AM (11 years ago)
Author:
pythonsnake

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #460, comment 2

    v1 v2  
    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
     3from os import system, rename
    44#...
    55    with tmp_dst:
     
    1010        temp_vid = '/tmp/{0}.mkv'.format(queued_filepath[1])
    1111        system('ffmpeg -i {0} -vcodec copy -acodec copy -scodec copy -y {1}'.format(queued_filename, temp_vid))
    12         system('mv {0} {1}'.format(temp_vid, queued_filename))
     12        rename(temp_vid, queued_filename)
    1313}}}