antiboredom / videogrep

automatic video supercuts with python
https://antiboredom.github.io/videogrep
Other
3.33k stars 257 forks source link

FPS issue #39

Closed zomerfeld closed 2 years ago

zomerfeld commented 8 years ago
[+] Concatenating clips.
[+] Writing ouput file.
Traceback (most recent call last):
  File "/usr/local/bin/videogrep", line 5, in <module>
    videogrep.main()
  File "/Library/Python/2.7/site-packages/videogrep/videogrep.py", line 339, in main
    videogrep(args.inputfile, args.outputfile, args.search, args.searchtype, args.maxclips, args.padding, args.demo, args.randomize, args.sync, args.use_transcript)
  File "/Library/Python/2.7/site-packages/videogrep/videogrep.py", line 310, in videogrep
    create_supercut(composition, outputfile, padding)
  File "/Library/Python/2.7/site-packages/videogrep/videogrep.py", line 106, in create_supercut
    final_clip.to_videofile(outputfile, codec="libx264", temp_audiofile='temp-audio.m4a', remove_temp=True, audio_codec='aac')
  File "/Library/Python/2.7/site-packages/moviepy/tools.py", line 129, in fdepr
    return f(*a, **kw)
  File "<decorator-gen-51>", line 2, in write_videofile
  File "/Library/Python/2.7/site-packages/moviepy/decorators.py", line 54, in requires_duration
    return f(clip, *a, **k)
  File "<decorator-gen-50>", line 2, in write_videofile
  File "/Library/Python/2.7/site-packages/moviepy/decorators.py", line 133, in use_clip_fps_by_default
    for (arg, name) in zip(a, names)]
  File "/Library/Python/2.7/site-packages/moviepy/decorators.py", line 122, in fun
    " the clip's fps with `clip.fps=24`"%f.__name__)
AttributeError: No 'fps' (frames per second) attribute specified for function write_videofile and the clip has no 'fps' attribute. Either provide e.g. fps=24 in the arguments of the function, or define the clip's fps with `clip.fps=24`

The command ran: videogrep --input *.MOV --search 'ate' -t