func (f FFMpeg) GenerateOutput(ctx context.Context, args []string, stdin io.Reader) ([]byte, error) {
	cmd := f.Command(ctx, args)
	cmd.Stdin = stdin

	ret, err := cmd.Output()
	if err != nil {
		return nil, fmt.Errorf("error running ffmpeg command <%s>: %w", strings.Join(args, " "), err)
	}

	return ret, nil
}
// GenerateOutput runs ffmpeg with the given args and returns it standard output.
GenerateOutput runs ffmpeg with the given args and returns it standard output.
// GenerateOutput runs ffmpeg with the given args and returns it standard output .
func (f FFMpeg) GenerateOutput(ctx context.Context, args []string, stdin io.Reader) ([]byte, error) {
	cmd := f.Command(ctx, args)
	cmd.Stdin = stdin
	ret, err := cmd.Output()
	if err != nil {
		return nil, fmt.Errorf("error running ffmpeg command <%s>: %w", strings.Join(args, " "), err)
	}
	return ret, nil
}
func ( f FFMpeg ) GenerateOutput ( ctx context . Context , args [ ] string , stdin io . Reader ) ( [ ] byte , error ) { cmd := f . Command ( ctx , args ) cmd . Stdin = stdin ret , err := cmd . Output ( ) if err != nil { return nil , fmt . Errorf ( " " , strings . Join ( args , " " ) , err ) } return ret , nil }
GenerateOutput runs ffmpeg with the given args and returns it standard output.
GenerateOutput runs ffmpeg with the given args and returns it standard output .