Closed k2patel closed 3 years ago
It seems that it is not directly related to your media file, but to your terminal encoding. I guess that you are not using UTF-8.
However, this failure occurs because something is output on stderr
. But the error will be clearer once you set your terminal to be UTF-8, if possible.
Hello Glandos, Terminal does set for UTF-8, that is the first thing i've checked.
locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
My terminal uses powerline on bash, i've tried the same command from sh, same result (failure with same message).
INFO - Reading settings ... DEBUG - Settings file: sigal.conf.py DEBUG - Rewrite source : Collection -> /home/web/Collection DEBUG - Rewrite destination : Site2 -> /home/web/Site2 DEBUG - Settings: {'albums_sort_attr': 'name', 'albums_sort_reverse': False, 'author': 'k2patel', 'autorotate_images': True, 'colorbox_column_size': 3, 'copy_exif_data': False, 'copyright': '© k2patel', 'datetime_format': '%c', 'destination': '/home/web/Site2', 'files_to_copy': (), 'google_analytics': '', 'google_tag_manager': '', 'html_language': 'en', 'ignore_directories': [], 'ignore_files': [], 'img_extensions': ['.jpg', '.jpeg', '.png', '.gif'], 'img_processor': 'ResizeToFit', 'img_size': (800, 600), 'index_in_url': False, 'jpg_options': {'optimize': True, 'progressive': True, 'quality': 85}, 'keep_orig': False, 'leaflet_provider': 'OpenStreetMap.Mapnik', 'links': '', 'locale': '', 'make_thumbs': True, 'medias_sort_attr': 'filename', 'medias_sort_reverse': False, 'mp4_options': ['-crf', '23'], 'orig_dir': 'original', 'orig_link': False, 'output_filename': 'index.html', 'piwik': {'site_id': 0, 'tracker_url': ''}, 'plugin_paths': [], 'plugins': ['sigal.plugins.copyright'], 'show_map': False, 'site_logo': '', 'source': '/home/web/Collection', 'theme': 'photoswipe', 'thumb_dir': 'thumbnails', 'thumb_fit': True, 'thumb_fit_centering': (0.5, 0.5), 'thumb_prefix': '', 'thumb_size': (280, 210), 'thumb_suffix': '', 'thumb_video_delay': '0', 'title': '', 'use_orig': False, 'video_converter': 'ffmpeg', 'video_extensions': ['.mov', '.avi', '.mp4', '.webm', '.ogv', '.3gp'], 'video_format': 'webm', 'video_size': (480, 360), 'watermark': '', 'webm_options': ['-crf', '10', '-b:v', '1.6M', '-qmin', '4', '-qmax', '63'], 'write_html': True, 'zip_gallery': False, 'zip_media_format': 'resized'} INFO - Source : /home/web/Collection INFO - Destination : /home/web/Site2 INFO - Theme : photoswipe DEBUG - Plugin paths: [] DEBUG - Registered plugin sigal.plugins.copyright INFO - Using 3 cores
Thank you,
Are you sure that you are running version 2.0? The lines in your traceback correspond to an older version.
Could you also try to run this in a python shell:
import subprocess
subprocess.run(['ffmpeg', '-i', source], stderr=subprocess.PIPE)
where source is your file.
Please reopen if still needed.
sigal --version sigal, version 2.0
Error Message :
Same file works fine with ffmpeg. tried converting file to .H264 ( still fail). Any idea ?
Thank you