Changes between Version 2 and Version 3 of Ticket #460, comment 2
- Timestamp:
- Feb 8, 2013, 4:18:10 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified Ticket #460, comment 2
v2 v3 1 1 It 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''): 2 2 {{{ 3 from os import system, rename 3 from subprocess import call 4 from shutil import move 4 5 #... 5 6 with tmp_dst: … … 9 10 # Added that 10 11 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)