Skip to content
Permalink
Browse files

fix(ffmpeg-video): fig bug for scaling videos to stdout

  • Loading branch information...
numb3r3 committed Aug 23, 2019
1 parent cf02bed commit a76a460423b1a095a197c740e5c13ceeb4bb2571
Showing with 3 additions and 1 deletion.
  1. +3 −1 gnes/preprocessor/io_utils/video.py
@@ -30,7 +30,7 @@ def scale_video(input_filename: str = 'pipe:',
frame_rate: int = 15,
crf: int = 16,
vcodec: str = 'libx264',
format: str = 'mpeg',
format: str = 'mp4',
pix_fmt: str = 'yuv420p',
**kwargs):
capture_stdin = (input_filename == 'pipe:')
@@ -60,6 +60,8 @@ def scale_video(input_filename: str = 'pipe:',

if capture_stdout:
out_kwargs['format'] = format
# an empty moov means it doesn't need to seek and thus works with a pipe.
out_kwargs['movflags'] = 'frag_keyframe+empty_moov'

stream = stream.output(output_filename, **out_kwargs).overwrite_output()
stdout, stderr = stream.run(

0 comments on commit a76a460

Please sign in to comment.
You can’t perform that action at this time.