You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
subprocess.call([
'static_ffmpeg', # call ffmpeg
'-ss', str(start_time), # our clip starts here
'-i', infile_video, # this is the video to be converted
'-t', str(end_time - start_time), #how long our clip is
'-threads', '4', # use 4 threads for the video conversion
'-c:v', 'libvpx-vp9', # c[odec]:v[ideo] - we use libvpx cause we want webm
'-c:a', 'libvorbis', # c[odec]:a[udio] - this is the one everyone else was using
'-b:v', '400k', # reccomended video bitrate
'-b:a', '192k', # reccomended audio bitrate
'-deadline', 'good', # setting for quality vs. speed (best, good, realtime (fastest)); boundry for quality vs. time set the following settings
'-qmin', '0', # quality minimum boundry. (lower means better)
'-qmax', '50', # quality maximum boundry (higher means worse)
uniquename # file to be written out
])
When I do, I get this error Some: No such file or directory. Meanwhile, this works fine:
subprocess.call([
'ffmpeg', # call ffmpeg
'-ss', str(start_time), # our clip starts here
'-i', infile_video, # this is the video to be converted
'-t', str(end_time - start_time), #how long our clip is
'-threads', '4', # use 4 threads for the video conversion
'-c:v', 'libvpx-vp9', # c[odec]:v[ideo] - we use libvpx cause we want webm
'-c:a', 'libvorbis', # c[odec]:a[udio] - this is the one everyone else was using
'-b:v', '400k', # reccomended video bitrate
'-b:a', '192k', # reccomended audio bitrate
'-deadline', 'good', # setting for quality vs. speed (best, good, realtime (fastest)); boundry for quality vs. time set the following settings
'-qmin', '0', # quality minimum boundry. (lower means better)
'-qmax', '50', # quality maximum boundry (higher means worse)
uniquename # file to be written out
])
If it's relevant, the media files are in script's directory, and they end up having filenames with whitespace so their names look like: 'Some Youtube Video.mp4'
The text was updated successfully, but these errors were encountered:
I was able to work around the issue by substituting infile_video for a static complete path to the video that is being converted. That being said, this issue remains.
For reference, here is an example of infile_video: /full/path/to/video/'Youtube Video Title.mp4'
I'm making a subprocess call like so:
When I do, I get this error
Some: No such file or directory
. Meanwhile, this works fine:If it's relevant, the media files are in script's directory, and they end up having filenames with whitespace so their names look like: 'Some Youtube Video.mp4'
The text was updated successfully, but these errors were encountered: