Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not find video #5

Closed
richardbaronpenman opened this issue Jul 18, 2015 · 3 comments
Closed

Does not find video #5

richardbaronpenman opened this issue Jul 18, 2015 · 3 comments

Comments

@richardbaronpenman
Copy link

$ sudo pip install autosub
$ ls
test.avi
$ autosub --format=srt -C 2 -S en-US -D en -o test.srt test.avi
Traceback (most recent call last):
  File "/usr/local/bin/autosub", line 256, in <module>
    sys.exit(main())
  File "/usr/local/bin/autosub", line 193, in main
    audio_filename, audio_rate = extract_audio(args.source_path)
  File "/usr/local/bin/autosub", line 103, in extract_audio
    subprocess.check_output(command)
  File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
$ autosub test.avi
Traceback (most recent call last):
  File "/usr/local/bin/autosub", line 256, in <module>
    sys.exit(main())
  File "/usr/local/bin/autosub", line 193, in main
    audio_filename, audio_rate = extract_audio(args.source_path)
  File "/usr/local/bin/autosub", line 103, in extract_audio
    subprocess.check_output(command)
  File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
@agermanidis
Copy link
Owner

Do you have ffmpeg installed?


Sent from Mailbox

On Sat, Jul 18, 2015 at 1:36 AM, Richard notifications@github.com wrote:

$ sudo pip install autosub
$ ls
test.avi
$ autosub --format=srt -C 2 -S en-US -D en -o test.srt test.avi
Traceback (most recent call last):
File "/usr/local/bin/autosub", line 256, in
sys.exit(main())
File "/usr/local/bin/autosub", line 193, in main
audio_filename, audio_rate = extract_audio(args.source_path)
File "/usr/local/bin/autosub", line 103, in extract_audio
subprocess.check_output(command)
File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, _popenargs, *_kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
$ autosub test.avi
Traceback (most recent call last):
File "/usr/local/bin/autosub", line 256, in
sys.exit(main())
File "/usr/local/bin/autosub", line 193, in main
audio_filename, audio_rate = extract_audio(args.source_path)
File "/usr/local/bin/autosub", line 103, in extract_audio
subprocess.check_output(command)
File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, _popenargs, *_kwargs)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception

OSError: [Errno 2] No such file or directory

Reply to this email directly or view it on GitHub:
#5

@agermanidis
Copy link
Owner

I'm assuming that not having ffmpeg installed was the issue so I'm closing this. If it wasn't do let me know!

@richardbaronpenman
Copy link
Author

ah yes, that was the problem. Perhaps could replace ffmpeg subprocess call with something like this:

try:
        subprocess.check_output(command)
except OSError as e:
        print 'Please install ffmpeg'
        raise e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants