Comments (4)
Hi @reagle ,
from the trace you put in #53, it seems that the thumbnail for the video is not generated. I would guess that some option is not compatible with avconv, if you can check manually ?
For easier debugging you can use the -n
to use only one cpu, then the pool is not used:
sigal build -fd -n 1
Can you paste the output ?
from sigal.
urd:~/f/photo$ sigal build -fd -n 1 test-in
INFO: Reading settings ...
DEBUG: Settings file: sigal.conf.py
DEBUG: Rewrite source : test-in -> /home/reagle/f/photo/test-in
DEBUG: Rewrite destination : _build -> /home/reagle/f/photo/_build
DEBUG: Settings:
{'adjust_options': {'brightness': 1.0, 'color': 1.0, 'contrast': 1.0, 'sharpness': 1.0},
'copy_exif_data': True,
'copyright': '',
'destination': '/home/reagle/f/photo/_build',
'google_analytics': '',
'img_ext_list': ['.jpg', '.jpeg', '.JPG', '.JPEG', '.png'],
'img_processor': 'ResizeToFit',
'img_size': (840, 700),
'index_in_url': False,
'jpg_options': {'optimize': True, 'progressive': True, 'quality': 85},
'keep_orig': False,
'links': '',
'locale': '',
'make_thumbs': True,
'orig_dir': 'original',
'orig_link': False,
'source': '/home/reagle/f/photo/test-in',
'theme': 'colorbox',
'thumb_dir': 'thumbnails',
'thumb_fit': True,
'thumb_prefix': '',
'thumb_size': (280, 210),
'thumb_suffix': '',
'vid_ext_list': ['.MOV', '.mov', '.avi', '.mp4', '.webm', '.ogv'],
'video_size': (480, 360),
'webm_options': ['-b',
'885k',
'-r',
'23.976',
'-threads',
'2',
'-preset',
'medium',
'-c:a',
'libvo_aacenc',
'-ab',
'127k'],
'write_html': True,
'zip_gallery': False}
INFO: Input : /home/reagle/f/photo/test-in
INFO: Output : /home/reagle/f/photo/_build
INFO: Using 1 cores
DEBUG: Database:
{'.': {'description': '',
'medias': [u'02-0904-casper.jpg', u'09-1315-nora-snow.mp4'],
'meta': {},
'subdir': [],
'thumbnail': '',
'title': u'Test in'},
'paths_list': ['.'],
'skipped_dir': []}
-> . : 2 files
INFO: Processing /home/reagle/f/photo/test-in/02-0904-casper.jpg
DEBUG: Processor: ResizeToFit
DEBUG: Save resized image to /home/reagle/f/photo/_build/02-0904-casper.jpg (JPEG)
DEBUG: Save thumnail image: /home/reagle/f/photo/_build/thumbnails/02-0904-casper.jpg (JPEG)
INFO: Processing /home/reagle/f/photo/test-in/09-1315-nora-snow.mp4
DEBUG: Processing video: ffmpeg -i /home/reagle/f/photo/test-in/09-1315-nora-snow.mp4 -y -b 885k -r 23.976 -threads 2 -preset medium -c:a libvo_aacenc -ab 127k -vf scale=480:trunc(ow/a/2)*2 /home/reagle/f/photo/_build/09-1315-nora-snow.webm
Traceback (most recent call last):
File "/home/reagle/.local/bin/sigal", line 9, in <module>
load_entry_point('sigal==0.6.0-dev', 'console_scripts', 'sigal')()
File "/home/reagle/.local/lib/python2.7/site-packages/sigal/__init__.py", line 147, in main
parser.dispatch()
File "/home/reagle/.local/lib/python2.7/site-packages/argh/helpers.py", line 53, in dispatch
return dispatch(self, *args, **kwargs)
File "/home/reagle/.local/lib/python2.7/site-packages/argh/dispatching.py", line 123, in dispatch
for line in lines:
File "/home/reagle/.local/lib/python2.7/site-packages/argh/dispatching.py", line 199, in _execute_command
for line in result:
File "/home/reagle/.local/lib/python2.7/site-packages/argh/dispatching.py", line 182, in _call
result = args.function(*positional, **keywords)
File "/home/reagle/.local/lib/python2.7/site-packages/sigal/__init__.py", line 108, in build
gal.build()
File "/home/reagle/.local/lib/python2.7/site-packages/sigal/gallery.py", line 239, in build
process_file(files)
File "/home/reagle/.local/lib/python2.7/site-packages/sigal/gallery.py", line 310, in process_file
return process_video(*args[1:])
File "/home/reagle/.local/lib/python2.7/site-packages/sigal/video.py", line 126, in process_video
fit=settings['thumb_fit'], options=settings['jpg_options'])
File "/home/reagle/.local/lib/python2.7/site-packages/sigal/video.py", line 107, in generate_thumbnail
image.generate_thumbnail(tmpfile, outname, box, fit, options)
File "/home/reagle/.local/lib/python2.7/site-packages/sigal/image.py", line 109, in generate_thumbnail
img = PILImage.open(source)
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 1988, in open
fp = builtins.open(fp, "rb")
IOError: [Errno 2] No such file or directory: u'/home/reagle/f/photo/_build/thumbnails/09-1315-nora-snow.jpg.tmp.jpg'
urd:~/f/photo$
from sigal.
Thanks, it confirms that there is an issue with the call to avconv. I will check how to trace back the errors from the call to subprocess, but I can't test with avconv.
Can you try this manually ?
cd /home/reagle/f/photo/_build/
# check that 09-1315-nora-snow.webm exists
ffmpeg -i 09-1315-nora-snow.webm -an -r 1-vframes 1 -y thumbnails/09-1315-nora-snow.jpg.tmp.jpg
from sigal.
Sorry, 09-1315-nora-snow.webm didn't exist because of a unsupported argument I was passing in webm_options (apparently -c:a libvo_aacenc
is no good on Debian/Ubuntu.) Thanks for your help!
from sigal.
Related Issues (20)
- Sigal Build command fails due to AttributeError HOT 3
- alb.thumb_size HOT 1
- Hide an image in a album (but still process it and allow it as a thumbnail)
- Lightgallery/justified gallery theme HOT 4
- In Galleria's fullscreen mode, video's aren't fullscreen like photos are
- Support encrypting videos in the encrypt plugin HOT 1
- Any chance of markdown in Title? HOT 1
- Sigal PNG -> JPEG conversion is broken (with fix?) HOT 1
- keep_orig is broken and has no effect? HOT 4
- After file format conversion, thumbnail generation uses the wrong url HOT 1
- zip_archive is either `False` or a filename, which is confusing. should have zip names depend on album name to make download easier HOT 4
- Have a way to for themes to know all the albums that exists
- Does sigal work on mkv h265 files? HOT 8
- git main fails 31 tests HOT 3
- Encrypt plugin: Password field hidden behind pictures. HOT 2
- Using galleria theme causes empty whitespace in the base index page HOT 2
- Sigal not found HOT 2
- Problems with UTF8 characters on folders HOT 1
- 2.3: Issues with tests HOT 2
- Can't decrypt an encrypted gallery HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sigal.