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

Unix subprocess.check_output compatibility #47

Closed
haleyngonadi opened this issue Jul 31, 2019 · 2 comments
Closed

Unix subprocess.check_output compatibility #47

haleyngonadi opened this issue Jul 31, 2019 · 2 comments

Comments

@haleyngonadi
Copy link

haleyngonadi commented Jul 31, 2019

Please forgive my ignorance but I'm trying to get this working. When I run
autosub -i myvideoFilter.wav

It immediately returns an error:

Convert source audio to "/var/folders/fz/_m3hd8n524x47ktcbwj4f6g00000gn/T/tmpq5j6nows.wav" and get audio length for regions detection.
ffmpeg -hide_banner -y -i "myvideoFilter.wav" -ac 1 -ar 48000 "/var/folders/fz/_m3hd8n524x47ktcbwj4f6g00000gn/T/tmpq5j6nows.wav"
Traceback (most recent call last):
  File "/usr/local/bin/autosub", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/autosub/__init__.py", line 142, in main
    no_audio_prcs=no_audio_prcs)
  File "/usr/local/lib/python3.7/site-packages/autosub/cmdline_utils.py", line 812, in audio_or_video_prcs
    subprocess.check_output(command, stdin=open(os.devnull), shell=False)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 376, in check_output
    **kwargs).stdout
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 453, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 756, in __init__
    restore_signals, start_new_session)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/subprocess.py", line 1499, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg -hide_banner -y -i "myvideoFilter.wav" -ac 1 -ar 48000 "/var/folders/fz/_m3hd8n524x47ktcbwj4f6g00000gn/T/tmpq5j6nows.wav"': 'ffmpeg -hide_banner -y -i "myvideoFilter.wav" -ac 1 -ar 48000 "/var/folders/fz/_m3hd8n524x47ktcbwj4f6g00000gn/T/tmpq5j6nows.wav"'

At which stage is the file supposed to be generated?

@BingLingGroup
Copy link
Owner

It seems like a unix subprocess command issue. I will try to test it on an Ubuntu and do some research.

@BingLingGroup
Copy link
Owner

Commit f0ab2e1 should fix this issue. Thanks for your feedback.

@BingLingGroup BingLingGroup changed the title Can't seem to get this to work? Unix subprocess.check_output compatibility Jul 31, 2019
@BingLingGroup BingLingGroup mentioned this issue Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants