Giter Site home page Giter Site logo

Comments (4)

saimn avatar saimn commented on August 16, 2024

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.

reagle avatar reagle commented on August 16, 2024
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.

saimn avatar saimn commented on August 16, 2024

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.

reagle avatar reagle commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.